/* 
   DR. ANDREAS FROST - PREMIUM DESIGN SYSTEM
   Modern, Immersive, Professional
*/

:root {
    /* Brand Colors (HSL for smoother control) */
    --h-green: 125;
    --h-blue: 198;

    --primary: hsl(var(--h-green), 47%, 46%);
    /* #41B14B adjusted */
    --primary-light: hsl(var(--h-green), 50%, 95%);
    --primary-glow: hsla(var(--h-green), 47%, 46%, 0.15);

    --secondary: hsl(var(--h-blue), 92%, 53%);
    /* #17B5F5 adjusted */
    --secondary-dark: hsl(var(--h-blue), 95%, 45%);

    --dark: #0f172a;
    --dark-muted: #475569;
    --light: #f8fafc;
    --white: #ffffff;

    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions */
    --transit: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    background: var(--primary-glow);
    border: 1px solid hsla(var(--h-green), 47%, 46%, 0.3);
    border-radius: 50%;
    position: fixed;
    top: -12px;
    left: -12px;
    z-index: 9998;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Overwrite */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
}

/* Navbar Premium */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--transit);
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
}

.official-logo {
    height: 90px;
    /* Tamaño prominente pero más manejable */
    width: auto;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: height 0.4s var(--transit);
    /* Solo animar altura */
}

.navbar.scrolled .official-logo {
    height: 60px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* HERO SECTION - REVOLUTIONIZED */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--light);
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(0.5);
    z-index: -2;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, hsla(var(--h-blue), 90%, 95%, 0.6) 0%, transparent 70%),
        radial-gradient(circle at 10% 80%, hsla(var(--h-green), 90%, 95%, 0.5) 0%, transparent 60%);
}

/* ABOUT SECTION PREMIUM */
/* ABOUT SECTION PREMIUM REFINEMENT */
.about-modern {
    padding: 140px 0;
}

.about-text .pre-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.8;
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--dark);
    letter-spacing: -1px;
}

.about-text h2 span {
    color: var(--primary);
    font-weight: 300;
    /* Contrast between heavy and light weights */
}

.about-text p {
    font-size: 1.15rem;
    color: var(--dark-muted);
    line-height: 1.8;
    max-width: 90%;
}

.premium-list {
    margin-top: 40px;
    list-style: none;
    /* Crucial: Remove default bullets */
    padding-left: 0;
}

.premium-list li {
    position: relative;
    padding: 12px 0 12px 45px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    transition: transform 0.3s var(--transit);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-list li:hover {
    transform: translateX(10px);
}

.premium-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2341B14B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.image-wrapper {
    position: relative;
    border-radius: 40px;
    z-index: 2;
    transition: transform 0.6s var(--transit);
}

.image-wrapper:hover {
    transform: scale(1.02) rotate(-1deg);
}

.image-wrapper img {
    border-radius: 40px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-light);
    border-radius: 40px;
    z-index: 1;
    pointer-events: none;
}

.floating-blobs .blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate var(--transit);
}

.b1 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
}

.b2 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s !important;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1.0);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-text-content {
    max-width: 720px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: hsla(var(--h-green), 47%, 46%, 0.1);
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--dark-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.primary-btn {
    padding: 16px 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.secondary-btn {
    padding: 16px 36px;
    background: var(--white);
    color: var(--dark);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: var(--light);
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--dark);
}

.stat span {
    color: var(--dark-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--dark-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--dark-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* GLASS CARDS REVOLUTION */
.quick-info {
    position: relative;
    z-index: 20;
    margin-top: -100px;
}

.glass-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 45px 35px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--transit);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-light);
    box-shadow:
        0 30px 60px rgba(var(--h-green), 0.1),
        0 10px 20px rgba(0, 0, 0, 0.03);
}

.card:hover::after {
    transform: translateX(100%);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(10deg);
}

.card h4 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 700;
}

.hours-list p {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hours-list p:last-child {
    border-bottom: none;
}

.hours-list p span {
    font-weight: 700;
    color: var(--primary);
}

.phone-highlight {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s;
}

.phone-highlight:hover {
    transform: scale(1.05);
}

.text-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.text-link:hover {
    border-color: var(--secondary);
    letter-spacing: 0.5px;
}

/* SERVICES */
.services {
    padding: 140px 0;
}

.section-header.center {
    text-align: center;
    margin-bottom: 80px;
}

.pre-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header h2 span {
    color: var(--secondary);
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.service-item {
    grid-column: span 4;
    position: relative;
    background: var(--light);
    padding: 60px 40px;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s;
}

.service-item.featured {
    grid-column: span 8;
    background: var(--dark);
    color: var(--white);
}

.service-item.featured h3 {
    color: var(--white);
}

.service-item.featured p {
    color: rgba(255, 255, 255, 0.7);
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: 20px;
    opacity: 0.05;
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-item h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.service-item p {
    color: var(--dark-muted);
    font-size: 1.05rem;
}

.service-item:hover {
    background: var(--white);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.service-item.featured:hover {
    background: #1e293b;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s var(--transit);
}

/* Featured (Dark) Card Button */
.service-item.featured .learn-more {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item.featured .learn-more:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

/* Regular Card Button */
.service-item .learn-more:not(.featured .learn-more) {
    background: var(--primary-light);
    color: var(--primary);
}

.service-item .learn-more:not(.featured .learn-more):hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

/* CTA SECTION */
.cta-section {
    padding-bottom: 120px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 40px 80px hsla(var(--h-green), 47%, 46%, 0.2);
}

.cta-inner h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-inner p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-inner .primary-btn {
    background: var(--white);
    color: var(--primary);
    font-size: 1.5rem;
    padding: 20px 50px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s var(--transit);
}

.cta-inner .primary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    background: var(--light);
    color: var(--secondary-dark);
}

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 80px;
}

.footer-info .brand {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* Animations Trigger - Controlled by GSAP */
.reveal {
    /* GSAP processes these elements dynamically */
}

/* Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1024px) {
    .glass-cards {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-text-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }

    .desktop-nav {
        display: none;
    }

    .glass-cards {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-column: span 12 !important;
    }

    .container {
        padding: 0 24px;
    }
}