/* Eliss - Sistema de Diseño Premium */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Paleta B elegida por refinamiento editorial */
    --bg-primary: #F6F1E9;
    --text-primary: #151515;
    --text-secondary: #5A5A5A;
    --accent-taupe: #A79D93;
    --accent-rose: #D8A7A7;
    --accent-gold: #C9A46A;
    --white: #FFFFFF;

    /* Espaciado */
    --section-padding: 100px 5%;
    --container-width: 1200px;

    /* Tipografía */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Contenedor de contenido de texto */
.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    margin-bottom: 1.5em;
}

.content-text h2 {
    margin-top: 3em;
    margin-bottom: 1em;
}

.content-text h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.content-text ul,
.content-text ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.content-text li {
    margin-bottom: 0.8em;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-taupe);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--white) !important;
    border-color: var(--text-primary);
}

/* --- Navegación Premium --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links a {
    color: var(--white);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(21, 21, 21, 0.98);
    min-width: 220px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.4);
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    padding: 10px 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.dropdown-content a::after {
    display: none; /* Quitamos la línea inferior del hover en el dropdown */
}

.dropdown-content a:hover {
    background-color: rgba(201, 164, 106, 0.15); /* Color acento con transparencia */
    color: var(--accent-gold);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.nav-links a:hover {
    color: var(--accent-gold) !important;
}

.btn-nav-cta {
    background: var(--accent-gold);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: var(--accent-rose) !important;
    color: var(--white) !important;
}

.btn-nav-cta::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Secciones --- */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Espaciado de artículos */
article {
    padding: 40px 0;
}

article img {
    margin: 50px 0;
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background: #151515;
    color: #F6F1E9;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #A79D93;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(246, 241, 233, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a {
        color: var(--text-primary) !important;
        text-shadow: none !important;
        font-size: 0.9rem;
    }

    .btn-nav-cta {
        background: var(--text-primary) !important;
        color: var(--white) !important;
        display: inline-block;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .content-text {
        font-size: 1rem;
    }

    article img {
        margin: 30px 0;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.75rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animaciones */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}