/* --- RESET Y BASE --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #222;
    padding-top: 90px;
}

/* --- 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: 96%;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: auto;
    max-height: 541px;
    object-fit: cover;
    display: block;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-align: center;
}
.banner-text h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.banner-text p {
    font-size: 1.3em;
    margin: 0;
}

/* --- MAIN & SECTIONS --- */
main {
    max-width: 1100px;
    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: 24px 18px;
    text-align: center;
    width: 240px;
    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: 220px;
    height: 180px;
    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;
}

/* 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;
    }
    .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;
    }
}
