/* Custom CSS for Dr. Nahuel Bocalandro Website - Redesigned & Expanded */

/* --- CSS Variables & Design System --- */
:root {
    --color-primary: #0c1b33;       /* Deep Navy Blue */
    --color-primary-light: #162a4a;
    --color-primary-dark: #060e1b;
    --color-accent: #e63946;        /* Accent Red */
    --color-accent-hover: #c81d25;  /* Darker Red */
    --color-bg-light: #f8fafc;      /* Light Slate */
    --color-bg-white: #ffffff;
    --color-text-dark: #0f172a;     /* Dark Slate */
    --color-text-muted: #475569;    /* Muted Slate */
    --color-text-light: #f1f5f9;
    --color-border: #e2e8f0;        /* Light Grey Border */
    
    --font-headings: 'Lora', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(12, 27, 51, 0.05), 0 2px 4px -2px rgba(12, 27, 51, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(12, 27, 51, 0.08), 0 4px 6px -4px rgba(12, 27, 51, 0.08);
    --shadow-glow: 0 10px 30px rgba(230, 57, 70, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --container-padding-x: 2rem;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

.section-title {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.text-center.section-subtitle { margin-left: auto; margin-right: auto; }
.text-white { color: var(--color-bg-white); }
.text-gray-300 { color: #cbd5e1; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* --- Header / Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(12, 27, 51, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    height: 75px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-normal), transform var(--transition-normal);
}

.nav-logo-link:hover .nav-logo {
    transform: scale(1.03);
}

.navbar.scrolled .nav-logo {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    padding: 0.5rem 0;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-text-light);
}

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

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

.btn-nav-cta {
    background-color: var(--color-accent);
    color: var(--color-bg-white) !important;
    padding: 0.55rem 1.35rem !important;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.btn-nav-cta::after {
    display: none;
}

.btn-nav-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.navbar.scrolled .nav-toggle {
    color: var(--color-bg-white);
}

.menu-icon {
    width: 24px;
    height: 24px;
}

/* --- Hero Section (Redesigned & Expanded) --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 4.5rem;
    background: linear-gradient(135deg, #0c1b33 0%, #060e1b 100%);
    color: var(--color-bg-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-brand-logo-wrap {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-brand-logo {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-identity {
    min-width: 0;
}

.hero-doctor-name {
    font-family: var(--font-headings);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-bg-white);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-name-last {
    color: #ff6b76;
    font-style: normal;
}

.hero-doctor-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.4;
}

.hero-doctor-specs span:first-child,
.hero-doctor-specs span:last-child {
    color: #e2e8f0;
}

.hero-spec-sep {
    color: var(--color-accent);
    font-weight: 800;
}

.hero-tagline {
    font-family: var(--font-headings);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-bg-white);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(230, 57, 70, 0.15);
    color: #ff4d5a;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 57, 70, 0.1);
    animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    color: var(--color-bg-white);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

/* legacy alias if referenced elsewhere */
.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-actions .btn-secondary {
    color: var(--color-bg-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-secondary:hover {
    border-color: var(--color-bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    aspect-ratio: 4 / 3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: rgba(12, 27, 51, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: floatElement 4s ease-in-out infinite;
}

.badge-top {
    top: 15px;
    left: -20px;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 25px;
    right: -15px;
    animation-delay: 2s;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatElement {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Background animated elements */
.ecg-bg-wave {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.ecg-bg-wave path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawECG 12s linear infinite;
}

@keyframes drawECG {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: -1000; }
}

/* --- About Me Section --- */
.about {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 100%;
    display: flex;
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    flex: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-quote {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    color: var(--color-primary);
    font-style: italic;
    border-left: 3.5px solid var(--color-accent);
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    font-weight: 500;
}

.about-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-feature-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    background-color: rgba(12, 27, 51, 0.05);
    color: var(--color-primary);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 20px;
    height: 20px;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Workplaces / Institutions Section --- */
.workplaces {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.workplaces-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.workplaces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.workplace-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.workplace-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.35);
    box-shadow: var(--shadow-lg);
}

.workplace-logo-wrap {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid var(--color-border);
}

.workplace-logo {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.workplace-name {
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
}

.workplace-location {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: -0.35rem;
}

/* --- Services & Prestaciones Section --- */
.services {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-white);
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.services-header {
    margin-bottom: 2.25rem;
}

/* Search and Tabs Panel */
.services-control-panel {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 27, 51, 0.08);
}

.clear-search-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    padding: 0.2rem;
}

.clear-search-btn:hover {
    color: var(--color-accent);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: rgba(12, 27, 51, 0.02);
}

.filter-tab.active {
    color: var(--color-bg-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(12, 27, 51, 0.15);
}

/* Services Grid & Compact Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.service-card {
    background-color: var(--color-bg-white);
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.service-card:has(.tag-clinica) { border-top-color: var(--color-primary); }
.service-card:has(.tag-diagnostico) { border-top-color: #0284c7; }
.service-card:has(.tag-intervencionista) { border-top-color: #4f46e5; }
.service-card:has(.tag-terapeutico) { border-top-color: var(--color-accent); }
.service-card:has(.tag-urgencia) { border-top-color: #ef4444; }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    margin-bottom: 0.65rem;
    padding: 0.65rem 0.75rem 0.6rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(12, 27, 51, 0.09) 0%, rgba(12, 27, 51, 0.03) 100%);
}

.service-card:has(.tag-diagnostico) .card-head {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.service-card:has(.tag-intervencionista) .card-head {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0.04) 100%);
}

.service-card:has(.tag-terapeutico) .card-head {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.04) 100%);
}

.service-card:has(.tag-urgencia) .card-head {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%);
}

.card-tag {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.14em;
    line-height: 1.2;
    background: none;
    opacity: 0.9;
}

.tag-clinica { color: var(--color-primary); }
.tag-diagnostico { color: #0284c7; }
.tag-intervencionista { color: #4f46e5; }
.tag-terapeutico { color: var(--color-accent); }
.tag-urgencia { color: #ef4444; }

.card-title {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.service-card:has(.tag-diagnostico) .card-title { color: #0c4a6e; }
.service-card:has(.tag-intervencionista) .card-title { color: #312e81; }
.service-card:has(.tag-terapeutico) .card-title { color: #9f1239; }
.service-card:has(.tag-urgencia) .card-title { color: #991b1b; }

.card-description {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.card-details-list {
    list-style: none;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-details-list li {
    font-size: 0.78rem;
    color: var(--color-text-dark);
    line-height: 1.4;
    position: relative;
    padding-left: 0.65rem;
}

.card-details-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.card-details-list li strong {
    font-weight: 600;
    color: var(--color-primary);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
}

.no-results-icon {
    width: 48px;
    height: 48px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- Advantages Section --- */
.advantages {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-light);
}

.advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.advantages-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 100%;
    display: flex;
}

.advantages-image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    flex: 1;
}

.advantages-content {
    display: flex;
    flex-direction: column;
}

.advantages-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.advantage-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advantage-card {
    background-color: var(--color-bg-white);
    padding: 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
    padding-left: 3.5rem;
    transition: transform var(--transition-normal);
}

.advantage-card:hover {
    transform: translateX(4px);
    border-color: rgba(12, 27, 51, 0.1);
}

.advantage-num {
    position: absolute;
    left: 1.15rem;
    top: 1.15rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.4;
    line-height: 1;
}

.advantage-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.advantage-card-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* --- Gallery Section — Clinical Viewer --- */
.gallery-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: linear-gradient(160deg, #0c1b33 0%, #060e1b 55%, #0a1628 100%);
    color: var(--color-bg-white);
    overflow: hidden;
}

.gallery-ecg-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    opacity: 0.6;
    pointer-events: none;
    animation: ecgDrift 18s linear infinite;
}

.gallery-ecg-wave svg {
    width: 200%;
    height: 100%;
}

@keyframes ecgDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(230, 57, 70, 0.15);
    color: #ff6b76;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(230, 57, 70, 0.25);
}

.gallery-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-bg-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gallery-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.65;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.gallery-filter {
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.gallery-filter:hover {
    color: var(--color-bg-white);
    border-color: rgba(230, 57, 70, 0.5);
    background-color: rgba(230, 57, 70, 0.08);
}

.gallery-filter.active {
    color: var(--color-bg-white);
    background: linear-gradient(135deg, var(--color-accent) 0%, #c81d25 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.gallery-viewer {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    align-items: stretch;
}

.gallery-monitor {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(230, 57, 70, 0.08);
    display: flex;
    flex-direction: column;
}

.monitor-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
}

.monitor-dots {
    display: flex;
    gap: 0.35rem;
}

.monitor-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.monitor-dots span:first-child { background: #e63946; }
.monitor-dots span:nth-child(2) { background: #f59e0b; }
.monitor-dots span:nth-child(3) { background: #34d399; }

.monitor-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #34d399;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}

.monitor-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.monitor-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
    cursor: zoom-in;
}

.monitor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform 8s ease;
}

.monitor-screen.is-changing .monitor-img {
    opacity: 0;
    transform: scale(1.04);
}

.monitor-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    opacity: 0.4;
}

.monitor-vitals {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.monitor-ecg {
    width: 60px;
    height: 16px;
    animation: ecgPulse 1.2s ease-in-out infinite;
}

@keyframes ecgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.vital-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.monitor-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(6, 14, 27, 0.95) 0%, rgba(6, 14, 27, 0.6) 55%, transparent 100%);
}

.monitor-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}

.monitor-title {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.monitor-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 540px;
}

.monitor-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.75rem;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-bg-white);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.gallery-nav:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--color-accent);
}

