/* --- RESET Y BASE --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #222;
    padding-top: 90px;
}

/* --- HEADER VIDEO --- */
/* Estilos base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: sans-serif;
}

.banner {
  position: relative;
  height: 120vh; /* Ahora ocupa toda la altura de la ventana */
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0 0 32px 32px;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.video-bg iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(25,118,210,0.18) 0%, rgba(255,255,255,0.01) 80%);
    z-index: 1;
    pointer-events: none;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 0 20px;
  text-shadow: 0 4px 24px rgba(25, 118, 210, 0.25), 0 1.5px 0 #1976d2;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
  text-align: center;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.banner-text h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    font-family: 'Playfair Display', serif;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
    filter: drop-shadow(0 2px 8px rgba(25, 118, 210, 0.18));
}

.banner-text p {
    font-size: 1.25rem;
    color: #fff;
    background: rgba(25, 118, 210, 0.12);
    display: inline-block;
    padding: 0.4em 1.2em;
    border-radius: 18px;
    margin-top: 0.5em;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .banner-text h2 {
    font-size: 1.8rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .banner-text {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .banner-text h2 {
    font-size: 1.5rem;
  }

  .banner-text p {
    font-size: 0.95rem;
  }
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
    background: linear-gradient(90deg, #1976d2 60%, #e3f2fd 100%);
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.10);
    border-bottom: 4px solid #1976d2;
    height: 90px;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.header-flex {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 90px;
    box-sizing: border-box;
}

.header-flex .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 16px;
}

.header-flex .logo img {
    max-width: 58px;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.header-flex h1 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.3em;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
    text-align: left;
    padding-left: 12px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- NAV --- */
.nav-elegante {
    margin-left: 0;
    display: flex;
    align-items: center;
}

.nav-elegante ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 53px; /* Ajusta el margen para que no se superponga con el header */
    padding: 0;
    list-style: none; /* Quita el marker */
}

.nav-elegante li {
    width: auto;
    text-align: center;
}

.nav-elegante a {
    font-size: 0.98em;
    padding: 8px 16px;
    color: #1976d2;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    display: block;
}

.nav-elegante a span {
    white-space: nowrap;
    display: inline-block;
}

.nav-elegante a:hover,
.nav-elegante a.active {
    background: #1976d2;
    color: #fff;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 0;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- BANNER --- */
.banner {
    position: relative;
    width: 99%;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 120vh;
    min-height: 120vh;
    max-height: 120vh;
    object-fit: cover;
    object-position: bottom;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(1.08) saturate(1.15) contrast(1.08);
    box-shadow: 0 10px 40px 0 rgba(25, 118, 210, 0.18);
    border-radius: 0 0 32px 32px;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0 20px;
    text-shadow: 0 4px 24px rgba(25, 118, 210, 0.25), 0 1.5px 0 #1976d2;
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
    text-align: center;
}

.banner-text h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    font-family: 'Playfair Display', serif;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-fill-color: initial;
    filter: drop-shadow(0 2px 8px rgba(25, 118, 210, 0.18));
}

.banner-text p {
    font-size: 1.25rem;
    color: #fff;
    background: rgba(25, 118, 210, 0.12);
    display: inline-block;
    padding: 0.4em 1.2em;
    border-radius: 18px;
    margin-top: 0.5em;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

/* --- MAIN & SECTIONS --- */
main {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 20px;
}
section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(46,139,87,0.07);
    padding: 30px 24px;
}
.about h2, .products h2, .gallery h2, .contact h2 {
    color: #2e8b57;
    margin-top: 0;
    font-size: 1.7em;
    font-weight: 700;
}

/* --- PRODUCTOS --- */
.product-filters {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    outline: none;
}
.filter-btn.active,
.filter-btn:hover {
    background: #1565c0;
    color: #fff;
    transform: scale(1.07);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 10px;
}

.product-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(25,118,210,0.08);
    padding: 0px 0px;
    text-align: center;
    width: 306px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.product-item:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(25,118,210,0.18);
    z-index: 2;
}
.product-item img {
    width: 100%;
    max-width: 334px;
    height: 246px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    cursor: zoom-in;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 2px 12px rgba(46,139,87,0.10);
}
.product-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(46,139,87,0.18);
}
.product-item h3 {
    margin: 0 0 12px 0;
    color: #1976d2;
    font-size: 1.15em;
    font-weight: 700;
}
.select-btn {
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(46,139,87,0.10);
    transition: background 0.2s, transform 0.2s;
}
.select-btn:hover {
    background: #256d46;
    transform: scale(1.08);
}

