:root {
    --primary: #009ACE;
    --primary-dark: #007BA3;
    --primary-light: #E6F6FB;
    --text-main: #222222;
    --text-soft: #666666;
    --bg-main: #FFFFFF;
    --bg-soft: #d1d2d3e4;
    --border: #E5E7EB;
}

/* RESET */

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

/* BODY */

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #222;
    line-height: 1.6;
    background: white;
}

/* TIPOGRAFÍA */

h1,
h2,
h3,
h4,
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h5,
h6,
.subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

strong,
.highlight {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* HEADER */

.header {

    position: fixed;

    left: 50%;
    transform: translateX(-50%);

    width: 100%;

    padding: 10px 0;

    z-index: 1000;

    transition: all .35s ease;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    backdrop-filter: blur(12px);

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

}

.nav {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
}

/* LOGO */

.logo {

    font-size: 22px;
    font-weight: 700;

    padding-right: 5%;
    margin-right: 5%;

}

.logo img {
    height: 42px;
}

/* MENU */

#menu {
    margin-right: 2.5%;
}

.menu a {

    margin-left: 25px;
    text-decoration: none;
    color: #FFF;
    font-weight: 500;

    transition: .3s;

}

.menu a:hover {
    opacity: .7;
}

/* SECCIONES */

section {
    padding: 25px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

/* BOTONES */

.btn-primary {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;

    padding: 16px 34px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;

    transition: .2s ease;

}
.btn-primary-green{

    background: #1a9e5c;
    color: white;

    padding: 16px 34px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;

    transition: .2s ease;

}

.btn-primary:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 154, 206, .25);

}

.btn-primary-green:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 158, 92, .25);

}

.btn-primary:active,
.btn-primary.btn-click-effect {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 12px rgba(0, 154, 206, .18);
}

.btn-primary.btn-click-effect {
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn-benefit {

    display: inline-block;

    margin-top: auto;

    padding: 14px 28px;

    font-family: 'Poppins', sans-serif;

    font-weight: 500;

    color: var(--primary);

    background: white;

    border: 2px solid var(--primary);

    border-radius: 8px;

    text-decoration: none;

    transition: .3s;

}

.btn-benefit:hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);

}

/* BOTÓN NAV */

.btn-nav {

    position: relative;

    background: transparent;
    color: #fff;

    padding: 14px 30px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 600;

    border: 2px solid #fff;

    cursor: pointer;

    overflow: hidden;

    transition: border-color .25s ease;

}

.btn-nav:hover {
    border-color: #889ba2;
}

/* HAMBURGER */

.hamburger {

    display: none;

    flex-direction: column;

    cursor: pointer;

}

.hamburger span {

    width: 25px;
    height: 3px;

    background: white;

    margin: 4px 0;

    transition: .3s;

}

/* CONTACTO */
.btn-contact {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    margin-top: 40px;
    padding: 16px 34px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
    display: inline-block;
}

.btn-contact-green {

    background: #1a9e5c;
    color: white;
    margin-top: 40px;
    padding: 16px 34px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
    display: inline-block;
}

.btn-contact:hover, .btn-contact-green:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 154, 206, .25);

}

.btn-contact:active,
.btn-contact.btn-click-effect, .btn-contact-green:active, .btn-contact-green.btn-click-effect {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 12px rgba(0, 154, 206, .18);
}

.btn-contact.btn-click-effect, .btn-contact-green.btn-click-effect {
    transition: transform .12s ease, box-shadow .12s ease;
}

/* ANIMACIONES */

.animate {

    opacity: 0;
    transform: translateY(40px);
    transition: 1s;

}

.visible {

    opacity: 1;
    transform: translateY(0);

}

/* WHATSAPP FLOAT */

.whatsapp-container {

    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;

}

.whatsapp-float {

    width: 100px;
    height: 100px;
    border: 2px solid #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    transition: .2s;

}

.whatsapp-float img {
    width: 70px;
}

.whatsapp-float:hover {

    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);

}

.whatsapp-tooltip {

    background: white;
    color: #333;

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 14px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);

    opacity: 0;

    transform: translateX(-10px);

    pointer-events: none;

    transition: .25s;

    white-space: nowrap;

}

.whatsapp-container:hover .whatsapp-tooltip {

    opacity: 1;
    transform: translateX(0);

}

/* BOTÓN OPINIONES */

