/* 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: 52px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-normal);
}

.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-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;
}

.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: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

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

.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);
}

/* --- 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(295px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background-color: var(--color-bg-white);
    border: 1px solid #cbd5e1;
    border-top: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    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(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #94a3b8;
}

.card-icon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.service-card:hover .card-icon {
    color: var(--color-accent);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.tag-clinica { background-color: rgba(12, 27, 51, 0.08); color: var(--color-primary); }
.tag-diagnostico { background-color: rgba(14, 165, 233, 0.1); color: #0284c7; }
.tag-intervencionista { background-color: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.tag-terapeutico { background-color: rgba(230, 57, 70, 0.08); color: var(--color-accent); }
.tag-urgencia { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

.card-title {
    font-family: var(--font-headings);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

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

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

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

.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: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.advantages-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

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

.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;
}

/* --- 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);
}

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

.btn-submit:hover .submit-btn-icon {
    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);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: var(--radius-full);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.5);
}

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

/* --- 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-title {
        font-size: 2.75rem;
    }
    
    .hero-container,
    .about-container,
    .advantages-container,
    .contact-container {
        gap: 2rem;
    }
}

@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, .services, .advantages, .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-title {
        font-size: 2.15rem;
        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-visual {
        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, .advantages-visual {
        aspect-ratio: 16 / 10;
    }
    
    .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: 1rem;
    }
    
    .card-title {
        font-size: 1.15rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }
    
    .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;
    }
    
    .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 {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}
