/* 
   Psychologist MVP - Wireframe CSS
   Focus on structure, minimal colors, readability, and spaciousness.
*/

:root {
    /* Color Palette */
    --color-surface: #ffffff;
    --color-bg-bottom: #f2f7f9;
    /* Subtle blue tone for depth at bottom */

    /* Typography Colors */
    --color-text-main: #2d3748;
    /* Dark charcoal/slate */
    --color-text-muted: #718096;
    /* Grayish for secondary text */

    /* Action Colors */
    --color-whatsapp: #25D366;
    /* Standard WhatsApp Green for floating bubble */
    --color-primary: #6c9bbc;
    /* Soft slate/light blue inspired by the logo */
    --color-primary-hover: #5a87a8;
    /* Noticeably darker for interaction feedback */

    /* Wireframe Utilities */
    --color-placeholder-bg: #e2e8f0;
    --color-placeholder-text: #64748b;
    --color-border: #e2e8f0;
}

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

/* General Body setup */
html, body {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Wireframe Background Utility Classes */
.bg-white {
    background-color: #ffffff;
}

.bg-light-blue {
    background-color: #e0f2fe;
    /* Very soft sky blue for contrast */
}

.bg-light-gray {
    background-color: #f8f9fa;
    /* Soft slate/gray for contrast */
}

/* Navbar - Dynamic Behavior */
.top-nav {
    background-color: transparent;
    /* Transparent at top to blend with hero */
    padding: 32px 0;
    /* Taller height to let logo breathe */
    position: fixed;
    /* Always fixed for stable layout */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    /* Maintains intentional logo cropping */
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.top-nav.scrolled {
    background-color: #ffffff;
    padding: 12px 0;
    /* Compact height on scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* More premium shadow */
    border-bottom: 1px solid var(--color-border);
}

.top-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-link {
    display: block;
    /* Image flows naturally inside */
    margin-left: -12px; /* Subtle optical alignment with the layout grid */
}

.logo-img {
    height: 340px;
    width: auto;
    display: block;
    margin-top: -110px;
    /* Synchronized to perfectly retain the established optical center */
    margin-bottom: -145px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav.scrolled .logo-img {
    height: 255px;
    /* Shrinks on scroll */
    margin-top: -76px;
    margin-bottom: -110px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-text-muted);
}

/* Navbar Mobile Behavior */
@media (max-width: 768px) {
    .top-nav {
        padding: 16px 0;
        background-color: rgba(255, 255, 255, 0.95); /* Solid enough to read over hero */
        border-bottom: 1px solid var(--color-border);
    }
    .top-nav.scrolled {
        padding: 8px 0;
    }
    .top-nav .nav-container {
        flex-direction: column;
        gap: 8px;
    }
    .logo-img {
        height: 160px;
        margin-top: -45px;
        margin-bottom: -60px;
    }
    .top-nav.scrolled .logo-img {
        height: 140px;
        margin-top: -40px;
        margin-bottom: -50px;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 8px;
    }
    .nav-links a {
        font-size: 0.95rem;
    }
}

/* Container limits width to maintain intimacy and readability */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Huge vertical spacing to let the page breathe */
.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* General Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-text-main);
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    /* High premium padding for a substantial footprint */
    text-decoration: none;
    border-radius: 10px;
    /* Gently rounded, intentionally stopping short of full pill */
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 16px;
    transition: all 0.3s ease;
    /* Enables the elegant, smooth hover interpolation */
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(108, 155, 188, 0.25);
    /* Ultra-soft glow mimicking the surface blue */
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    /* Physical elevation indicating clickability */
    box-shadow: 0 8px 20px rgba(108, 155, 188, 0.4);
    /* Strengthens the elevation shadow elegantly */
}

/* Image Placeholders */
.image-placeholder {
    background-color: var(--color-placeholder-bg);
    color: var(--color-placeholder-text);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-bottom: 32px;
}

