@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@200;300;500;700&display=swap');

:root {
    /* Vibrant Mediterranean Palette */
    --med-blue: #005F73;
    --med-blue-bright: #0A9396;
    --med-cyan: #94D2BD;
    --med-sand: #E9D8A6;
    --med-clay: #EE9B00;
    --med-terracotta: #CA6702;

    /* Semantic Colors */
    --primary: var(--med-blue);
    --accent: var(--med-blue-bright);
    --light-cyan: #EAF6F4;
    --bg-light: #FDFDFF;
    --text-dark: #001219;
    --text-muted: #667085;

    /* Design Tokens - Fine & Modern */
    --header-font: 'Outfit', sans-serif;
    --body-font: 'Inter', sans-serif;
    --shadow-soft: 0 10px 40px rgba(0, 95, 115, 0.05);
    --shadow-deep: 0 20px 60px rgba(0, 18, 25, 0.08);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 32px;
    --banner-height: 40px;
    /* Altura predeterminada del top-banner */
}

/* -------------------------
   Banner Superior Temporal
   ------------------------- */
#top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 95, 115, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 0.5rem 5%;
    font-size: 0.85rem;
    font-family: var(--body-font);
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .banner-mobile-break {
        display: none;
    }

    #top-banner span {
        display: block;
        width: 100%;
        margin-top: 3px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--banner-height, 0px);
}

h1,
h2,
h3 {
    font-family: var(--header-font);
    font-weight: 200;
    /* Super Fine Weight */
    line-height: 1.1;
    color: var(--primary);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

header {
    position: fixed;
    top: var(--banner-height, 0);
    left: 0;
    width: 100%;
    padding: 1.6rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(253, 253, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0, 95, 115, 0.05);
}

header.scrolled .logo {
    color: var(--primary);
    background: transparent;
    backdrop-filter: none;
    border-color: transparent;
}

header.scrolled nav a:not(.cta-nav) {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--header-font);
    font-size: 1.6rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.logo span {
    color: #D4AF37;
    /* Dorado sólido */
    font-weight: 600;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

header.scrolled .logo span {
    color: #D4AF37;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.logo img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

header.scrolled .logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 95, 115, 0.15));
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    margin-left: 3.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.cta-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-weight: 500;
}

.hero {
    height: calc(100vh - var(--banner-height, 0px));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker, more atmospheric Mediterranean overlay */
    background: linear-gradient(180deg,
            rgba(0, 50, 60, 0.7) 0%,
            rgba(0, 95, 115, 0.3) 50%,
            rgba(0, 18, 25, 0.6) 100%);
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 1000px;
    padding: 0 5%;
    color: white;
}

.hero-tag {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--med-sand);
    margin-bottom: 2rem;
    display: inline-block;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 200;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-more {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border: 1px solid rgba(233, 216, 166, 0.5);
    color: var(--med-sand);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--med-sand);
    color: var(--primary);
    transform: translateY(-5px);
    border-color: var(--med-sand);
}

.philosophy-section {
    padding: 12rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.philosophy-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-deep);
    filter: contrast(1.05) brightness(1.02);
}

.philosophy-content h2 {
    margin-bottom: 2.5rem;
}

.philosophy-content p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.treatments-section {
    background: #f8fafb;
    padding: 12rem 5%;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.treatment-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid rgba(0, 95, 115, 0.03);
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}

.treatment-icon {
    font-size: 2rem;
    color: var(--med-clay);
    margin-bottom: 2rem;
    display: block;
    font-weight: 200;
}

.treatment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.treatment-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

.trajectory-section {
    background: white;
    padding: 12rem 5%;
}

.trajectory-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8rem;
}

.trajectory-header h2 {
    font-size: 3.5rem;
    font-weight: 200;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    padding-left: 3rem;
    border-left: 1px solid var(--med-cyan);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4.5px;
    top: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--med-terracotta);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: block;
}

.timeline-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.timeline-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

.contact-hero {
    background: var(--primary);
    padding: 12rem 5%;
    color: white;
    text-align: center;
}

.contact-hero h2 {
    color: white;
    font-weight: 200;
    margin-bottom: 1.5rem;
}

.form-container {
    max-width: 700px;
    margin: -6rem auto 12rem;
    background: white;
    padding: 6rem;
    border-radius: 4px;
    box-shadow: var(--shadow-deep);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 300;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-bottom-color: var(--med-blue-bright);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 100px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 3rem;
}

.submit-btn:hover {
    background: var(--med-terracotta);
    letter-spacing: 4px;
}

footer {
    padding: 6rem 5%;
    text-align: center;
    background: #f8fafb;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-logo {
    font-family: var(--header-font);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
    letter-spacing: 3px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    .trajectory-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .philosophy-section {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 6rem 5%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .form-container {
        padding: 3rem;
        margin-bottom: 6rem;
    }

    nav {
        display: none;
    }
}