.btn-opinions {

    display: inline-block;

    margin-top: 40px;

    padding: 14px 32px;

    font-family: 'Poppins', sans-serif;
    font-weight: 500;

    color: var(--primary);
    background: white;

    border: 2px solid var(--primary);
    border-radius: 8px;

    text-decoration: none;

    transition: .3s;

}

.btn-opinions:hover {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0, 154, 206, .25);

}

/* BOTÓN SERVICIOS */

.btn-service {

    display: inline-block;

    margin-top: auto;

    padding: 14px 28px;

    font-family: 'Poppins', sans-serif;

    font-weight: 500;

    color: var(--primary);

    background: white;

    border: 2px solid var(--primary);

    border-radius: 8px;

    text-decoration: none;

    transition: .3s;

}

.btn-service:hover {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0, 154, 206, .25);
}

/* FOOTER CONTACT - icono y texto/enlace en la misma línea */
.footer-contact p {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px 0;
}

.footer-contact p i {
    display: inline-block;
    margin-bottom: 0;
    font-size: 1.3em;
    padding-left: 2px;
}

.footer-contact p a {
    display: inline;
    color: inherit;
    text-decoration: none;
}

/* ===== LEGAL PAGES ===== */

.legal-page {

    background: #fafafa;
    padding-top: 140px;
    padding-bottom: 80px;

}

.legal-container {

    max-width: 1100px;
    margin: auto;
    padding: 0 20px;

}

.legal-container h1 {

    text-align: center;
    margin-bottom: 50px;
    font-size: 38px;

}

.legal-card {

    background: white;
    padding: 35px;
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    margin-bottom: 25px;

    transition: 0.3s;

}

.legal-card:hover {

    transform: translateY(-3px);

}

.legal-card h2 {

    margin-bottom: 15px;
    font-size: 22px;

}

.legal-card p {

    color: #444;
    margin-bottom: 15px;

}

.legal-card ul {

    padding-left: 20px;
    color: #444;

}

.legal-card li {

    margin-bottom: 8px;

}

/* POP-UP GENERAL */
.popup-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
}

.popup-form h2 {
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

.popup-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 500;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.popup-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.popup-form label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.popup-form label a:hover,
.popup-form label a:focus {
    transform: translateY(-1px);
    text-shadow: 0 0 4px rgba(0, 154, 206, 0.25);
}

.popup-form button.btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.popup-form button.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* CLOSE BUTTON */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
    transition: 0.2s;
}

.popup-close:hover {
    color: var(--primary-dark);
}

/* cta style */
.cta h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: (var(--text-main));
}

.cta h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--text-soft);
}

/* PLAN BIENESTAR */
.wellbeing-intro {
    padding: 80px 20px;
    background: #fafafa;
}

.wellbeing-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.wellbeing-text h2 {
    margin-bottom: 20px;
}

.wellbeing-text p {
    color: var(--text-soft);
    margin-bottom: 15px;
}

.wellbeing-image img {
    width: 100%;
    border-radius: 12px;
}

/* FORMATOS Y SERVICIOS */
.formats {
    padding: 80px 20px;
    text-align: center;
}

.formats-subtitle {
    color: var(--text-soft);
    max-width: 700px;
    margin: 20px auto 50px;
}

.formats-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    justify-items: center;
    /* centra cada icono horizontalmente */
    align-items: center;
    /* centra verticalmente */
}

.format-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.format-item i {
    font-size: 32px;
    color: var(--primary);
}

.format-item span {
    font-size: 14px;
    color: var(--text-soft);
}

.formats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.formats-box {
    background: #f5f7fa;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.formats-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.formats-list li {
    margin-bottom: 12px;
    color: #444;
}

.formats-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formats-images img {
    width: 100%;
    border-radius: 12px;
}

.formats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 650px;
    /* mejora la lectura */
}

.formats-list li {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 18px;
    color: #333;
    /* mantiene contraste sin tocar colores */
}

.formats-list strong {
    font-weight: 600;
    font-size: 20px;
    display: block;
    /* separa el título del texto */
    margin-bottom: 0.2rem;
}

.color-azul {
    color: #A7D8F0;
}

.color-amarillo {
    color: #F4C842;
}

.color-verde {
    color: #B7E3C2;
}

.color-arcoiris {
    color: var(--primary);
}


/* Nuevo FORMATS */
/* --- MINI TARJETAS ELEGANTES --- */
.service-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.4rem;
    border-radius: 14px;
    backdrop-filter: blur(4px);
    border-left: 4px solid rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    margin-bottom: 1rem;
}

/* Hover sutil y profesional */
.service-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