.gallery-expand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.gallery-expand:hover {
    color: var(--color-bg-white);
    border-color: var(--color-accent);
    background: rgba(230, 57, 70, 0.15);
}

.gallery-rail {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 57, 70, 0.4) transparent;
}

.gallery-rail::-webkit-scrollbar {
    width: 4px;
}

.gallery-rail::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.4);
    border-radius: 4px;
}

.gallery-thumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: all var(--transition-normal);
    cursor: pointer;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(230, 57, 70, 0.35);
    transform: translateX(4px);
}

.gallery-thumb.active {
    background: rgba(230, 57, 70, 0.12);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.25), inset 3px 0 0 var(--color-accent);
}

.gallery-thumb.is-hidden {
    display: none;
}

.gallery-thumb img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.thumb-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.thumb-cat {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.thumb-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 14, 27, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    max-width: min(1100px, 92vw);
    max-height: 85vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(85vh - 60px);
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
}

.lightbox-cat {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.lightbox-title {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    color: var(--color-bg-white);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-bg-white);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-bg-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(230, 57, 70, 0.3);
    border-color: var(--color-accent);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* --- Insurances / Coberturas Section (NEW) --- */
.insurances {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-white);
}

.insurances-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.insurance-card {
    background-color: var(--color-bg-light);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.insurance-card:hover {
    background-color: var(--color-bg-white);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.insurance-logo-txt {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.insurance-card:hover .insurance-logo-txt {
    color: var(--color-accent);
}

.insurance-plan {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.insurance-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.insurance-notice {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* --- Testimonials Section (NEW) --- */
.testimonials {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-light);
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--color-bg-white);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #eab308; /* Gold stars */
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.author-initials {
    background-color: rgba(12, 27, 51, 0.08);
    color: var(--color-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.author-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- FAQs Section (NEW) --- */
.faqs {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-bg-white);
}

.faqs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    padding: 1.15rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    background-color: transparent;
    transition: all var(--transition-fast);
}

.faq-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-item.active .faq-question {
    background-color: var(--color-bg-white);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-bg-white);
    transition: all var(--transition-normal);
}

.faq-answer p {
    padding: 1.15rem 1.5rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
}

/* --- Contact Section --- */
.contact {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.contact-subtitle {
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    padding: 0.65rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-icon {
    width: 22px;
    height: 22px;
}

.contact-detail-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-bg-white);
}

.contact-detail-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.contact-link {
    color: inherit;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255,255,255,0.4);
}

.contact-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.contact-link.hover-red:hover {
    color: #fca5a5;
    border-color: #fca5a5;
}

.contact-form-panel {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    color: var(--color-text-dark);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
}

.required {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(12, 27, 51, 0.08);
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 6px rgba(12, 27, 51, 0.15);
}

.btn-submit:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(12, 27, 51, 0.25);
}

.btn-whatsapp {
    background-color: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.form-whatsapp-note {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    text-align: center;
}

.submit-btn-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.submit-btn-icon-wa {
    width: 20px;
    height: 20px;
}

.btn-submit:hover .submit-btn-icon:not(.submit-btn-icon-wa) {
    transform: translateX(4px);
}

/* --- Footer --- */
.footer {
    background-color: #060e1b;
    color: #94a3b8;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links-list a {
    font-size: 0.85rem;
}

.footer-links-list a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-designer {
    font-weight: 500;
    color: rgba(255,255,255,0.25);
}

.footer-credit {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
}

.footer-credit a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--color-accent);
}

