/* ========================================
   ESTILOS GLOBALES - FISIOBOSCH
   Diseño Profesional, Sobrio y Responsive
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores profesionales y sobrios */
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --secondary-color: #334155;
    --accent-color: #0369a1;
    --accent-light: #06b6d4;
    --success-color: #10b981;
    --error-color: #dc2626;
    --light-bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow: var(--shadow-md);
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.logo h1:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 48px;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
    background-color: #0c5aa1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #0c5aa1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(3, 105, 161, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 30px;
    font-weight: 500;
}

/* SECCIÓN SOBRE MÍ */
.about {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.3px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(3, 105, 161, 0.15);
    border-radius: 2px;
}

.experience-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(51, 51, 51, 0.08);
    border-radius: 14px;
    padding: 1.8rem 1.5rem 1.5rem 3.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 1.5rem;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(3, 105, 161, 0.1);
}

.experience-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.experience-card h4 {
    margin: 0 0 0.6rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.experience-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.experience-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.certification-note {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1.3rem 1.5rem;
    background: rgba(3, 105, 161, 0.08);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
}

.certification-note p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

/* SECCIÓN SERVICIOS */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.certification-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.certification-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    color: var(--primary-color);
}

.certification-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* ESPECIALIDADES */
.specialties {
    background-color: var(--light-bg);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.specialty-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.specialty-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.specialty-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 700;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.newsletter-form input:focus {
    border-color: var(--accent-light);
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   ESTADÍSTICAS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(3, 105, 161, 0.03) 100%);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.stat-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(3, 105, 161, 0.12);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   PACKAGES SECTION
   ======================================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.package-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.package-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.package-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 16px;
    margin-top: 12px;
    font-weight: 700;
}

.package-price {
    font-size: 2.75rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.package-price::after {
    content: '€';
    font-size: 1.4rem;
    display: inline-block;
    margin-left: 0.2rem;
    vertical-align: top;
}

.package-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.package-card ul {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.package-card ul li {
    padding: 10px 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.package-card ul li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 700;
    margin-right: 12px;
}

.package-card ul li:last-child {
    border-bottom: none;
}

/* CONTACTO */
.contact {
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    min-height: 280px;
}

.contact-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card .small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.8rem;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-calendly {
    padding: 0;
    max-width: 900px;
    width: 95%;
    height: 88vh;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

.modal-calendly .close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 10;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    width: 36px;
    height: 36px;
    font-size: 22px;
    border: 1px solid var(--border-color);
}

.modal-calendly .close:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.modal-calendly #calendly-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-calendly #calendly-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 12px;
}

.modal-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.form-section .small {
    color: var(--text-light);
    font-size: 0.9rem;
}

#onlineForm input,
#onlineForm select,
#onlineForm textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 12px;
    transition: var(--transition);
    color: var(--text-primary);
}

#onlineForm input:focus,
#onlineForm select:focus,
#onlineForm textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

#onlineForm select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1rem;
    padding-right: 40px;
}

#onlineForm textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   CALENDLY SECTION
   ======================================== */

.calendly-section {
    background-color: var(--white);
}

.calendly-intro {
    text-align: center;
    margin-bottom: 40px;
}

.session-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.session-type-card {
    background: var(--light-bg);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.session-type-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.session-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.session-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.session-type-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.session-price {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-top: 12px;
}

.calendly-container {
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    min-height: 700px;
    overflow: hidden;
}

.calendly-placeholder {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    color: var(--text-light);
}

.calendly-placeholder p {
    margin: 0 0 12px 0;
}

.calendly-placeholder a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.85;
    color: var(--white);
    font-size: 0.95rem;
}

.footer-section p.small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section {
    text-align: center;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.25);
}