/* 1. Hero Section - Refined Layout & Balance */
.hero-section {
    background-color: #E6EBF0; /* Further darkened for light contrast against white */
    padding: 160px 0 64px 0;
    /* Increased top padding to accommodate transparent fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
}

.hero-split-wrapper {
    display: flex;
    align-items: flex-start;
    /* Align content to the top */
    justify-content: space-between;
    gap: 64px;
    /* 16*4 */
    max-width: 1152px;
    /* 288*4 */
    margin: 0 auto;
    padding: 0 48px;
    /* 12*4 */
}

.hero-text-content {
    flex: 1.1;
    max-width: 576px;
    /* 144*4 Increased from 544px to fit 3 buttons in one row */
    padding-top: 80px;
    /* Pushed downward further to align visually with the center of the right image */
}

.hero-text-content h1 {
    font-size: 3rem;
    /* Editorial scale */
    line-height: 1.05;
    /* Tightened tension */
    margin-bottom: 12px;
    /* 3*4 Tightened vertical rhythm */
    color: var(--color-text-main);
    font-weight: 700;
}

.hero-text-content p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
    /* Tightened reading rhythm */
    max-width: 480px;
    /* 120*4 controlled line length */
}

.hero-internal-nav {
    display: flex;
    gap: 8px;
    /* 2*4 Reduced from 12px for closer cohesion */
    margin-top: 24px;
    /* 6*4 Reduced from 32px to move closer to paragraph */
    flex-wrap: wrap;
}

.btn-secondary-outline {
    display: inline-block;
    padding: 8px 16px;
    /* 2*4 and 4*4 More compact than 10px 18px */
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    /* Slightly smaller for an elegant secondary feel */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    background-color: rgba(108, 155, 188, 0.05);
    /* Subtle background on hover */
    border-color: #5a8aa8;
    color: #5a8aa8;
}

.hero-image-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img-rectangular {
    width: 100%;
    max-width: 576px;
    /* 144*4 Increased image presence */
    aspect-ratio: 1 / 1;
    margin-top: 80px; /* Align with text */
    object-fit: cover;
    object-position: center bottom; /* Crop from top */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
    .hero-internal-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* Hero Section Mobile Behavior */
@media (max-width: 900px) {
    .hero-section {
        padding: 160px 0 48px 0; /* Increased top padding so navbar doesn't overlap */
    }

    .hero-split-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 32px;
        padding: 0 24px;
    }

    .hero-text-content {
        max-width: 100%;
        padding-top: 0;
    }

    .hero-text-content h1 {
        font-size: 2.25rem;
    }

    .hero-image-content {
        width: 100%;
        justify-content: center;
    }

    .hero-img-rectangular {
        max-width: 100%;
        aspect-ratio: 1 / 1.1;
        margin-top: 0;
    }

    /* Sobre Raúl Mobile */
    .about-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
        align-items: flex-start;
    }

    .about-image-content {
        width: 100%;
    }

    .about-text-content h2 {
        font-size: 1.85rem;
    }
}

/* 2. Sobre Raúl Section */
.about-section {
    background-color: #f8f9fa; /* Soft slate/gray */
    padding: 100px 0 64px 0; /* Reduced from 160px to tighten the gap with experience */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px; /* Increased from 64px for more breathing room */
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 48px;
}

