:root {
    --primary-color: #dc0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #c0c0c0;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    --gradient-red: linear-gradient(135deg, #dc0a0a 0%, #a00808 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

.whatsapp-button i {
    font-size: 32px;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-chat.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: #25d366;
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header i {
    font-size: 24px;
}

.chat-header h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.chat-header p {
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.chat-body {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.chat-message {
    background: #e5e5ea;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
}

.bot-message {
    background: #e5e5ea;
}

.chat-message p {
    margin: 5px 0;
    font-size: 14px;
}

.chat-form {
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.chat-form textarea {
    resize: none;
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: #20ba5a;
}

.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 32px;
}

.logo strong {
    color: var(--primary-color);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: fixed;
    top: 130px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 130px);
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: 10px 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Category Submenu */
.category-submenu {
    background: var(--bg-light);
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 70px;
    z-index: 998;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    min-width: max-content;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    min-width: 100px;
    text-align: center;
}

.category-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.category-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.category-item:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.category-item:hover i,
.category-item:hover span {
    color: var(--white);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    background-image: 
        linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(20,20,20,0.6) 100%),
        url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
        
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    display: none; /* Ocultamos esta capa porque tapa la imagen */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 50px 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.hero-feature i {
    color: var(--primary-color);
    font-size: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 10, 10, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 10, 10, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.btn-block {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.benefits {
    padding: 80px 20px;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 36px;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.categories {
    padding: 80px 20px;
    background: var(--white);
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: var(--primary-color);
}

/* ========================================
   REDISEÑO CATEGORÍAS CON IMAGEN DE FONDO (OPTIMIZADO)
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 Columna en móvil */
    gap: 20px;
}

.product-card {
    position: relative; 
    border-radius: 15px;
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    border: none;
    height: 220px; /* Altura más compacta para móvil */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Imagen de fondo */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; /* Transición más suave */
}

.product-card:hover .card-background img {
    transform: scale(1.1); /* Zoom sutil */
}

/* Capa oscura */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado más fuerte abajo para que el texto se lea bien */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* Contenido */
.card-content {
    position: relative;
    z-index: 1; 
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Todo abajo */
    align-items: flex-start;   /* Alineado a la izquierda */
    color: var(--white); 
    text-align: left; 
}

.product-card h4 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    max-width: 90%; /* Evita que el texto toque el borde derecho */
}

/* ========================================
   MEDIA QUERIES (Ajustes Responsive)
   ======================================== */

/* Tablet (2 columnas) */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px;
    }
    
    .product-card {
        height: 250px;
    }
}

/* PC / Desktop (3 columnas x 2 filas) */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 30px; /* Espacio equilibrado */
        max-width: 1100px; /* Limita el ancho total para que no se estiren demasiado */
        margin: 0 auto; /* Centra la grilla */
    }
    
    .product-card {
        height: 280px; /* Altura perfecta para ver las 2 filas sin mucho scroll */
    }

    .product-card h4 {
        font-size: 1.6rem;
    }
    
    .product-card p {
        font-size: 0.95rem;
    }
}

.how-to-order {
    padding: 80px 20px;
    background: var(--gradient-dark);
    color: var(--white);
}

.how-to-order .section-title {
    color: var(--white);
}

.how-to-order .section-title::after {
    background: var(--primary-color);
}

.how-to-order .section-subtitle {
    color: var(--accent-color);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.step {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin: 20px 0;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--accent-color);
}

.services {
    padding: 80px 20px;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.service-card:hover p {
    color: var(--white);
}

.about {
    padding: 80px 20px;
    background: var(--bg-light);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat p {
    color: var(--text-dark);
    font-weight: 500;
}

.agencies {
    padding: 80px 20px;
    background: var(--white);
}

.agencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.agency-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.agency-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.agency-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.agency-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.agency-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.agency-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.agency-phone:hover {
    text-decoration: underline;
}

.workshops {
    padding: 80px 20px;
    background: var(--bg-light);
}

.workshops-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.workshops-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.workshop-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.workshop-benefit {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.workshop-benefit i {
    font-size: 32px;
    color: var(--primary-color);
}

.workshop-benefit span {
    font-weight: 500;
    color: var(--text-dark);
}

.testimonials {
    padding: 80px 20px;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-stars i {
    font-size: 18px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.testimonial-author span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.contact {
    padding: 80px 20px;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn:hover {
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.certifications {
    padding: 60px 20px;
    background: var(--secondary-color);
    color: var(--white);
}

.cert-content {
    text-align: center;
}

.cert-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cert-content h3 i {
    color: var(--primary-color);
}

.cert-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--accent-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cert-badge i {
    font-size: 48px;
    color: var(--primary-color);
}

.cert-badge span {
    font-weight: 500;
}

.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 32px;
}

.footer-logo strong {
    color: var(--primary-color);
}

.footer-col p {
    color: var(--accent-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--accent-color);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--accent-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .workshop-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .nav-menu li {
        margin: 0 5px;
    }
    
    .nav-link {
        padding: 8px 15px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .agencies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-image {
        width: 50%;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media print {
    .header,
    .whatsapp-widget,
    .hero-scroll,
    .footer {
        display: none;
    }
}

@media (min-width: 1024px) {

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
    }

    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 5px;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        color: var(--secondary-color);
        font-size: 15px;
        font-weight: 500;
        padding: 10px 15px;
        border-radius: 4px;
        position: relative;
        background: transparent;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }

    .nav-link:hover, 
    .nav-link.active {
        color: var(--primary-color);
        background: transparent;
    }

    .category-submenu {
        overflow-x: visible; 
    }
    
    .category-submenu .container {
        display: flex;
        justify-content: center;
    }

    .category-scroll {
        display: flex;           /* Se asegura que sea un contenedor flex */
        justify-content: center; /* Centra los elementos horizontalmente */
        flex-wrap: wrap;         /* Permite que los elementos bajen si no caben */
        gap: 25px;               /* Un poco más de espacio entre iconos */
        min-width: auto;         /* IMPORTANTE: Elimina la restricción que lo tiraba a la izquierda */
        padding: 20px 0;         /* Un poco más de aire arriba y abajo */
        overflow-x: visible;     /* Elimina la barra de desplazamiento horizontal */
    }

    .category-item {
        min-width: 110px; /* Un ancho mínimo cómodo para los iconos en PC */
    }

    .hero-title { font-size: 3.5rem; }
    .benefits-grid, .products-grid, .steps-container { grid-template-columns: repeat(4, 1fr); gap: 30px; }
    .services-grid, .agencies-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .contact-wrapper { grid-template-columns: 1fr 2fr; gap: 40px; }
    .about-content { flex-direction: row; align-items: center; gap: 50px; }
    .about-image { width: 50%; }
    .footer-content { grid-template-columns: repeat(4, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.category-tabs-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.cat-tab {
    padding: 12px 25px;
    border: 2px solid var(--accent-color);
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.cat-tab i {
    color: var(--primary-color);
    font-size: 18px;
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cat-tab:hover i,
.cat-tab.active i {
    color: var(--white);
}

.product-panel {
    display: none; /* Ocultos por defecto */
    animation: fadeIn 0.5s ease;
}

.product-panel.active {
    display: block; /* Solo se muestra el activo */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Suavidad en móviles */
    justify-content: flex-start; 
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}
.carousel-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.carousel-track .product-card {
    min-width: 260px; /* Ancho fijo para que funcione el carrusel */
    max-width: 260px;
    flex-shrink: 0;   /* Evita que se encojan */
    margin: 0;        /* Resetear margenes */
}

@media (min-width: 1024px) {
    .carousel-track {
        justify-content: center; 
        flex-wrap: wrap; /* En PC grande, mejor verlos en rejilla que carrusel */
    }
    
    /* Si prefieres que SIEMPRE sea carrusel incluso en PC, cambia lo de arriba por: */
    /*
    .carousel-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    */
}

.drill-down-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
}

.drill-down-track {
    display: flex;
    width: 200%; 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Movimiento suave tipo iOS */
}

.drill-level {
    width: 50%;
    flex-shrink: 0;
}

.drill-down-track.slide-active {
    transform: translateX(-50%);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px 15px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.back-btn:hover {
    text-decoration: underline;
    transform: translateX(-3px);
}

.level-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.product-card.trigger-sub {
    border-color: var(--accent-color);
    position: relative;
}

.product-card.trigger-sub:hover {
    border-color: var(--primary-color);
    background-color: #fff5f5; /* Un rojo muy sutil al pasar el mouse */
}

.sub-category-list {
    display: none; /* Ocultas por defecto hasta que el JS las activa */
    animation: fadeIn 0.3s ease;
}

.drill-level.level-2 {
    overflow-y: auto; /* Permite scroll vertical si la lista es muy larga */
    max-height: 500px; /* Altura de seguridad */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
    z-index: 2000; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(3px); /* Efecto borroso elegante */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* Evita que sea más alto que la pantalla */
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
    overflow-y: auto; /* Scroll interno si el texto es largo */
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.iti {
    width: 100%;
    display: block;
    margin-bottom: 15px; /* Un pequeño margen extra de seguridad */
}

.iti__flag-container ~ input {
    width: 100% !important; 
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box; /* Para que el padding no deforme el ancho */
}

.contact-form .form-group {
    margin-bottom: 25px; /* Este espacio separa el input del botón */
}

.contact-form .btn-block {
    width: 100%;
    margin-top: 10px; /* Un poco de aire extra arriba del botón */
}

/* ========================================
   CORRECCIÓN FINAL GRILLA PC (3 Columnas x 2 Filas)
   ======================================== */
@media (min-width: 1024px) {
    .products-grid {
        /* Aquí forzamos las 3 columnas */
        grid-template-columns: repeat(3, 1fr) !important; 
        
        /* Espacio entre tarjetas */
        gap: 30px !important; 
        
        /* Limitamos el ancho para que se vean centradas y elegantes */
        max-width: 1100px; 
        margin: 0 auto; 
    }
    
    .product-card {
        /* Ajustamos la altura para que las 2 filas se vean bien en pantalla */
        height: 280px !important; 
    }

    .product-card h4 {
        font-size: 1.6rem;
    }
}

/* ========================================
   ESTILOS SUBMENÚ ACORDEÓN (Hamburguesa)
   ======================================== */

.product-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* El menú oculto */
.subcategory-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9f9f9;
    border-radius: 0 0 15px 15px; /* Bordes redondeados solo abajo */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: -5px; /* Para que pegue con la tarjeta */
    position: relative;
    z-index: 0;
}

/* Cuando está activo (Abierto) */
.subcategory-menu.open {
    max-height: 500px; /* Altura máxima suficiente para el contenido */
    border: 1px solid #eee;
    border-top: none;
}

/* Elementos de la lista */
.sub-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.sub-item:last-child {
    border-bottom: none;
}

.sub-item:hover {
    background: #fff0f0;
    color: var(--primary-color);
    padding-left: 25px; /* Pequeña animación de desplazamiento */
}

/* Ajuste visual para la tarjeta cuando el menú está abierto */
.product-card.menu-active {
    border-radius: 15px 15px 0 0; /* Solo redondeado arriba */
    box-shadow: none; /* Quitamos sombra para que se una con el menú */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Rotar flecha al abrir */
.product-card.menu-active .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* ========================================
   ESTILOS ACORDEÓN / SUBMENÚ
======================================== */

/* 1. Ajuste de la Grilla para los Wrappers */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    align-items: start; /* Importante para que no se estiren raros al abrir */
}

/* 2. El contenedor que agrupa Tarjeta + Menú */
.product-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 3. La Tarjeta Principal (El botón) */
.product-card.trigger-menu {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2; /* Para que quede encima del menú */
    transition: border-radius 0.3s ease; /* Suavizar esquinas al abrir */
}

/* Cuando el menú está abierto, quitamos el redondeo de abajo */
.product-card.menu-active {
    border-radius: 15px 15px 0 0;
    box-shadow: none; /* Quitamos sombra para que se una visualmente */
}

/* 4. El Menú Desplegable (Oculto por defecto) */
.subcategory-menu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 1;
}

/* Clase para mostrar el menú */
.subcategory-menu.open {
    max-height: 500px; /* Altura suficiente para el contenido */
    border: 1px solid #eee;
    border-top: none;
}

/* 5. Items dentro del menú */
.sub-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
}

.sub-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.sub-item:hover {
    background: #fff5f5; /* Fondo rojizo muy suave */
    color: var(--primary-color);
    padding-left: 25px; /* Pequeño desplazamiento a la derecha */
}

/* Ajustes Responsive para PC */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        align-items: start;
    }
    
    .product-card.trigger-menu {
        height: 280px;
    }
}

/* ========================================
   ESTILOS CASILLAS DE POLÍTICAS (CORREGIDO)
======================================== */

/* 1. El contenedor: Fuerza la alineación en fila (horizontal) */
.checkbox-group, 
.chat-checkbox {
    display: flex !important; /* Usamos flexbox */
    flex-direction: row !important; /* Dirección horizontal obligatoria */
    align-items: flex-start !important; /* Alineados arriba por si el texto es largo */
    justify-content: flex-start; /* Alineados a la izquierda */
    gap: 12px; /* Espacio entre el cuadrito y el texto */
    margin-bottom: 20px;
    text-align: left !important; /* Asegura que el texto no se centre */
    width: 100%;
}

/* Ajuste específico para el widget de WhatsApp para que se vea bien */
.chat-checkbox {
    padding: 0 5px;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* 2. El Checkbox: Le quitamos el ancho de 100% que traen los temas */
.checkbox-group input[type="checkbox"], 
.chat-checkbox input[type="checkbox"] {
    width: 20px !important; /* Tamaño fijo */
    min-width: 20px !important; /* Asegura que no se encoja */
    height: 20px !important;
    margin: 2px 0 0 0 !important; /* Pequeño ajuste vertical para que se vea centrado con la primera línea de texto */
    cursor: pointer;
    flex-shrink: 0; /* Evita que se aplaste */
    display: inline-block !important; /* Asegura que no sea 'block' */
    border: 1px solid #ccc; /* Opcional: para que se vea más definido */
    border-radius: 4px; /* Opcional: esquinas redondeadas */
}

/* 3. El Texto (Label): Ocupa el resto del espacio */
.checkbox-group label, 
.chat-checkbox label {
    flex: 1; /* Toma todo el espacio restante a la derecha */
    margin: 0 !important; /* Quita márgenes extraños */
    display: block; /* Se comporta como bloque dentro del flex item */
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4; /* Mejor lectura */
    cursor: pointer; /* Para que al dar clic en el texto también se marque la casilla */
}

/* Estilo del enlace dentro del label */
.policy-trigger {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.policy-trigger:hover {
    color: var(--secondary-color);
}