@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Kameron:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

/* ===================================== */
/* Variables CSS Globales (Tema Oscuro) */
/* ===================================== */
:root {
    --bg-dark: #121212;
    --bg-dark-secondary: #1a1a1a;
    --accent-gold: #d0af80;
    --accent-gold-light: #f1ddb4;
    --text-primary-light: #e0e0e0;
    --text-secondary-light: #b3b3b3;

    /* Re-mapeo de variables antiguas */
    --primary-color: var(--accent-gold);
    --secondary-color: var(--accent-gold);
    --accent-color: var(--accent-gold-light);
    --text-light: var(--text-primary-light);
    --text-dark: var(--text-secondary-light);
    --section-bg-light: var(--bg-dark);
}

/* ===================================== */
/* Reseteo y Estilos Base      */
/* ===================================== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    width: 100%; 
    overflow-x: hidden; 
    cursor: none;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}
.custom-cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    z-index: 9999;
}
.custom-cursor.hovered {
    width: 40px;
    height: 40px;
    border-color: var(--secondary-color); 
}
.custom-cursor.clicked {
    width: 20px;
    height: 20px;
    border-color: var(--text-light);
}
/* ===================================== */
/* Header y Animaciones del Navbar       */
/* ===================================== */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 10;
}
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-family: 'Kameron', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-color);
    margin: 0 90px;
    position: static;
}
.nav-links-left,
.nav-links-right {
    display: flex;
    gap: 90px;
}
.nav-links-left a,
.nav-links-right a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.nav-links-left a::after,
.nav-links-right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}
.nav-links-left a:hover::after,
.nav-links-right a:hover::after {
    width: 100%;
}
.nav-links-left a:hover,
.nav-links-right a:hover {
    color: var(--accent-color);
}
.nav-links-left a,
.logo,
.nav-links-right a {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.nav-links-left a.fade-in,
.logo.fade-in,
.nav-links-right a.fade-in {
    opacity: 1;
    transform: translateY(0);
}
/* ===================================== */
/* Hero Section          */
/* ===================================== */
.hero {
    background: 
        linear-gradient(to right, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%),
        url('images/herodefinitivo1.jpg') no-repeat center 30%/cover;
    color: var(--text-light);
    padding: 150px 40px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    min-height: 700px;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 600px;
    text-align: left;
    margin-left: 10%;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-family: 'Kameron', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    border-right: none;
    animation: none;
    font-weight: 400;
}
.btn {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.05);
}
/* ===================================== */
/* Estilos Generales de Sección */
/* ===================================== */
.section {
    padding: 80px 20px;
    margin: 0 auto;
    text-align: center;
}
.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 150px;
    position: relative;
}
.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}
/* ===================================== */
/* Animaciones de entrada (fade-in)     */
/* ===================================== */
.animated-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated-image {
    opacity: 0;
    transition: opacity 1s ease-in;
}
.animated-title.in-view,
.animated-image.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================== */
/* Sección "Quiénes Somos"      */
/* ===================================== */
#about.section {
    background-color: var(--bg-dark);
    padding-top: 50px;
    padding-bottom: 200px;
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 100px;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.about-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
.about-info-wrapper {
    flex: 1;
    min-width: 350px;
    max-width: 600px;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 500px;
}
.about-info-wrapper .product-subtitle {
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: block;
}
.about-info-wrapper .product-title {
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
}
.about-info-wrapper p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-dark);
}
/* ===================================== */
/* Sección "Nuestro Producto"   */
/* ===================================== */
#product.section {
    background-color: var(--bg-dark-secondary);
    padding: 80px 5%;
}
.product-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 70px;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.product-image-container {
    flex: 1;
    min-width: 400px;
    max-width: 550px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
.product-info {
    flex: 1;
    min-width: 350px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 500px;
}
.product-feature {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.product-feature:last-child {
    margin-bottom: 0;
}
.product-feature:hover {
    transform: scale(1.02);
}
.icon-circle {
    width: 85px;
    height: 85px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.icon-circle img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    display: block;
}
.product-feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}
.product-feature p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 8px 0 0 0;
}
/* ===================================== */
/* Sección Contacto             */
/* ===================================== */
#contact.section {
    padding: 50px 20px;
    background-color: var(--bg-dark);
}
.contact-subtitle {
    max-width: 600px;
    margin: -100px auto 50px auto;
    font-size: 1.1rem;
    color: var(--text-dark);
}
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-dark-secondary);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.contact-form label {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #222;
    font-size: 1rem;
    box-sizing: border-box;
    color: var(--text-light);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button {
    grid-column: 1 / -1;
    margin-top: 30px;
    background-color: var(--accent-gold-light);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 16px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    justify-self: center;
    max-width: 300px;
}
.contact-form button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

#form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}
.form-message-success {
    color: #25d366; /* Verde WhatsApp */
}
.form-message-error {
    color: #e65c5c; /* Rojo suave */
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.whatsapp-contact-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.whatsapp-contact-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.email-contact-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.email-contact-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.contact-btn i {
    font-size: 1.2rem;
}
/* ===================================== */
/* Footer                */
/* ===================================== */
footer {
    padding: 40px 20px;
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    margin-top: 50px;
    text-align: center;
}
.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.footer-links,
.social-icons {
    display: flex;
    gap: 15px;
}
.footer-links a,
.social-icons a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer-links a:hover,
.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}
.copyright-info {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    width: 100%;
    text-align: center;
}
.copyright-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}
/* ===================================== */
/* Botón flotante WhatsApp      */
/* ===================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    visibility: hidden;
    opacity: 0;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #1DA851;
}
.whatsapp-btn.show {
    visibility: visible;
    opacity: 1;
}
/* ===================================== */
/* Estilos Menú Hamburguesa         */
/* ===================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger:focus {
    outline: none;
}
.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
/* ===================================== */
/* Diseño Responsivo            */
/* ===================================== */
@media (max-width: 992px) {
    body {
        cursor: auto; 
    }
    .custom-cursor {
        display: none;
    }
    .product-container,
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }
    .about-content {
        flex-direction: column-reverse;
    }
    .about-image,
    .product-image-container,
    .about-info-wrapper,
    .product-info {
        min-width: unset;
        width: 100%;
        max-width: unset;
        height: auto;
    }
    .product-feature {
        justify-content: center;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .contact-form {
        max-width: 100%;
        min-width: 100%;
        padding: 0;
        grid-template-columns: 1fr;
    }
    .contact-form label,
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        max-width: unset;
    }
    .form-group.full-width {
        grid-column: auto;
    }
    .contact-form button {
        width: 100%;
        font-size: 1rem;
        padding: 14px 20px;
    }
    .contact-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
    }
}
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }
    .logo {
        margin: 0;
        z-index: 1001;
    }
    .nav-links-left,
    .nav-links-right {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    header.nav-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(18, 18, 18, 0.98);
        z-index: 1000;
    }
    header.nav-open nav {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 2rem;
    }
    header.nav-open .nav-links-left,
    header.nav-open .nav-links-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    header.nav-open .logo {
        font-size: 2.5rem;
    }
    header.nav-open .hamburger {
        position: absolute;
        top: 25px;
        right: 20px;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        /* INICIO: Modificación para centrar la botella y corregir visibilidad en iOS */
        background-position: 65% center; /* Mueve la imagen 65% hacia la derecha para enfocar la botella */
        background-attachment: scroll;   /* Cambiado de 'fixed' a 'scroll' para máxima compatibilidad con iOS */
        /* FIN: Modificación */
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    .section h2 {
        font-size: 2rem;
    }
    .about-image {
        height: 250px;
    }
    .product-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .icon-circle {
        margin-bottom: 10px;
    }
    .footer-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .footer-links,
    .social-icons {
        justify-content: center;
    }
}