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

html {
    -webkit-text-size-adjust: 100%;
}

/* Tipografía: Nunito Sans en toda la página */
body, body *,
h1, h2, h3, h4, h5, h6, p, a, span, button, input, label {
    font-family: 'Nunito Sans', sans-serif !important;
}

body {
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    padding-top: 0;
}

/* Safe area (iPhone notch / gestos) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* NAVEGACIÓN - Estilo píldora flotante */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5% 0;
    transition: padding 0.3s ease;
}

.nav-pill {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px 12px 24px;
    min-height: 56px;
}

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

.nav-logo a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    border-radius: 999px;
}

.nav-menu > li > a:hover {
    color: #DDA44D;
}

.nav-menu > li.active > a {
    color: #DDA44D;
}

/* Caret en items con dropdown */
.nav-menu li.has-dropdown > a::after {
    content: '\25BE';
    font-size: 0.6rem;
    opacity: 0.7;
    transition: none;
}

.nav-menu li.has-dropdown:hover > a::after {
    transform: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #DDA44D;
}

/* Iconos derecha */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-icons a:hover {
    background: #f0f0f0;
    color: #DDA44D;
}

.nav-icons svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    color: inherit;
    overflow: visible;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .main-nav {
        padding: max(12px, env(safe-area-inset-top, 0px)) 4% 0;
    }
    
    .nav-pill {
        flex-wrap: wrap;
        padding: 12px 16px;
        border-radius: 28px;
    }
    
    /* Fila 1: logo | iconos RRSS | hamburguesa — Fila 2: menú full width */
    .nav-logo { order: 1; }
    .nav-icons {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: 0;
    }
    .nav-menu-wrapper {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: none;
    }
    
    .nav-menu-wrapper.active {
        display: block;
        max-height: calc(100vh - max(84px, env(safe-area-inset-top, 0px) + 72px));
        padding-top: 12px;
        padding-bottom: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-menu > li > a {
        padding: 12px 16px;
    }
    
    .dropdown-menu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        margin: 4px 0 4px 16px;
        display: none;
        max-height: none;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li.active-dropdown .dropdown-menu {
        display: block;
        max-height: none;
    }

    /* Evita estado intermedio de hover (desktop) en iOS/Android touch */
    .nav-menu li:hover .dropdown-menu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    
}

/* ===== CONTENIDO PÁGINA INICIO ===== */
.page-content {
    padding-top: 0;
}

/* Hero: slider de 3 fotos, imagen hasta el borde superior */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}
.hero-inner {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 5%;
}
.hero-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(18px, 2.8vw, 28px);
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0 0 12px 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Flechas del slider: finas, sin fondo, profesionales */
.hero-arrows {
    position: absolute;
    inset: 0;
    z-index: 10;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    transition: color 0.2s ease;
    border: none;
    background: none;
    padding: 0;
    z-index: 11;
}
.hero-arrow:hover {
    color: #fff;
}
.hero-arrow svg {
    width: 32px;
    height: 32px;
    stroke-width: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    pointer-events: none;
}
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
@media (max-width: 480px) {
    .hero-arrow.prev { left: 8px; }
    .hero-arrow.next { right: 8px; }
    .hero-arrow svg { width: 26px; height: 26px; }
}

/* Franja negra: sección debajo del hero (no fija, scroll con la página) */
.info-bar {
    background: #1a1a1a;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.info-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 400;
}
.info-bar-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.95;
}
.info-bar-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.25);
}
@media (max-width: 900px) {
    .info-bar {
        flex-direction: column;
        padding: 24px 5%;
        gap: 0;
    }
    .info-bar-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.25);
        padding-bottom: 16px;
        margin-bottom: 4px;
    }
    .info-bar-item {
        padding: 10px 0;
    }
}

/* Secciones debajo del hero: espacio para no quedar bajo el nav fijo */
.section-video,
.about-section,
.category-cards {
    padding-top: 80px;
}

/* Divisor entre secciones: línea sutil para uniformidad */
.section-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 32px 0;
    border: none;
}

.section-video {
    background: #3F3F3F;
    padding: 0;
}
.section-video video {
    width: 100%;
    display: block;
}

/* Sección empresa / sobre nosotros: texto + imagen (entre video y productos) */
.about-section {
    background: #fff;
    padding: 80px 5% 80px;
}
.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-section .about-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.about-section .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Título sección "Acerca de nosotros" — grande y negrita (refuerzo vs. temas WP) */
.about-section h2.about-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.25rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
    color: #111 !important;
    text-transform: none !important;
    margin: 0 0 22px 0;
    margin-block: 0 22px;
    line-height: 1.15;
    -webkit-font-smoothing: antialiased;
}

