/* -------------------- */
/* BASE                 */
/* -------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: #2F89BB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

strong {
    font-weight: 600;
}

/* Layout genérico */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------- */
/* HEADER               */
/* -------------------- */
.main-header {
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1.5rem;
}

.logo a {
    text-decoration: none;
    color: #222;
}

.logo-main {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.logo-sub {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-nav {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #2F89BB;
    color: #2F89BB;
}

.btn-nav:hover {
    background-color: #2F89BB;
    color: #fff;
    text-decoration: none;
}

/* -------------------- */
/* BOTONES              */
/* -------------------- */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: #2F89BB;
    color: #fff;
}

.btn-primary:hover {
    background-color: #256c93;
    text-decoration: none;
}

.btn-secondary {
    background-color: #ffffff;
    color: #2F89BB;
    border-color: #2F89BB;
}

.btn-secondary:hover {
    background-color: #f2f8fb;
    text-decoration: none;
}

.full-width {
    width: 100%;
}

/* -------------------- */
/* HERO (INICIO)        */
/* -------------------- */
.hero {
    padding: 3rem 0 2.5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: flex-start;
}

.hero h1 {
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.hero-highlight {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-text p {
    margin-bottom: 0.9rem;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-info {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

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

.hero-card {
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #f5fbff, #ffffff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e1eff7;
    width: 100%;
    max-width: 360px;
}

.hero-card h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.hero-card ul {
    margin: 0 0 1.5rem;
    padding-left: 1.1rem;
    font-size: 0.95rem;
}


.hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.hero-photo-card {
    width: 230px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    background-color: #f5fbff;
}

.hero-photo-card img {
    width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 960px) {
    .hero-container,
    .two-columns,
    .specialties-grid,
    .pricing-grid,
    .contact-grid,
    .footer-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-side {
        justify-content: flex-start;  /* la foto y la tarjeta aparecerán debajo del texto */
        align-items: flex-start;
    }
}


/* -------------------- */
/* SECCIONES GENERALES  */
/* -------------------- */
.section-light {
    padding: 2.5rem 0;
    background-color: #fafafa;
}

.section-cta {
    padding: 3rem 0;
    text-align: center;
    background: #2F89BB;
    color: #fff;
}

.section-cta h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.section-cta p {
    margin-bottom: 1.4rem;
}

.section-cta .btn-primary {
    background-color: #fff;
    color: #2F89BB;
    border-color: #fff;
}

.section-cta .btn-primary:hover {
    background-color: #e5f2fb;
}

/* Dos columnas genéricas */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.two-columns h2 {
    margin-top: 0;
}

/* Listas con check */
.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.4rem;
}

.check-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #2F89BB;
    font-size: 1.1rem;
    line-height: 1;
}

.link-arrow {
    font-weight: 500;
}

/* -------------------- */
/* CABECERA DE PÁGINA   */
/* -------------------- */
.page-header {
    padding: 2.5rem 0 1.5rem;
}

.page-header h1 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

/* -------------------- */
/* ESPECIALIDADES       */
/* -------------------- */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.specialty h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

.specialty h3 {
    margin-bottom: 0.35rem;
    margin-top: 1.1rem;
    font-size: 1.02rem;
}

.specialty p {
    font-size: 0.95rem;
}

.specialty-cta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e2e2;
}

/* -------------------- */
/* TARIFAS              */
/* -------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e6edf2;
    padding: 1.75rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.pricing-card h2 {
    margin-top: 0;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2F89BB;
    margin: 0.2rem 0 0.8rem;
}

/* -------------------- */
/* CONTACTO             */
/* -------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-form {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e6edf2;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #cfd8e0;
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2F89BB;
    box-shadow: 0 0 0 1px rgba(47, 137, 187, 0.12);
}

.form-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.form-privacy input[type="checkbox"] {
    margin-top: 0.15rem;
}

.privacy-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert.success {
    background-color: #e6f6ec;
    border: 1px solid #9ad0a8;
    color: #235433;
}

.alert.error {
    background-color: #fdecec;
    border: 1px solid #f4a1a1;
    color: #7b1c1c;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    margin: 0.5rem 0 1rem;
}

.small-text {
    font-size: 0.85rem;
    color: #555;
}

/* -------------------- */
/* FOOTER               */
/* -------------------- */
.main-footer {
    margin-top: 2.5rem;
    background-color: #f5f7f9;
    border-top: 1px solid #e0e6ec;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2rem 0 1.5rem;
}

.footer-block h3 {
    margin-top: 0;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid #dde4eb;
    padding: 0.8rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* -------------------- */
/* RESPONSIVE           */
/* -------------------- */
@media (max-width: 960px) {
    .hero-container,
    .two-columns,
    .specialties-grid,
    .pricing-grid,
    .contact-grid,
    .footer-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-side {
        justify-content: flex-start;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-form,
    .pricing-card,
    .hero-card {
        padding: 1.4rem;
    }
}



/* Botón menú móvil */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.35rem 0.25rem;
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: #222;
    margin: 4px 0;
}



@media (max-width: 960px) {
    .hero-container,
    .two-columns,
    .specialties-grid,
    .pricing-grid,
    .contact-grid,
    .footer-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-side {
        justify-content: flex-start;
    }

    .header-container {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        display: none; /* se muestra al abrir */
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid #e5e5e5;
        margin-top: 0.35rem;
    }

    .btn-nav {
        margin-top: 0.3rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-form,
    .pricing-card,
    .hero-card {
        padding: 1.4rem;
    }
}


/* -------------------- */
/* HERO SLIDER          */
/* -------------------- */

.hero-slider {
    width: 100%;
    height: 520px; /* antes 300px */
    overflow: hidden;
    margin-bottom: 2rem;
}


.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* efecto suave */
    animation: fadeSlider 14s infinite;
    opacity: 1;
}

@keyframes fadeSlider {
    0%   { opacity: 1; }
    45%  { opacity: 1; }
    55%  { opacity: 0.7; }
    100% { opacity: 1; }
}

@media (max-width: 800px) {
    .hero-slider {
        height: 260px; /* antes 200px */
    }
}

@media (max-width: 500px) {
    .hero-slider {
        height: 200px; /* antes 150px */
    }
}


/* Bonos de sesiones */
.pricing-bonos {
    margin-top: 3rem;
    text-align: center;
}

.pricing-bonos h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pricing-bonos p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

.bonos-image-wrapper {
    margin: 1.5rem auto 1rem;
    max-width: 420px;
}

.bonos-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.bonos-note {
    font-size: 0.9rem;
    color: #555;
}


/* -------------------- */
/* BOTÓN WHATSAPP       */
/* -------------------- */

.whatsapp-float-wrapper {
    position: fixed;
    bottom: 90px;   /* antes 20px */
    right: 20px;
    z-index: 50;
}

.whatsapp-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background-color: #25D366;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    white-space: nowrap;
}

.whatsapp-float:hover {
    text-decoration: none;
    background-color: #1eb356;
}

.whatsapp-icon {
    display: inline-block;
}

@media (max-width: 600px) {
    .whatsapp-float-wrapper {
        bottom: 86px;  /* un poco por encima de la barra de cookies */
        right: 16px;
    }

    .whatsapp-float {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* -------------------- */
/* HERO VIDEO           */
/* -------------------- */

.hero-video {
    width: 100%;
    height: 520px; /* Ajusta si quieres más o menos altura */
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* posición estándar */
}


/* Responsive */
@media (max-width: 800px) {
    .hero-video {
        height: 260px;
    }
}

@media (max-width: 500px) {
    .hero-video {
        height: 260px; /* en lugar de 200px */
    }
}


/* -------------------- */
/* SECCIÓN VÍDEO INICIO */
/* -------------------- */

.section-video {
    padding: 2.5rem 0;
    background-color: #ffffff;
}

.video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: center;
}

.video-text h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.video-text p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    background-color: #000;
}

/* Responsive para la sección de vídeo */
@media (max-width: 960px) {
    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-wrapper {
        max-width: 520px;
        margin: 0 auto;
    }
}


/* -------------------- */
/* Créditos footer      */
/* -------------------- */

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-ama img {
    height: 26px;         /* Tamaño pequeño y discreto */
    opacity: 0.55;        /* Discreto visualmente */
    transition: opacity 0.2s ease;
}

.footer-ama:hover img {
    opacity: 1;           /* Se ilumina sutilmente al pasar el ratón */
}

/* En móvil, centrar y evitar que se vea muy grande */
@media (max-width: 600px) {
    .footer-bottom-flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-ama img {
        height: 22px;
    }
}



/* --------------------------- */
/* Barra de consentimiento RGPD */
/* --------------------------- */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 0.9rem 1.2rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.9rem;
}

.cookie-text {
    color: #333;
    max-width: 80%;
}

.cookie-more {
    color: #2F89BB;
    text-decoration: underline;
    margin-left: 5px;
}

.cookie-btn {
    background: #2F89BB;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.cookie-btn:hover {
    background: #246f95;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .cookie-text {
        max-width: 100%;
    }
}


/* -------------------- */
/* Reserva cita online  */
/* -------------------- */

.reserva-online {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: #f5fbff;
    border: 1px solid #e1eff7;
    text-align: center;
}

.reserva-online h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.reserva-online p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
}

.btn-reserva {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    background-color: #2F89BB;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(47, 137, 187, 0.25);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-reserva:hover {
    background-color: #256c93;
    transform: translateY(-1px);
    text-decoration: none;
}