/* --- Floating WhatsApp Button (regla 07 + MOB-007) --- */
.whatsapp-float {
    position: fixed;
    right: max(22px, env(safe-area-inset-right, 0px));
    bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
    z-index: 1500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
}

.whatsapp-float:hover {
    transform: translateZ(0) translateY(-3px) scale(1.04);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-float:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.whatsapp-float-icon {
    width: 30px;
    height: 30px;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-visible,
.reveal-left.reveal-visible,
.reveal-right.reveal-visible {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive Media Queries (Mobile Optimization) --- */

@media (max-width: 1024px) {
    .hero-tagline {
        font-size: 1.65rem;
    }
    
    .hero-container,
    .about-container,
    .advantages-container,
    .contact-container {
        gap: 2rem;
    }

    .gallery-viewer {
        grid-template-columns: 1fr;
    }

    .monitor-screen {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }

    .monitor-img {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .monitor-caption {
        position: static;
        padding: 0.75rem 1rem;
        background: rgba(6, 14, 27, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .workplaces-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-rail {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumb {
        flex-direction: column;
        width: 140px;
        padding: 0.5rem;
        transform: none;
    }

    .gallery-thumb:hover {
        transform: translateY(-2px);
    }

    .gallery-thumb img {
        width: 100%;
        height: 80px;
    }

    .thumb-label {
        white-space: normal;
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .nav-link {
        color: var(--color-text-light);
        display: block;
        padding: 0.35rem 0;
    }
    
    .btn-nav-cta {
        text-align: center;
    }
    
    .navbar.scrolled .nav-menu {
        background-color: var(--color-primary);
    }
}

/* MOBILE OPTIMIZATIONS (Max Width 768px)
   - Maximize horizontal space (compact padding)
   - Grid to single column
   - Reduced margins/gaps
*/
@media (max-width: 768px) {
    :root {
        --container-padding-x: 0.75rem;
    }
    
    .navbar-container {
        padding: 0.5rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero, .about, .workplaces, .services, .advantages, .gallery-section, .insurances, .testimonials, .faqs, .contact, .footer {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .hero {
        padding-top: 105px;
        min-height: auto;
    }
    
    .hero-container,
    .about-container,
    .advantages-container,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
        text-align: left;
    }

    .hero-brand-logo {
        width: 110px;
    }

    .hero-doctor-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .hero-spec-sep {
        display: none;
    }

    .hero-tagline {
        font-size: 1.45rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-content {
        order: -1;
    }
    
    .hero-image-wrapper {
        aspect-ratio: 16 / 10;
        max-width: 100%;
    }
    
    .floating-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .badge-top {
        left: -5px;
    }
    
    .badge-bottom {
        right: -5px;
    }
    
    .about-visual {
        aspect-ratio: 16 / 10;
        min-height: auto;
        display: block;
    }

    .about-image {
        min-height: auto;
    }

    .advantages-visual {
        aspect-ratio: 16 / 10;
        min-height: auto;
        display: block;
    }

    .advantages-image {
        min-height: auto;
    }
    
    .about-quote {
        font-size: 1.15rem;
    }
    
    .services-control-panel {
        padding: 0.85rem;
        gap: 1rem;
    }
    
    .filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        flex-shrink: 0;
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .search-bar input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.85rem;
        width: 16px;
        height: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    
    .service-card {
        padding: 0.9rem;
    }

    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }
    
    .card-details-list {
        padding-top: 0.65rem;
        gap: 0.4rem;
    }
    
    .card-details-list li {
        font-size: 0.78rem;
    }
    
    .advantage-card {
        padding: 1rem;
        padding-left: 2.75rem;
    }
    
    .advantage-num {
        left: 0.85rem;
        top: 1rem;
        font-size: 1.25rem;
    }

    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
        line-height: 1.15;
    }

    .gallery-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .gallery-header {
        margin-bottom: 1.1rem;
    }

    .gallery-badge {
        font-size: 0.62rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.55rem;
    }

    .gallery-filters {
        margin-bottom: 1rem;
        gap: 0.35rem;
    }

    .gallery-filter {
        padding: 0.38rem 0.85rem;
        font-size: 0.78rem;
    }

    .monitor-screen {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        overflow: visible;
        cursor: default;
    }

    .monitor-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
        object-fit: cover;
        flex-shrink: 0;
    }

    .monitor-vitals {
        display: none;
    }

    .monitor-scanline {
        display: none;
    }

    .monitor-caption {
        position: static;
        padding: 0.65rem 0.85rem 0.75rem;
        background: rgba(6, 14, 27, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .monitor-category {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }

    .monitor-title {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .monitor-desc {
        font-size: 0.75rem;
        line-height: 1.4;
        max-width: none;
    }

    .monitor-chrome {
        padding: 0.5rem 0.75rem;
    }

    .monitor-tag {
        font-size: 0.58rem;
    }

    .monitor-controls {
        padding: 0.6rem 0.75rem;
    }
    
    .workplace-logo-wrap {
        height: 95px;
    }

    .workplace-name {
        font-size: 0.88rem;
    }

    .insurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .insurance-card {
        padding: 0.85rem 0.5rem;
    }
    
    .insurance-logo-txt {
        font-size: 1.15rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        padding: 1rem 1.25rem;
        font-size: 0.82rem;
    }
    
    .contact-form-panel {
        padding: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .whatsapp-float {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(24px, calc(20px + env(safe-area-inset-bottom, 0px)));
        width: 54px;
        height: 54px;
    }

    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }
}

/* =============================================================================
   Regla 08 — Responsive móvil seguro (sin romper diseño)
   ============================================================================= */
:root {
    --header-offset: calc(4.75rem + env(safe-area-inset-top, 0px));
    --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
}

html {
    scroll-padding-top: var(--header-offset);
    max-width: 100%;
}

body {
    max-width: 100%;
    min-width: 0;
}

main {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.navbar {
    padding-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        height: auto;
        align-items: flex-start;
        overflow-x: clip;
        overflow-y: visible;
        padding-top: calc(var(--header-offset) + var(--section-gap));
    }

    .hero-container,
    .hero-content,
    .hero-visual,
    .hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.55rem;
    }

    .hero-actions .btn {
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        text-wrap: balance;
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }
}

@media (max-width: 380px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        max-width: 100vw;
        pointer-events: none;
    }

    .nav-menu.open {
        pointer-events: auto;
    }
}

/* =============================================================================
   Animaciones globales — entrada escalonada de tarjetas e ítems
   ============================================================================= */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Al revelarse la sección (reveal-visible), sus tarjetas entran en cascada.
   fill-mode backwards: al terminar la animación no pisa los transform de hover. */
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item) {
    animation: riseIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(2) { animation-delay: 0.08s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(3) { animation-delay: 0.16s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(4) { animation-delay: 0.24s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(5) { animation-delay: 0.32s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(6) { animation-delay: 0.4s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(7) { animation-delay: 0.48s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(8) { animation-delay: 0.56s; }
.reveal-visible :is(.service-card, .workplace-card, .insurance-card, .testimonial-card, .faq-item, .gallery-thumb, .advantage-card, .about-feature-item, .contact-detail-item):nth-child(n+9) { animation-delay: 0.64s; }

/* Hero: entrada al cargar la página */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-brand { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
.hero-badge { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s backwards; }
.hero-tagline { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards; }
.hero-subtitle { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s backwards; }
.hero-actions { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s backwards; }
.hero-stats { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.66s backwards; }

/* Pulso suave del botón flotante de WhatsApp */
@keyframes waPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: waPulse 2.6s ease-in-out infinite;
}

/* Subrayado animado en links de navegación */
.nav-link:not(.btn-nav-cta) {
    position: relative;
}

.nav-link:not(.btn-nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:not(.btn-nav-cta):hover::after,
.nav-link:not(.btn-nav-cta).active::after {
    transform: scaleX(1);
}

/* Respeto por usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