@media (max-width: 575px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

/* ========================================
   SERVICE DETAIL CARDS
   ======================================== */

.services-detailed {
    background-color: var(--white);
}

.services-detailed .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-detail-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.service-icon-large {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 12px;
}

.service-header div h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.service-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-content h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.contact-info-section {
    background-color: var(--light-bg);
    margin-bottom: 60px;
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.clinic-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.map-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.clinic-info {
    padding: 24px;
}

.clinic-info h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.clinic-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-form-section {
    background-color: var(--white);
    margin-bottom: 60px;
}

.faq-section {
    background-color: var(--light-bg);
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-large {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form-large h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.contact-form-large > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location-info {
    background-color: var(--light-bg);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.location-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 0;
}

.location-info h3:not(:first-child) {
    margin-top: 24px;
}

.location-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.location-info ul {
    list-style: none;
}

.location-info ul li {
    padding: 8px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin: 20px 0;
    border: 2px dashed var(--border-color);
    font-weight: 500;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background-color: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.faq-item {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== NAVEGACIÓN ACTIVA ========== */
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active::after {
    width: 100%;
}

.cta-btn.active {
    background-color: #0c5aa1;
    box-shadow: var(--shadow-md);
}

/* ========== ACCIONES NAV (lang + CTA) ========== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ========== SELECTOR DE IDIOMA ========== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.lang-btn:hover {
    background-color: var(--light-bg);
    color: var(--text-primary);
    border-color: var(--secondary-color);
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* ========== MENÚ HAMBURGUESA ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1.5px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 7px 8px;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.menu-toggle:hover {
    border-color: var(--border-color);
    background-color: var(--light-bg);
}

.menu-toggle[aria-expanded="true"] {
    border-color: var(--accent-color);
    background-color: var(--light-bg);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span {
    background-color: var(--accent-color);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@keyframes mobileMenuSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 97;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ===== TABLETS Y LAPTOPS PEQUEÑAS (≤ 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .navbar .container {
        gap: 30px;
    }

    .nav-menu {
        gap: 30px;
    }

    .nav-links {
        gap: 40px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-detail-card {
        padding: 32px;
    }
}

/* ===== TABLETS (768px - 991px) ===== */
@media (max-width: 991px) {
    .navbar .container {
        gap: 20px;
        padding: 16px 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-links {
        gap: 30px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .specialties-grid,
    .stats-grid,
    .certifications-grid,
    .packages-grid,
    .contact-info-grid,
    .clinics-grid,
    .contact-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-detailed .container {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        padding: 28px;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .service-icon-large {
        margin: 0 auto;
    }

    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }
}

/* ===== MÓVILES GRANDES (576px - 767px) ===== */
@media (max-width: 767px) {
    .navbar .container {
        gap: 0;
        padding: 0 16px;
        min-height: 60px;
        align-items: center;
    }

    .logo {
        flex: 1;
        padding: 14px 0;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }

    .navbar {
        padding: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* El menú flota sobre el contenido — no altera el header ni el layout */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        z-index: 99;
        background: var(--white);
        border-top: 2px solid var(--accent-color);
        box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.18);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.is-open {
        display: flex;
        animation: mobileMenuSlide 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 14px 14px 10px;
    }

    .nav-links li {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 0 14px;
        height: 52px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: 10px;
        letter-spacing: -0.01em;
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a:hover {
        background-color: var(--bg-secondary);
        color: var(--accent-color);
        box-shadow: inset 3px 0 0 var(--accent-color);
        transform: none;
    }

    .nav-links a.active {
        background-color: #dbeafe;
        color: #1d4ed8;
        box-shadow: inset 3px 0 0 #1d4ed8;
        font-weight: 700;
    }

    .nav-actions {
        width: 100%;
        padding: 14px 14px 18px;
        border-top: none;
        margin-top: 6px;
        background: var(--primary-color);
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
        border-radius: 0;
    }

    .nav-actions .lang-switcher {
        gap: 6px;
    }

    .nav-actions .lang-btn {
        padding: 6px 10px;
        font-size: 0.68rem;
        border-radius: 6px;
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.75);
        background: transparent;
    }

    .nav-actions .lang-btn:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .nav-actions .lang-btn.active {
        background-color: rgba(255, 255, 255, 0.18);
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .cta-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
        flex-shrink: 0;
        border-radius: 8px;
        background-color: var(--accent-color);
        box-shadow: 0 2px 8px rgba(3, 105, 161, 0.4);
    }

    .hero {
        padding: 50px 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    .section-header h2::after {
        bottom: -12px;
        width: 60px;
    }

    .section-header p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specialties-grid,
    .stats-grid,
    .certifications-grid,
    .packages-grid,
    .contact-info-grid,
    .clinics-grid,
    .contact-details-grid,
    .session-types,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 24px;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .cta-content h2 {
        font-size: 1.9rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 24px;
        margin: 20% auto;
    }

    .close {
        right: 16px;
        top: 16px;
    }

    .footer-content {
        gap: 32px;
    }
}

/* ===== MÓVILES PEQUEÑOS (< 576px) ===== */
@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        gap: 0;
        padding: 0 12px;
        min-height: 56px;
    }

    .logo {
        padding: 12px 0;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.58rem;
    }

    .nav-menu {
        max-height: calc(100vh - 56px);
    }

    .nav-links {
        padding: 10px 10px 8px;
    }

    .nav-links a {
        height: 50px;
        padding: 0 12px;
        font-size: 1rem;
    }

    .nav-actions {
        padding: 12px 12px 16px;
    }

    .cta-btn {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .nav-actions .lang-btn {
        padding: 5px 8px;
        font-size: 0.63rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-detail-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .service-header {
        gap: 12px;
    }

    .service-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .service-header div h2 {
        font-size: 1.4rem;
    }

    .service-subtitle {
        font-size: 0.95rem;
    }

    .about-grid {
        gap: 24px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .stat-item {
        padding: 32px 20px;
    }

    .package-card {
        padding: 24px 16px;
    }

    .package-price {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .contact-icon {
        font-size: 2.2rem;
    }

    .contact-form-large {
        padding: 24px 16px;
    }

    .contact-form-large h2 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row input {
        margin-bottom: 12px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 10px 12px;
        font-size: 16px;
    }

    .faq-item {
        padding: 20px 16px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .location-info {
        padding: 24px 16px;
    }

    .map-placeholder {
        height: 250px;
    }

    .session-type-card {
        padding: 20px 16px;
    }

    .session-icon {
        font-size: 2rem;
    }

    .calendly-container {
        min-height: 500px;
        padding: 16px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

/* ===== LANDSCAPE MÓVIL ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 8px 0;
    }

    .logo h1 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .tagline {
        display: none;
    }

    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
}

/* ===== PANTALLAS DE ULTRA ALTA RESOLUCIÓN ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}
/* ========== MAPAS EMBEBIDOS ========== */
.map-embed {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-link {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.map-link:hover {
    background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 767px) {
    .map-embed {
        height: 180px;
    }
}

/* ========== VALIDACIÓN DE FORMULARIOS ========== */
.field-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.form-feedback {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 4px;
}

.form-feedback--success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-feedback--error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   PÁGINA LEGAL (Política de Cookies)
   ======================================== */

.legal-section {
    padding: 60px 0 80px;
}

.legal-section .container {
    max-width: 860px;
}

.legal-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 36px 0 12px;
}

.legal-section h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 24px 0 8px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-section ul {
    padding-left: 24px;
}

.legal-section a {
    color: var(--accent-color);
}

.legal-section .table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.legal-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-section th,
.legal-section td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    color: var(--text-secondary);
}

.legal-section th {
    background-color: var(--light-bg);
    color: var(--text-primary);
}
