/* ============================================================
   SUMILOR — Hoja de Estilos Principal
   Colores corporativos extraídos de IMG_7815.PNG
   ============================================================ */

/* --- Variables CSS --- */
:root {
    /* Colores corporativos */
    --color-primary: #001B61;
    --color-primary-dark: #001049;
    --color-primary-light: #002A8A;
    --color-accent: #980F0A;
    --color-accent-hover: #7A0C08;

    /* Fondos */
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --bg-blue-tint: #E8EDF3;

    /* Texto */
    --text-dark: #1A1A2E;
    --text-medium: #3D3D55;
    --text-light: #5A5A6E;
    --text-white: #FFFFFF;

    /* Bordes y sombras */
    --border-light: #DDE2E8;
    --shadow-sm: 0 2px 8px rgba(0, 27, 97, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 27, 97, 0.10);
    --shadow-lg: 0 8px 40px rgba(0, 27, 97, 0.12);

    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --header-height: 75px;
    --border-radius: 12px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Tipografía --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.section-title {
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(152, 15, 10, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 34px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--color-primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    white-space: nowrap;
}

.header-phone i {
    color: var(--color-accent);
}

.header-email {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-medium);
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header-email:hover {
    color: var(--color-primary);
}

.header-email i {
    color: var(--color-accent);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.header-social a:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

/* Contacto dentro del menú móvil (oculto en escritorio) */
.header-nav-contact {
    display: none;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.header-nav-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border-light);
    margin: 8px 0 4px;
}

.header-nav-email,
.header-nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.78rem;
    transition: color 0.3s ease;
}

.header-nav-email i,
.header-nav-phone i {
    width: 20px;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-align: center;
}

.header-nav-email:hover,
.header-nav-phone:hover {
    color: var(--color-primary);
}

.header-nav-social {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.header-nav-social a {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-blue-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.header-nav-social a:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

/* Menú hamburguesa */
.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    margin-left: auto;
}

.header-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 35%, var(--color-primary-dark) 70%, var(--color-primary) 100%);
    overflow: hidden;
    margin-top: 0;
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    pointer-events: none;
}

.hero-bg-image {
    /* Si el usuario añade img/hero-bg.jpg, se activa esta capa */
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    display: none;  /* Cambiar a block si hay hero-bg.jpg */
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--text-white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 span {
    color: #FF6B6B;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

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

.hero-service-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: var(--text-white);
    transition: all 0.3s ease;
    cursor: default;
}

.hero-service-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-service-card .hero-service-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
    opacity: 0.9;
}

.hero-service-card h4 {
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 2px;
}

.hero-service-card p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: none;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--bg-blue-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--text-white);
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

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

/* ============================================================
   PRODUCTOS — Galería estilo RRSS
   ============================================================ */
.products {
    padding: 100px 0;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 27, 97, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Botón "Ver más" */
.products-more {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: left;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.stat-number .plus {
    color: var(--color-accent);
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 6px;
    line-height: 1.3;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-frame {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    padding: 5px;
    background: linear-gradient(135deg, var(--color-accent) 0%, transparent 40%, transparent 60%, var(--color-primary) 100%);
    box-shadow: var(--shadow-md);
}

.about-frame-content {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.6;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

/* Formulario */
.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    margin-bottom: 24px;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 27, 97, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Info de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info h3 {
    margin-bottom: 4px;
    color: var(--color-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--bg-blue-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact-item-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.contact-item-content span,
.contact-item-content a {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.5;
}

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

/* Horario */
.hours-box {
    background: var(--bg-blue-tint);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-top: 8px;
}

.hours-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(0, 27, 97, 0.06);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row strong {
    color: var(--text-dark);
}

/* Google Maps */
.contact-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-primary);
    color: var(--text-white);
    padding: 60px 0 24px;
}

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

.footer-brand img {
    height: 45px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.93rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.93rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ============================================================
   ANIMACIONES — Reveal on Scroll
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — Tablet (768px–1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --header-height: 52px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-services {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   RESPONSIVE — Móvil (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 48px;
    }

    /* Header móvil */
    .header-nav {
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        transform: none;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 60px 32px;
        gap: 24px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .header-nav.active {
        right: 0;
    }

    .header-contact {
        display: none;
    }

    .header-toggle {
        display: flex;
    }

    .header-nav .header-nav-contact {
        display: flex;
        margin-top: auto;
        padding-bottom: 40px;
    }

    .header-nav .header-nav-email {
        font-size: 0.75rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-services {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox img {
        max-width: 95vw;
        max-height: 75vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
}

/* ============================================================
   RESPONSIVE — Móvil pequeño (< 480px)
   ============================================================ */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-accent {
    color: var(--color-accent);
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}