/* Títulos */
.service-item strong {
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Texto */
.service-item span {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* Espacio antes del botón */
.formats-box .btn-primary {
    margin-top: 1.8rem;
    display: inline-block;
}


/* CERTIFICADO */
.certificate {
    padding: 80px 20px;
    background: #fafafa;
}

.certificate-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.certificate-text h2 {
    margin-bottom: 20px;
}

.certificate-text p {
    color: var(--text-soft);
    line-height: 1.6;
}

.certificate-image img {
    width: 100%;
    border-radius: 12px;
}

.wellbeing-image img,
.certificate-image img,
.formats-images img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wellbeing-image img:hover,
.certificate-image img:hover,
.formats-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===== SERVICES PRO (TIMELINE INTERACTIVO) ===== */
/* CONTENEDOR */
/* ===== STEPPER CÓMO TRABAJAMOS ===== */

.stepper-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 40px 0 30px;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2;
    flex: 1;
    max-width: 130px;
}

.stepper-bubble {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
}

.stepper-bubble svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s;
}

.stepper-item:hover .stepper-bubble {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
}

.stepper-item.active .stepper-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.stepper-item.done .stepper-bubble {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.stepper-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-soft);
    text-align: center;
    line-height: 1.4;
    max-width: 90px;
    transition: color 0.2s;
}

.stepper-item.active .stepper-label {
    color: var(--primary-dark);
    font-weight: 500;
}

.stepper-connector {
    flex: 1;
    height: 3px;
    background: var(--border);
    position: relative;
    margin-bottom: 32px;
    border-radius: 2px;
    overflow: hidden;
    max-width: 60px;
}

.stepper-connector-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.stepper-detail {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    animation: stepFadeUp 0.35s ease;
}

@keyframes stepFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stepper-detail-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-detail-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stepper-detail-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stepper-detail-body p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0;
}

.stepper-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.stepper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.stepper-dot.active {
    background: var(--primary);
    transform: scale(1.35);
}

.stepper-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.stepper-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.stepper-btn:hover {
    background: var(--primary);
    color: white;
}

.stepper-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.stepper-btn:disabled:hover {
    background: transparent;
    color: var(--primary);
}

@media (max-width: 600px) {
    .stepper-label { display: none; }
    .stepper-detail { flex-direction: column; padding: 20px; }
}

/* ===== CLÍNICA (GRID TRATAMIENTOS) ===== */

.clinic {
    padding: 100px 20px;
    background: #f5f7fa;
}

.clinic-container {
    max-width: 1200px;
    margin: auto;
}

/* GRID */
.clinic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.clinic-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    height: 260px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
}

.clinic-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* IMAGEN */
.clinic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.clinic-card:hover img {
    transform: scale(1.1);
}

/* OVERLAY */
.clinic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 20px;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);

    color: white;
}

.clinic-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.clinic-overlay p {
    font-size: 14px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* EFECTO HOVER MÁS PRO */
.clinic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.3s;
}

.clinic-card:hover::after {
    opacity: 1;
}

/* ===== CLINIC HERO (TÍTULO) ===== */

.clinic-hero {
    padding-top: 140px;
    /* espacio por header fixed */
    padding-bottom: 60px;
    text-align: center;
    background: white;
}

.clinic-hero-container {
    max-width: 900px;
    margin: auto;
}

.clinic-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clinic-hero p {
    font-size: 18px;
    color: var(--text-soft);
    margin: auto;
}

.modal {
    display: none;
}

.modal.active {
    display: flex !important;
}

/* ===== MODAL FULLSCREEN ===== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* CONTENIDO */
.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;

    border-radius: 20px;
    padding: 30px;
    overflow-y: auto;

    position: relative;
    animation: fadeIn 0.3s ease;
}

/* BOTÓN CERRAR */
.close {
    position: absolute;
    top: 15px;
    right: 20px;

    font-size: 28px;
    cursor: pointer;
}

/* CONTENIDO INTERNO */
.clinic-modal-inner img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.clinic-modal-inner h2 {
    margin-bottom: 10px;
}

.clinic-modal-inner p {
    line-height: 1.6;
    color: #444;
}