.about-image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-portrait-wrapper {
    width: 100%;
    max-width: 270px; /* Reduced further (~10%) from 300px */
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer, more subtle shadow */
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-portrait-img {
    width: 140%; /* Zoom in to crop edges (mouse, monitor) */
    height: 140%;
    object-fit: cover;
    object-position: 50% 15%; /* Frame as a bust, focusing on the top-center */
}

.about-text-content {
    flex: 1.2;
}

.about-text-content h2 {
    font-size: 2.25rem;
    margin-bottom: 16px; /* Reduced from 24px for tighter cohesion */
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.about-text-content p:last-child {
    font-size: 1rem; /* Slightly smaller */
    color: var(--color-text-muted); /* Slightly lighter */
    opacity: 0.85;
}

/* 3. Formación y experiencia Section */
.experience-section {
    background-color: #ffffff; /* Base White to blend with logos */
    padding: 40px 0 100px 0; /* Reduced top padding to move title even higher */
}

.experience-section .container {
    max-width: 1000px; /* Increased to fit 5 logos comfortably */
}

.experience-section h3 {
    font-size: 1.5rem; /* Larger as requested */
    color: var(--color-text-main); /* Stronger color */
    margin-bottom: 20px; /* Tightened gap to icons */
    font-weight: 700; /* More visual weight */
}

.experience-grid {
    display: flex;
    gap: 24px 48px; /* 6*4 and 12*4 */
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.uni-logo {
    position: relative;
    width: 120px;
    height: 80px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.uni-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.uni-logo:hover {
    opacity: 1;
    transform: translateY(-4px);
}

/* University Tooltip */
.uni-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1e293b;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.uni-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.uni-logo:hover .uni-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Marquee rotativo */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #E6EBF0; /* Azul claro del hero */
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 40s linear infinite;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-text-main);
}

.marquee-content span {
    margin: 0 24px;
}

.marquee-dot {
    font-size: 1.2rem;
    line-height: 0;
    vertical-align: middle;
    color: var(--color-text-muted);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
/* 4. Especializaciones */
.specialties-section {
    background-color: var(--color-surface);
    padding: 100px 0;
}

.specialties-section .container {
    max-width: 1152px; /* Ampliado para que quepan las 3 tarjetas en la misma línea */
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.specialty-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.specialty-card:hover {
    transform: scale(1.05) translateY(-4px); /* Efecto de agrandado y elevación */
    box-shadow: 0 16px 32px rgba(108, 155, 188, 0.15);
    border-color: rgba(108, 155, 188, 0.3);
    z-index: 2; /* Para que al agrandarse se ponga por encima del resto */
}

@media (max-width: 900px) {
    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

.specialty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(108, 155, 188, 0.08); /* super soft primary */
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon {
    background-color: var(--color-primary);
    color: var(--color-surface);
    transform: scale(1.05);
}

.specialty-card h4 {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.specialty-card p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 3. Testimonials Section */
.testimonials-section {
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.testimonials-container {
    max-width: 1400px;
    /* Greatly expanded container width to fit layouts easily */
    position: relative;
    /* For absolutely positioned nav arrows inside */
}

.slider-outer-container {
    margin: 60px 0 20px;
}

.carousel-wrapper {
    margin: 0 60px;
    /* Space on left and right for absolute arrows */
    position: relative;
    width: calc(100% - 120px);
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(108, 155, 188, 0.08);
    /* Extra soft separation depth */
    overflow: hidden;
    /* Constraints blurred image to radius bounds cleanly */
    z-index: 1;
    /* Stacking base for soft background */
}

.carousel-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    /* Negates edge-bleeding of blur */
    background-image: url('Fondo slider review.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    /* Sharpened slightly to reveal defined structures */
    opacity: 0.65;
    /* Pronounced image weight */
    z-index: -2;
    pointer-events: none;
}

.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #172a3a;
    /* Deep premium slate blue to dramatically push the white typography forward */
    opacity: 0.85;
    /* Rich, heavy wash to plunge the image into the background for extreme readability */
    z-index: -1;
    pointer-events: none;
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
    align-items: stretch;
    width: 100%;
}

/* Hide scrollbar visually while keeping functionality */
.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    position: relative;
    padding: 100px 60px;
    /* Deeply increased padding for high visual spacing */
    min-height: 520px;
    /* Taller slider */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Slide 1 Layout */
.carousel-slide.slide-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.main-review {
    flex: 1;
    /* Automatically dominates center space or fills container */
    max-width: 520px;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-review .review-text {
    font-size: 1.05rem;
    color: #f6f8fa;
    /* Soft off-white to eliminate harshness while maintaining high contrast */
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1.7;
    font-weight: 600;
}

.main-review .stars {
    color: #fbbc05;
    /* Google star yellow */
    font-size: 1rem;
    margin-bottom: 6px;
    /* Grouped tight towards avatar */
    letter-spacing: 4px;
}

.main-review .reviewer-name {
    font-weight: 600;
    color: #b0e3be;
    /* Slightly brighter, more visible mint green */
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.main-review .reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
    /* Grouped tight towards name */
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Adjustments for smaller screens */
@media (max-width: 900px) {
    .carousel-slide {
        flex-direction: column;
        justify-content: center;
        height: auto;
        min-height: auto;
        padding: 40px 20px;
        gap: 24px;
    }
}

/* Carousel Nav Button Styling (Now detached) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-main);
    opacity: 0.3;
    /* Muted, minimal appearance */
    font-size: 2.75rem;
    /* Noticeable clean icon */
    cursor: pointer;
    z-index: 10;
    width: auto;
    height: auto;
    padding: 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-nav {
        display: flex;
    }
}

.carousel-nav:hover {
    color: var(--color-text-main);
    opacity: 1;
    /* Pure clarity on hover */
    background-color: transparent;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    /* Slight pop */
}

.carousel-prev {
    left: -70px;
    /* Edges further outward to prioritize content focus */
}

.carousel-next {
    right: -70px;
    /* Edges further outward to prioritize content focus */
}

/* Adjustments for smaller screens */
@media (max-width: 900px) {
    .carousel-wrapper {
        margin: 0;
        width: 100%;
        border-radius: 0;
        /* Full bleed on narrow devices */
    }

    .carousel-slide,
    .carousel-slide.slide-1,
    .carousel-slide.slide-2 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        min-height: auto;
        padding: 40px 20px;
        gap: 32px;
    }

    .slide-2 .quote-pos-1,
    .slide-2 .quote-pos-2,
    .slide-2 .quote-pos-3,
    .slide-2 .quote-pos-4 {
        justify-self: center;
        align-self: center;
        transform: none;
        text-align: center;
        margin: 0;
        max-width: 100%;
    }

    .slide-1 .quote-left,
    .slide-1 .quote-right {
        transform: none;
        max-width: 100%;
    }
}

.google-rating-link {
    display: flex;
    justify-content: center;
    text-decoration: none;
    margin-top: 24px;
    transition: transform 0.2s ease;
}

.google-rating-link:hover {
    transform: translateY(-2px);
}

.testimonials-container .section-subtitle {
    font-size: 1.15rem;
    /* Slightly larger presence */
    color: #4a5568;
    /* Less faded, stronger solid slate-grey */
    margin-top: -16px;
    /* Pull directly tight against the H2 */
    margin-bottom: 48px;
    /* Push the slider cleanly away to isolate the solid header block */
    font-weight: 400;
}

.google-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.google-rating .rating-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.google-rating .score {
    font-weight: 600;
    font-size: 0.95rem;
}

.google-rating .reviews-count {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Nav arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: none;
    /* Hide on mobile (swipe is native) */
}

@media (min-width: 768px) {
    .carousel-nav {
        display: block;
        /* Show on desktop */
    }
}

.carousel-nav:hover {
    color: var(--color-text-main);
    transform: translateY(-50%) scale(1.1);
    /* Subtle grow purely on the element */
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}


/* 3. Session & Steps Space */
.session-image {
    height: 300px;
    width: 100%;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    background-color: var(--color-text-main);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    margin-top: 4px;
    /* Align visually with text */
}

/* 4. Practical Info Card */
.info-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    /* Extremely soft shadow */
    border: 1px solid var(--color-border);
}

.info-card p {
    color: var(--color-text-main);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* 5. Reviews Layout */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.review {
    padding-left: 24px;
    border-left: 4px solid var(--color-placeholder-bg);
}

.review p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.review cite {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* 6. Location Component */
.location-wrapper {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.location-text {
    flex: 1;
}

.location-text h2 {
    margin-bottom: 16px;
}

.location-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.location-info-block {
    margin-bottom: 24px;
}

.location-info-block:last-child {
    margin-bottom: 0;
}

.location-info-block h4 {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
    font-weight: 600;
}

.location-info-block p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.location-map {
    flex: 1.2;
    height: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Gentle shadow match */
    overflow: hidden; /* ensures iframe corners are rounded */
    border: 1px solid var(--color-border);
}

@media (max-width: 800px) {
    .location-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .location-map {
        height: 300px;
    }
}

/* 7. FAQ Space */
.faq-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

/* 8. Final CTA */
#final-cta {
    padding: 120px 0 160px;
    /* Extra bottom padding to account for FAB overlay */
}

/* Floating WhatsApp Button Placeholder */
.floating-whatsapp {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: var(--color-whatsapp);
    color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1000;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}

/* 9. Footer */
.site-footer {
    padding: 32px 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.site-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* -----------------------------------------------------------
   Testimonials Focused Variation
   ----------------------------------------------------------- */

.slide-focused .carousel-slide {
    padding: 120px 40px; /* Increased vertical padding */
    min-height: 520px;
}

.slide-focused .main-review {
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.slide-focused .main-review .review-text {
    font-size: 1.55rem; /* Significantly larger text for impact */
    line-height: 1.6;
    margin-bottom: 43px; /* Lifted stars 5px */
    color: #f6f8fa;
    font-weight: 600;
}

.slide-focused .main-review .stars {
    color: #fbbc05;
    font-size: 1.25rem;
    margin-bottom: 32px; /* High spatial breath */
    letter-spacing: 7px;
}

.slide-focused .main-review .reviewer-avatar {
    width: 76px; /* Increased 5% */
    height: 76px;
    margin-bottom: 24px; /* High spatial breath */
    border-width: 2.5px;
}

.slide-focused .main-review .reviewer-name {
    font-size: 1.05rem; /* Increased 5% */
    letter-spacing: 2.5px;
    color: #a8d5ba; /* Desaturated mint for elegance */
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive adjustments for focused variation */
@media (max-width: 900px) {
    .slide-focused .carousel-slide {
        padding: 60px 24px;
        min-height: auto;
    }

    .slide-focused .main-review .review-text {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .slide-focused .main-review .reviewer-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
}

/* -----------------------------------------------------------
   Pricing Section
   ----------------------------------------------------------- */

.pricing-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px auto 40px auto;
    max-width: 800px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 48px 32px;
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.pricing-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.pricing-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 12px;
}

.pricing-value span {
    font-size: 1.75rem;
    margin-left: 4px;
    color: var(--color-text-muted);
}

.pricing-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
}

.pricing-shared-value-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 32px;
    max-width: 800px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Ensure internal text is centered */
    gap: 20px;
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 500;
}

.pricing-shared-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #e0f2fe;
    color: #172a3a;
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-payment-notice {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Responsive adjustments for pricing */
@media (max-width: 800px) {
    .pricing-grid {
        flex-direction: column;
        gap: 40px;
        margin: 40px 0;
    }
}

/* -----------------------------------------------------------
   Therapy Process Section
   ----------------------------------------------------------- */

.process-section {
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 90px;
    margin: 0 auto 60px auto;
    max-width: 900px;
}

.process-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.process-divider {
    width: 40px;
    height: 2px;
    background-color: #ffd872; /* subtle warm accent like reference */
    margin-bottom: 20px;
    border-radius: 2px;
}

.process-item p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.process-footer {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 32px;
}

.process-footer p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ------------------------
   5. FAQ Section & Accordion
---------------------------*/
.faq-section {
    background-color: #ffffff;
    padding: 100px 0 160px 0; /* Aumentamos el padding inferior para asegurar que no se corte la última tarjeta */
    min-height: auto; /* Nos aseguramos de que no haya alturas fijas */
}

.faq-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 24px;
    height: auto; /* Crecimiento natural */
    overflow: visible; /* Evitamos que el contenedor corte nada */
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Accordion Item */
.faq-item {
    background-color: #E6EBF0; /* Blue tone from hero as requested */
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 12px 24px rgba(108, 155, 188, 0.1);
    border-color: rgba(108, 155, 188, 0.2);
    /* Slight lift on active */
    transform: translateY(-2px);
}

.faq-question {
    position: relative;
    overflow: hidden; 
    width: 100%;
    text-align: left;
    height: 90px;
    padding: 0 40px; /* Un poco más de aire lateral */
    background: transparent;
    border: none;
    font-size: 1.15rem;
    font-weight: 600;
    box-sizing: border-box; /* Aseguramos que el height incluya todo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.faq-question-left {
    display: flex;
    align-items: center;
}

.faq-question-left span {
    margin-left: 210px; /* Un pelín más a la derecha para respetar el nuevo logo al 10% */
    position: relative;
    z-index: 2;
}

.faq-item-logo {
    position: absolute;
    left: 10px; 
    top: 75%; /* Empujamos el logo aún más abajo */
    transform: translateY(-50%);
    height: 200px; 
    width: auto;
    object-fit: contain;
    opacity: 0.85; 
    z-index: 1;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Soft highlight */
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 16px;
}

/* Chevron flips when active */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    /* Pure CSS smooth height transition trick! */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
}

/* Spacing and text styles inside the answer */
.faq-answer-content p {
    padding: 0 32px;
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

/* First paragraph needs padding top, last needs padding bottom */
.faq-answer-content p:first-child {
    padding-top: 8px; /* Little gap from the question */
}

.faq-answer-content p:last-child {
    padding-bottom: 24px;
}

/* Gap between paragraphs */
.faq-answer-content p + p {
    padding-top: 12px;
}

.faq-item.active .faq-answer-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s; /* Subtle cascading delay after height expansion starts */
}

/* -----------------------------------------------------------
   COMPREHENSIVE MOBILE POLISH (max-width: 768px)
   ----------------------------------------------------------- */
@media (max-width: 768px) {
    /* 1. Header & Anchor Compensation */
    html {
        scroll-padding-top: 140px; /* Evita que el header tape secciones al hacer clic en enlaces */
    }
    
    .top-nav {
        padding: 12px 0; /* Header total más pequeño */
    }
    .top-nav.scrolled {
        padding: 8px 0;
    }
    .logo-img {
        height: 120px; /* Logo más pequeño en móvil */
        margin-top: -30px;
        margin-bottom: -40px;
    }
    .top-nav.scrolled .logo-img {
        height: 110px;
        margin-top: -25px;
        margin-bottom: -35px;
    }
    .nav-links {
        gap: 12px;
        padding-bottom: 4px;
    }
    .nav-links a {
        font-size: 0.9rem; /* Menú más compacto */
    }

    /* 2. Tipografía móvil (h1, h2, p) */
    h1, .hero-text-content h1 {
        font-size: 2.5rem !important; /* ~40px */
        line-height: 1.15;
    }
    h2, .about-text-content h2, .location-text h2 {
        font-size: 2.125rem !important; /* ~34px */
        line-height: 1.25;
    }
    p, .hero-text-content p, .about-text-content p, .specialty-card p, .process-item p, .info-card p, .location-info-block p, .faq-answer-content p {
        font-size: 1.125rem !important; /* ~18px para comodidad de lectura */
        line-height: 1.55;
    }

    /* 3. Espaciado Vertical General y Ajustes Específicos */
    .section {
        padding: 48px 0 !important; /* Reducido de 70px para hacer todo más compacto */
    }
    .hero-section {
        padding: 130px 0 32px 0 !important; /* Ajuste para el header compensado */
    }
    /* Reducir hueco entre Conoce a Raúl y Formación */
    .about-section {
        padding-bottom: 24px !important;
    }
    .experience-section {
        padding-top: 24px !important;
    }
    /* Reducir hueco entre Tipos de terapia, Proceso y Reseñas */
    .specialties-section {
        padding-bottom: 24px !important;
    }
    .process-section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    .testimonials-section {
        padding-top: 24px !important;
    }
    
    /* 4. Cards de terapias más compactas */
    .specialty-card {
        padding: 24px 20px !important;
        min-height: auto;
    }
    .specialty-card h4 {
        font-size: 1.35rem !important;
        margin-bottom: 8px;
    }
    .specialty-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    /* 5. El proceso de terapia (reducir gap) */
    .process-grid {
        gap: 32px !important; /* Reducido de 50px/70px */
        margin-bottom: 32px !important;
    }
    .process-item h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .process-divider {
        margin-bottom: 16px;
    }

    /* 6. Franja de palabras (Marquee responsive) */
    .marquee-container {
        padding: 10px 0;
    }
    .marquee-content {
        font-size: 0.85rem;
        letter-spacing: 1px; /* Menos espacio para encajar mejor en móvil */
    }
    .marquee-content span {
        margin: 0 16px; /* Menor margen horizontal */
    }

    /* 7. Reseñas más compactas y sin altura excesiva */
    .carousel-slide {
        padding: 32px 16px !important;
        min-height: auto !important;
        gap: 20px !important;
    }
    .slide-focused .carousel-slide {
        padding: 40px 16px !important;
    }
    .slide-focused .main-review .review-text,
    .main-review .review-text {
        font-size: 1.2rem !important; /* Tipografía algo menor para que quepa bien */
        margin-bottom: 20px;
    }
    .slide-focused .main-review .stars {
        margin-bottom: 16px;
        letter-spacing: 4px;
    }
    .slide-focused .main-review .reviewer-avatar {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    /* 8. Botones flotantes menos invasivos y Safe Area */
    .floating-whatsapp {
        bottom: calc(16px + env(safe-area-inset-bottom)) !important; 
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
    }
    .floating-whatsapp svg {
        width: 26px !important;
        height: 26px !important;
    }

    /* 9. Imágenes y Reordenación del Hero */
    .hero-split-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important; /* Usamos márgenes específicos para controlar exactamente el espacio */
        padding: 0 20px !important;
    }
    .hero-text-content {
        display: contents !important; /* Permite reordenar h1, p y nav de forma independiente */
    }
    .hero-text-content h1 {
        order: 1;
        margin-bottom: 16px !important;
    }
    .hero-text-content p {
        order: 2;
        margin-bottom: 32px !important;
    }
    .hero-image-content {
        order: 3;
        margin-bottom: 28px !important;
        width: 100% !important;
    }
    .hero-internal-nav {
        order: 4;
        margin-top: 0 !important;
        width: 100% !important;
    }
    .hero-img-rectangular {
        max-width: 100% !important;
        aspect-ratio: 1 / 1.05;
        border-radius: 8px;
        margin-top: 0 !important;
    }
    
    .about-portrait-wrapper {
        max-width: 220px !important; 
        border-radius: 8px;
    }
    .about-container {
        gap: 32px !important; /* Espacio entre foto de Raúl y texto "Conoce a Raúl" */
        padding: 0 20px !important;
    }
    
    /* FAQ Mobile fixes */
    .faq-question {
        padding: 0 16px;
        height: auto;
        min-height: 80px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .faq-question-left span {
        margin-left: 80px; 
        font-size: 1.1rem;
        line-height: 1.4;
    }
    .faq-item-logo {
        height: 120px;
        left: -10px;
        top: 50%;
    }
    .faq-answer-content p {
        padding: 0 16px !important;
    }

    /* Map Mobile Fixes */
    .location-map {
        height: 360px !important; /* Aumentar altura en móvil para que sea más útil */
        width: 100% !important;
        max-width: 100vw;
    }
}
