/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --primary-bg: #FAF8F5; /* Soft cream */
    --secondary-bg: #FFFFFF; /* Pure white for contrast */
    --text-main: #2C2C2B; /* Elegant dark grey */
    --text-light: #6B6A68; /* For subtitles and secondary text */
    --accent: #728469; /* Corporate Olive Green */
    --accent-hover: #5C6E53;
    --border-color: #E2DDD5;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1280px;
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition-slow: 0.5s ease-in-out;
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-main);
    color: #fff;
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 221, 213, 0.5);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px; 
    width: auto;
    object-fit: contain;
    transition: all var(--transition-fast);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #000; /* As requested, typography in black */
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeUp 1s ease forwards;
    color: #000;
}

.hero-content p {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* =========================================
   NOSOTROS (TEAM)
========================================= */
.nosotros {
    background-color: var(--secondary-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    background: var(--secondary-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform var(--transition-slow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.team-image {
    width: 100%;
    height: 380px;
    margin: 0;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-info {
    padding: 2rem 1.5rem;
}

.team-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   FILOSOFÍA
========================================= */
.filosofia {
    background-color: var(--text-main);
    color: var(--primary-bg);
}

.filosofia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.filosofia-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.filosofia-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.filosofia-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

.filosofia .quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-top: 3rem;
    color: #fff;
    opacity: 1;
}

/* =========================================
   TRATAMIENTOS
========================================= */
.tratamientos {
    background-color: var(--primary-bg);
}

.tratamientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tratamiento-card {
    background: var(--secondary-bg);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tratamiento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    transform-origin: left;
}

.tratamiento-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.tratamiento-card:hover::before {
    transform: scaleX(1);
}

.tratamiento-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.tratamiento-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tratamiento-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.treatment-list {
    text-align: left;
}

.treatment-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.treatment-list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: #1A1A1A;
    color: #F0F0F0;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-contact a {
    color: #A0A0A0;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: #FFF;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    background: #2A2A2A;
    color: #FFF;
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form button {
    border: none;
    cursor: pointer;
    width: fit-content;
}

.footer-bottom-links {
    margin: 0.5rem 0;
    color: #A0A0A0;
}

.footer-bottom-links a {
    color: #A0A0A0;
    padding: 0 0.5rem;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: #A0A0A0;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.zutik-mention {
    color: #666 !important; /* Discreta */
    font-size: 0.85rem !important;
    margin-top: 1rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: underline;
}

.map-link:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hierro-digital {
    font-size: 0.8rem;
}

.hierro-digital a {
    color: #F0F0F0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.hierro-digital a:hover {
    color: var(--accent);
}

/* =========================================
   FLOATING WHATSAPP
========================================= */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* =========================================
   ANIMATIONS & SCROLL EFFECTS
========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .filosofia-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        background-color: var(--primary-bg);
        width: 100%;
        height: calc(100vh - 80px);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        gap: 2rem;
        padding-bottom: 120px; /* Offset to center perfectly taking address bar into account */
    }
    
    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .filosofia h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