.clinic-modal-inner ul {
    padding-left: 20px;
    margin: 15px 0;
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== CLINIC LOCATION ===== */

.clinic-location {
    padding: 100px 20px;
    background: white;
    text-align: center;
}

.clinic-location-container {
    max-width: 900px;
    margin: auto;
}

/* TÍTULO */
.clinic-location h2 {
    font-size: 32px;
    margin-bottom: 15px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* DIRECCIÓN */
.clinic-address {
    margin-bottom: 30px;
    font-size: 16px;
}

.clinic-address a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.clinic-address a:hover {
    text-decoration: underline;
}

/* IMAGEN */
.clinic-image img {
    width: 100%;
    max-width: 700px;

    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);

    transition: transform 0.4s ease;
}

.clinic-image img:hover {
    transform: scale(1.02);
}

/* ===== ABOUT ===== */

/* ===== ABOUT PAGE STYLES ===== */

/* INTRO STATEMENT — primera sección, sin hero */
.about-intro {
    padding-top: 140px;
    padding-bottom: 80px;
    background: white;
    overflow: hidden;
}

.about-intro-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-intro-text {
    position: relative;
}

.about-label {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
}

.about-intro-text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 46px;
    line-height: 1.15;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.about-intro-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-intro-text p {
    font-size: 17px;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-intro-visual {
    position: relative;
}

.about-intro-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.about-intro-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.about-intro-card blockquote {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.about-intro-card blockquote::before {
    content: '"';
    font-size: 80px;
    line-height: 0;
    vertical-align: -0.4em;
    color: rgba(255, 255, 255, 0.25);
    font-family: Georgia, serif;
    margin-right: 4px;
}

.about-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.about-card-footer p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* STATS BAND */
.about-stats {
    background: #f5f7fa;
    padding: 60px 20px;
}

.about-stats-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 154, 206, 0.12);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

/* EQUIPO */
.about-team {
    padding: 90px 20px;
    background: white;
}

.about-team-container {
    max-width: 1100px;
    margin: auto;
}

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

.team-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: 0.35s;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 154, 206, 0.14);
}

.team-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 36px 36px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-card-header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 16px;
    color: white;
}

.team-card-header h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.team-card-header .team-role {
    font-size: 13px;
    opacity: 0.85;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.team-card-body {
    padding: 28px 36px 32px;
    flex-grow: 1;
}

.team-card-body p {
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 15.5px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.team-tag {
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 154, 206, 0.2);
}

/* MISIÓN / VALORES */
.about-values {
    background: #fafafa;
    padding: 90px 20px;
}

.about-values-container {
    max-width: 1100px;
    margin: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.value-card {
    background: white;
    border-radius: 18px;
    padding: 36px 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px 18px 0 0;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 154, 206, 0.12);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 22px;
}

.value-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.75;
}

/* ENFOQUE */
.about-approach {
    padding: 90px 20px;
    background: white;
}

.about-approach-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.approach-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f0f0f0;
}

.approach-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.approach-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.approach-list li div h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.approach-list li div p {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.65;
}

.approach-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.approach-mini-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    padding: 28px 20px;
    color: white;
    text-align: center;
    transition: 0.3s;
}

.approach-mini-card:first-child {
    grid-column: 1 / -1;
    background: #1a1a2e;
}

.approach-mini-card:hover {
    transform: translateY(-4px);
}

.approach-mini-card .mini-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.approach-mini-card h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.approach-mini-card p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.5;
}

/* CTA FINAL */
.about-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 90px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.about-cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.about-cta-inner {
    max-width: 700px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.about-cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===================================================
   POPUP FORMULARIO (compartido: contacto + portfolio)
   =================================================== */

.popup-form-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.popup-form {
    background: white;
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: popupIn 0.25s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-soft);
    line-height: 1;
    transition: color 0.2s;
}

.popup-close:hover {
    color: var(--text-main);
}

.popup-form h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* Cabecera especial del popup de portfolio */
.popup-header-portfolio {
    text-align: center;
    margin-bottom: 24px;
}

.popup-icon-portfolio {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.popup-header-portfolio h2 {
    margin-bottom: 6px;
}

.popup-subtitle-portfolio {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Campos del formulario */
.popup-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 14px;
    color: var(--text-main);
}

.popup-form label span {
    color: var(--primary);
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"],
.popup-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.popup-form input:focus,
.popup-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 154, 206, 0.12);
    background: white;
}

.popup-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Checkbox */
.popup-form .checkbox-label,
.popup-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 16px;
    cursor: pointer;
    line-height: 1.5;
}

.popup-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.popup-form label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Botón submit dentro del popup */
.popup-form .btn-primary {
    width: 100%;
    margin-top: 20px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-portfolio-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mensaje de estado */
.form-msg {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    background: #f0fdf4;
}