/* Inicio: bloque "Acerca de nosotros" (clases about-title-strong / about-section-highlight).
   Debe vivir aquí también: si kov-extra.css no carga en el servidor, el inicio sigue viéndose bien. */
.about-section-highlight .about-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(22px, 3vw, 46px);
    align-items: center;
}

.about-section-highlight .about-image {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    align-self: center;
    width: 100%;
}

.about-section-highlight .about-content {
    max-width: 560px;
}

.about-kicker {
    margin: 0 0 14px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    font-weight: 800;
    color: #5a5a5a;
    text-transform: uppercase;
}

.about-title-strong {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 5.2vw, 3.65rem);
    line-height: 1.02;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: -0.03em;
    text-shadow: 0 0 0.65px currentColor, 0 0 0.65px currentColor;
}

.about-section-highlight .about-mission {
    margin: 0 0 26px;
    text-align: justify;
    color: #444;
    line-height: 1.65;
}

.about-section-highlight .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-section .about-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}
.about-section .about-mission {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    line-height: 1.7;
}

/* CTA "Conoce nuestros proyectos" — sección Acerca (inicio); también en kov-extra como refuerzo */
.about-cta-wrap {
    margin-top: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.about-cta-btn {
    font-family: 'Nunito Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.about-cta-btn:visited,
.about-cta-btn:active {
    color: #fff !important;
    text-decoration: none !important;
}

.about-cta-btn:hover {
    background: #2b2b2b;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .about-section { padding: 60px 5% 60px; }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-section .about-image { order: -1; }
}

/* Footer - compacto, fondo amarillo, enlaces en columnas */
.site-footer {
    background: #FBF0D9;
    padding: 28px 5% 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    position: relative;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.footer-brand {
    position: absolute;
    left: 5%;
    top: 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: start;
    margin-bottom: 20px;
    margin-left: 140px;
}
.footer-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-brand img {
    height: 36px;
    width: auto;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 32px;
    column-gap: 32px;
}
.footer-links li {
    margin: 0;
}
.footer-links a {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 2px 0;
}
.footer-links a:hover {
    color: #B8860B;
}
.footer-contact {
    text-align: right;
}
.footer-contact p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 2px 0;
}
.footer-contact a {
    color: #333;
    text-decoration: none;
}
.footer-contact a:hover {
    color: #B8860B;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #B8860B;
}
.footer-social svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    color: inherit;
    overflow: visible;
}
.footer-bottom {
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}
.footer-copyright {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: #7a6f5c;
}
@media (max-width: 768px) {
    .footer-brand {
        position: static;
        text-align: center;
        margin-bottom: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: 0;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 2px 16px;
    }
    .footer-contact { text-align: center; }
    .footer-social { justify-content: center; }
}

.section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 71px 5%;
}
.section.section-gray {
    background: #A4A4A4;
    background-image: radial-gradient(rgba(255,231,81,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}
.section-title-wrap p {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 21px;
    letter-spacing: 4px;
    color: #3F3F3F;
    margin-bottom: 4px;
}
.section-title-wrap h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    font-size: 33px;
    letter-spacing: 7px;
    color: #3F3F3F;
    line-height: 1.5;
}

/* Tarjetas de categorías: una por categoría, estilo imagen de referencia */
.category-cards {
    background: #fff;
    padding: 80px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}
.category-cards .catalog-section-title {
    margin: 0 auto 32px;
    max-width: 1320px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}
.category-cards .catalog-section-title span {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #DDA44D;
}
.category-cards-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.category-card {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f0f0f0;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.category-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e5;
}
.category-card .category-card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.category-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}
.category-card-text {
    padding: 24px 20px 20px;
    z-index: 1;
}
.category-card-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.category-card-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .category-cards { padding: 60px 4% 80px; }
    .category-cards-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .category-cards-inner {
        grid-template-columns: 1fr;
    }
}

/* Responsive general */
@media (max-width: 768px) {
    .section-video, .about-section, .category-cards { padding-top: 60px; }
    .section { padding: 40px 4%; }
    .hero-text { font-size: clamp(16px, 4.5vw, 22px); }
    .hero-subtitle { font-size: clamp(13px, 3.5vw, 16px); }
}
@media (max-width: 480px) {
    .main-nav { padding: max(10px, env(safe-area-inset-top, 0px)) 3% 0; }
    .nav-pill { padding: 10px 14px; min-height: 48px; }
    .nav-logo img { height: 28px; }
    .nav-icons a {
        width: 38px;
        height: 38px;
    }
    .hero-inner { padding: 0 max(4%, env(safe-area-inset-left)) 0 max(4%, env(safe-area-inset-right)); }
    .cards-row { gap: 16px; margin-top: 20px; }
    .card-product { padding: 16px 12px; }
    .card-product h3 { font-size: 17px; }
    .site-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }
}