/* --- GALERÍA --- */
.gallery-images {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.gallery-images img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(46,139,87,0.10);
    transition: transform 0.2s;
}
.gallery-images img:hover {
    transform: scale(1.06);
}
.gallery-video {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 9px;
}
.gallery-video iframe {
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(46,139,87,0.10);
    width: 320px;
    height: 180px;
    max-width: 100%;
}
@media (max-width: 700px) {
    .gallery-video iframe {
        width: 100vw;
        height: 200px;
    }
}

/* --- CONTACTO --- */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}
.contact input, .contact textarea {
    padding: 10px;
    border: 1px solid #b4e197;
    border-radius: 6px;
    font-size: 1em;
    background: #f8fafc;
    resize: none;
}
.contact button {
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact button:hover {
    background: #256d46;
}
.contact-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-info {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 400px;
}
.contact-form {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- FOOTER --- */
footer {
    background: #ffffff;
    color: #1877f3 #a71c1c;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    border-radius: 12px 12px 0 0;
    font-size: 1em;
    letter-spacing: 1px;
}
.footer-social {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 22px;
}
.footer-social a {
    color: #fff;
    font-size: 1.7em;
    transition: color 0.2s, transform 0.2s;
    margin: 0 6px;
}

/* Colores oficiales de cada red */
.footer-social a[aria-label="Facebook"]   { color: #1877f3; }
.footer-social a[aria-label="Instagram"]  { color: #e4405f; }
.footer-social a[aria-label="WhatsApp"]   { color: #25d366; }
.footer-social a[aria-label="Teléfono"]   { color: #2e8b57; }
.footer-social a[aria-label="YouTube"]    { color: #ff0000; }

.footer-social a:hover {
    filter: brightness(1.2) drop-shadow(0 2px 6px rgba(0,0,0,0.10));
    transform: scale(1.15);
}

/* --- MODAL --- */
.product-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.product-modal-bg.active {
    display: flex;
}
.product-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25,118,210,0.18);
}
.close-modal {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100000;
}

/* --- ICONOS FLOTANTES --- */
.float-btn {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    transition: transform 0.2s;
  }

  .float-btn:hover {
    transform: scale(1.1);
  }

  .float-btn img {
    width: 30px;
    height: 30px;
  }

  .whatsapp {
    bottom: 90px;
    right: 20px;
  }

  .phone {
    bottom: 20px;
    right: 20px;
  }

/* Sombra y profundidad sutil en tarjetas y secciones */
section, .product-item, .contact-info, .contact-form {
    box-shadow: 0 4px 24px rgba(25,118,210,0.07), 0 1.5px 6px rgba(46,139,87,0.04);
    border-radius: 18px;
}

/* Bordes suaves y separación visual */
section {
    border: 1px solid #e3e8ee;
    margin-bottom: 48px;
    /* padding: 36px 28px; */
    padding: 10px 10px;
}

/* Títulos con más presencia y elegancia */
h1, h2, h3 {
    letter-spacing: 1px;
    font-family: 'monsterat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.7em;
}

h2 {
    font-size: 2.1em;
}

h3 {
    font-size: 1.0em;
}

/* Parrafos más legibles */
p, li, label, input, textarea {
    font-family: 'monsterat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.08em;
    line-height: 1.7;
    color: #232323;
}

/* Inputs y textarea más suaves */
input, textarea {
    border: 1.5px solid #e3e8ee;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    transition: border 0.2s;
}
input:focus, textarea:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}

/* Botón elegante */
button, .select-btn {
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(25,118,210,0.08);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
button:hover, .select-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(25,118,210,0.13);
}

/* Footer más minimalista y elegante */
footer {
    background: #fff;
    color: #1976d2;
    border-top: 1.5px solid #e3e8ee;
    border-radius: 0 0 18px 18px;
    font-size: 1.05em;
    letter-spacing: 1px;
    padding: 22px 0 10px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 12px rgba(25,118,210,0.04);
}
.footer-social {
    margin-top: 10px;
    gap: 18px;
}
.footer-social a {
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-social a:hover {
    opacity: 1;
    transform: scale(1.18);
}

/* Modal refinado */
.product-modal-bg {
    background: rgba(0,0,0,0.82);
}
.product-modal-img {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(25,118,210,0.18);
    border: 4px solid #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 10px 10px;
        height: auto;
    }
    .header-flex .logo,
    .header-flex h1 {
        flex: unset;
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
    .contact-flex {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .contact-info, .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 9999;
        height: 64px;
        min-height: 64px;
        background: linear-gradient(90deg, #1976d2 60%, #e3f2fd 100%);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        display: flex;
        align-items: center;
    }
    .header-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 0 10px;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }
    .header-flex .logo {
        flex: 0 0 18%;
        margin-right: 8px;
    }
    .header-flex .logo img {
        max-width: 58px;
        height: auto;
        margin: 0;
        flex-shrink: 0;
    }
    .header-flex h1 {
        font-size: 0.93em;
        text-align: center;
        margin: 0 8px;
        color: #fff;
        text-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
        white-space: normal;      /* Permite salto de línea */
        overflow: visible;
        text-overflow: clip;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-width: 60vw;
        line-height: 1.2;
        word-break: break-word;   /* Rompe la palabra si es necesario */
    }
    .hamburger {
        flex: 0 0 10%;
        display: flex !important;
        position: static;
        justify-content: flex-end;
        align-items: center;
        width: 32px;
        height: 32px;
        cursor: pointer;
        margin-left: 0;
    }
    .nav-elegante ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 64px;
        right: 0;
        width: 80vw;
        max-width: 320px;
        background: #1976d2;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(25,118,210,0.18);
        padding: 18px 0;
        gap: 0;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 9999;
        list-style: none; /* Quita el marker también en móvil */
    }
    .nav-elegante ul.show {
        display: flex;
    }
    .nav-elegante li {
        width: 100%;
        text-align: left;
        margin: 10px 0;
    }
    .nav-elegante a {
        width: 100%;
        padding: 14px 28px;
        border-radius: 0;
        font-size: 1.1em;
        color: #fff;
        background: transparent;
        text-align: left;
        transition: background 0.2s;
    }
    .nav-elegante a:hover,
    .nav-elegante a.active {
        background: #1565c0;
    }
    body {
        padding-top: 64px !important;
    }
    .banner {
        width: 100vw;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
                height: 30%;
    }
    .banner img {
        width: 100vw;
        max-height: 180px;
        min-width: 0;
        height: 38vw;
        object-fit: cover;
        display: block;
    }
    .banner-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        padding: 0 8px;
        font-size: 0.7em;
    }
}

/* ========================================================
   CAPA FINAL: REDISEÑO ELEGANTE Y PROFESIONAL
   (sobrescribe estilos anteriores sin tocar el HTML)
======================================================== */

:root {
    --brand-primary: #0f4c81;
    --brand-secondary: #1f7abf;
    --brand-accent: #e9f3fb;
    --text-strong: #17324a;
    --text-body: #31475a;
    --surface: #ffffff;
    --surface-soft: #f6f9fc;
    --border-soft: #dbe7f2;
    --shadow-soft: 0 8px 24px rgba(16, 52, 86, 0.08);
    --shadow-card: 0 14px 34px rgba(16, 52, 86, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-body);
    background:
        radial-gradient(circle at 20% -10%, rgba(28, 122, 191, 0.10), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(15, 76, 129, 0.10), transparent 35%),
        var(--surface-soft);
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.2px;
    color: var(--text-strong);
}

p, li, label, input, textarea {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-body);
}

header {
    background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-bottom: none;
    box-shadow: 0 10px 28px rgba(6, 34, 59, 0.25);
}

.header-flex h1 {
    font-size: clamp(1rem, 1vw + 0.9rem, 1.45rem);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.nav-elegante ul {
    margin: 0 0 0 24px;
    gap: 12px;
}

.nav-elegante a {
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-elegante a:hover,
.nav-elegante a.active {
    background: var(--brand-primary);
    color: #fff;
}

.banner {
    width: 100%;
    height: min(76vh, 760px);
    border-radius: 0 0 26px 26px;
    overflow: hidden;
}

.video-overlay {
    background: linear-gradient(180deg, rgba(6, 34, 59, 0.58), rgba(6, 34, 59, 0.68));
}

.banner-text h2 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.banner-text p {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    opacity: 0.95;
}

main {
    max-width: 1240px;
    margin: 44px auto;
    padding: 0 20px 24px;
}

section {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 26px 24px;
}

.about h2, .products h2, .gallery h2, .contact h2 {
    text-align: center;
    font-size: clamp(1.7rem, 2.5vw, 2.25rem);
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.about h2::after,
.products h2::after,
.gallery h2::after,
.contact h2::after {
    content: "";
    display: block;
    width: 78px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.product-filters {
    gap: 10px;
    margin: 10px 0 28px;
}

.filter-btn {
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid #c8dced;
    padding: 10px 20px;
    box-shadow: none;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product-item {
    width: auto;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(16, 52, 86, 0.08);
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.product-item img {
    border-radius: 0;
    margin-bottom: 0;
    height: 220px;
}

.product-item h3 {
    margin: 12px 12px 16px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-strong);
}

.gallery-video iframe {
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.contact-info,
.contact-form {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(16, 52, 86, 0.06);
    padding: 20px;
}

.contact input,
.contact textarea {
    border: 1px solid #cadcee;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.98rem;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(31, 122, 191, 0.15);
}

.contact button {
    border-radius: 12px;
    background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    font-weight: 600;
}

.contact button:hover {
    filter: brightness(1.06);
}

footer {
    margin-top: 34px;
    border-radius: 18px 18px 0 0;
    border-top: none;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.footer-social a {
    transform-origin: center;
}

.float-btn {
    box-shadow: 0 10px 20px rgba(12, 55, 92, 0.18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(31, 122, 191, 0.35);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .banner {
        height: 56vh;
    }

    .nav-elegante ul {
        margin-left: 8px;
    }
}

@media (max-width: 700px) {
    header {
        background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
    }

    .nav-elegante ul {
        background: rgba(11, 58, 96, 0.98);
    }

    .banner {
        height: 46vh;
        border-radius: 0 0 16px 16px;
    }

    .banner-text {
        width: 92vw;
        font-size: 0.95em;
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }

    .product-item img {
        height: 160px;
    }

    section {
        padding: 18px 14px;
    }
}

/* ========================================================
   CAPA EXTRA: CORPORATIVA LÁCTEA PREMIUM (IMPLEMENTADA)
   Ajuste final sobrio, limpio y profesional
======================================================== */

:root {
    --corp-primary: #0b3a5b;
    --corp-secondary: #1f6fa8;
    --corp-gold: #c7a96b;
    --corp-bg: #f4f7fb;
    --corp-panel: #ffffff;
    --corp-text: #1f3347;
    --corp-muted: #5a7086;
    --corp-border: #d7e2ee;
}

body {
    background:
        linear-gradient(180deg, #f8fbff 0%, var(--corp-bg) 100%);
    color: var(--corp-text);
}

header {
    background: linear-gradient(100deg, var(--corp-primary) 0%, #0f4f78 55%, var(--corp-secondary) 100%);
    box-shadow: 0 12px 30px rgba(8, 38, 61, 0.28);
}

.header-flex {
    max-width: 1320px;
}

.header-flex h1 {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.nav-elegante a {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--corp-primary);
    font-size: 0.93rem;
    box-shadow: 0 5px 12px rgba(9, 42, 68, 0.12);
}

.nav-elegante a:hover,
.nav-elegante a.active {
    background: #fff;
    color: #0a3b5f;
    box-shadow: 0 8px 16px rgba(7, 33, 54, 0.20);
}

.banner {
    border-radius: 0 0 30px 30px;
}

.banner-text h2 {
    color: #f8fbff;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

main {
    max-width: 1280px;
    margin-top: 48px;
}

section {
    background: var(--corp-panel);
    border: 1px solid var(--corp-border);
    box-shadow: 0 12px 28px rgba(13, 42, 67, 0.08);
}

.about,
.products,
.gallery,
.contact {
    position: relative;
    overflow: hidden;
}

.about::before,
.products::before,
.gallery::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--corp-primary), var(--corp-secondary), var(--corp-gold));
    opacity: 0.9;
}

.about h2, .products h2, .gallery h2, .contact h2 {
    color: var(--corp-primary);
}

.about p {
    color: var(--corp-muted);
}

.product-filters {
    margin-top: 16px;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid #c8d7e8;
    color: var(--corp-primary);
    background: #fff;
    font-size: 0.92rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(120deg, var(--corp-primary), var(--corp-secondary));
    color: #fff;
    border-color: transparent;
}

.product-item {
    border-radius: 14px;
    border: 1px solid #d9e4ef;
    box-shadow: 0 8px 20px rgba(13, 42, 67, 0.10);
}

.product-item h3 {
    color: #1f3950;
    font-weight: 600;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(13, 42, 67, 0.16);
}

.gallery-video iframe {
    border: 1px solid #d2e0ec;
}

.contact-info,
.contact-form {
    border: 1px solid #d6e3ef;
    box-shadow: 0 10px 24px rgba(13, 42, 67, 0.08);
}

.contact-info p {
    color: var(--corp-muted);
}

.contact input,
.contact textarea {
    background: #fbfdff;
    border: 1px solid #cfdeeb;
    color: var(--corp-text);
}

.contact button {
    background: linear-gradient(120deg, #0d4369, #1f6fa8);
    border: 0;
    box-shadow: 0 8px 18px rgba(13, 67, 105, 0.22);
}

footer {
    background: linear-gradient(180deg, #ffffff 0%, #f1f6fb 100%);
    border-top: 1px solid #dbe6f2;
}

footer p {
    color: #2b4a64;
}

.float-btn {
    border: 1px solid #d6e2ed;
    background: #fff;
}

@media (max-width: 700px) {
    .header-flex h1 {
        font-size: 0.88rem;
        max-width: 58vw;
    }

    .nav-elegante ul {
        background: rgba(9, 47, 75, 0.98);
    }

    .product-item h3 {
        font-size: 0.9rem;
    }
}

/* ========================================================
   CAPA FINAL DE ACABADO (HEADER/CARDS/CONTACTO/RESPONSIVE)
======================================================== */

header {
    backdrop-filter: blur(6px);
}

.header-flex .logo img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

main section {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

main section:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(13, 42, 67, 0.10);
}

.products .product-list {
    margin-top: 16px;
}

.product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item h3 {
    min-height: 2.8em;
    padding: 0 4px;
}

.contact-flex {
    gap: 22px;
}

.contact-info {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.contact-form {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.contact button {
    letter-spacing: 0.2px;
}

footer {
    padding-top: 24px;
}

.footer-social {
    padding-bottom: 6px;
}

@media (max-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}

@media (max-width: 700px) {
    .header-flex {
        padding-inline: 12px;
    }

    .header-flex h1 {
        font-size: 0.84rem;
        line-height: 1.25;
    }

    main {
        margin-top: 30px;
        padding: 0 12px 18px;
    }

    .about h2, .products h2, .gallery h2, .contact h2 {
        font-size: 1.55rem;
    }

    .product-item img {
        height: 170px;
    }

    .contact-info,
    .contact-form {
        padding: 14px;
    }

    .contact input,
    .contact textarea {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================
   HARDENING RESPONSIVE FINAL
======================================================== */

html,
body {
    overflow-x: hidden;
}

header {
    width: 100%;
}

.banner,
.video-bg,
.video-bg iframe {
    width: 100%;
    max-width: 100%;
}

.header-flex,
main,
section,
.product-list,
.contact-flex,
.gallery-images {
    min-width: 0;
}

.nav-elegante ul {
    margin-right: 0;
}

.gallery-video iframe,
.contact iframe {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .header-flex {
        max-width: 100%;
        padding: 0 18px;
    }

    .nav-elegante ul {
        margin-left: 12px;
        gap: 10px;
    }

    .nav-elegante a {
        padding: 9px 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 72px;
    }

    header {
        height: 72px;
        min-height: 72px;
    }

    .header-flex {
        height: 72px;
        padding: 0 12px;
    }

    .header-flex h1 {
        max-width: 56vw;
        font-size: 0.82rem;
    }

    .hamburger {
        width: 30px;
        height: 30px;
    }

    .banner {
        height: 52vh;
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .contact-flex {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-elegante ul {
        top: 72px;
        width: min(84vw, 320px);
    }

    .banner-text {
        width: min(92vw, 560px);
    }

    .banner-text h2 {
        font-size: clamp(1.35rem, 5.8vw, 1.9rem);
    }

    .banner-text p {
        font-size: clamp(0.92rem, 3.8vw, 1.06rem);
    }

    section {
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .gallery-video iframe {
        width: min(100%, 420px);
        height: 220px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 68px;
    }

    header,
    .header-flex {
        height: 68px;
        min-height: 68px;
    }

    .header-flex .logo img {
        max-width: 48px;
    }

    .header-flex h1 {
        font-size: 0.76rem;
        max-width: 54vw;
    }

    .nav-elegante ul {
        top: 68px;
        width: 88vw;
    }

    .product-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-item img {
        height: 130px;
    }

    .product-item h3 {
        font-size: 0.82rem;
        min-height: 3.1em;
        margin: 8px 8px 12px;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .contact-info,
    .contact-form {
        min-width: 0;
        width: 100%;
    }

    .float-btn {
        width: 50px;
        height: 50px;
    }

    .float-btn img {
        width: 26px;
        height: 26px;
    }
}
