/* Fuente Brittany Signature - archivo en /fonts/BrittanySignature.ttf */
@font-face {
    font-family: "Brittany Signature";
    src: url("../fonts/BrittanySignature.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Reset y Variables */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

/* Evita overflow por embeds y formularios en móvil */
iframe {
    max-width: 100%;
    width: 100%;
    display: block;
}

input,
textarea,
select {
    max-width: 100%;
    width: 100%;
}

:root {
    /* Paleta rosa elegante y profesional */
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --background: #F8BBD0;
    --secondary: #FCE4EC;
    --white: #FFFFFF;
    --dark: #2C2C2C;
    /* Alias para compatibilidad con estilos existentes */
    --accent: #E91E63;
    --accent-hover: #C2185B;
    --primary-light: #C2185B;
    --bg-light: #FCE4EC;
    --bg-cream: #FCE4EC;
    --text-dark: #2C2C2C;
    --text-muted: #6d6d6d;
    --text-light: #FFFFFF;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: block;
    min-height: 100%;
    color: var(--text-dark);
    background: #FCE4EC;
    width: 100%;
    overflow-x: hidden;
}

/* Fondo y altura: alineado con el contenido (evita desfase visual en móvil) */
.page-wrapper {
    background: linear-gradient(135deg, #F8BBD0, #FCE4EC);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

main {
    display: block;
}

/* Navbar — premium con profundidad */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #E91E63, #F06292);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1.1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: "Brittany Signature", Georgia, cursive;
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--text-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
}

.logo:hover .logo-text {
    color: rgba(255, 255, 255, 0.9);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

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

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 3px;
}

/* Slider - Cinematográfico, compatible con JS actual (.slide .active .prev .next) */
.slider-container {
    position: relative;
    width: 100%;
    margin-top: 70px;
    background: #1a1a1a;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 75vh;
    min-height: 320px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay oscuro tipo cinematográfico */
.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .slider {
        height: 45vh;
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 45vh;
        min-height: 240px;
    }
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    transition: var(--transition);
}

.slider button:hover {
    background: rgba(233, 30, 99, 0.4);
    color: #fff;
}

.slider button.prev {
    left: 10px;
}

.slider button.next {
    right: 10px;
}

/* Footer — contraste oscuro premium */
.footer {
    width: 100%;
    background: #C2185B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.75rem 1.5rem;
    margin-top: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.footer .footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer * {
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: #F06292;
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.footer-text {
    text-align: center;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0.25rem 0;
}

.design-credit {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(180deg, #E91E63 0%, #F06292 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 45px;
    }

    .footer-social {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-text p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo {
        gap: 0.5rem;
        min-width: 0;
    }

    .footer {
        padding: 16px 10px;
    }

    .footer-container {
        padding: 0 15px;
    }
}

/* Animación para el menú hamburguesa */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Estilos para la página Nosotros */
/* Paneles tipo glass (secciones principales) */
.section,
.nosotros-main,
.contacto-main,
.citas-main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* Sección genérica: evita “cortes” por fondos parciales */
.section {
    width: 100%;
    background: transparent;
}

.nosotros-main,
.contacto-main,
.citas-main {
    margin: 70px 0 2rem;
    padding: 2.75rem 1rem 3.75rem;
    min-height: calc(100vh - 70px);
}

/* Hero slider cinematográfico - Citas */
.cinematic-hero,
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 90vh;
    height: 90vh;
    margin-top: 70px; /* compensa navbar fixed */
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1) translateY(0);
    transition: opacity 900ms ease, transform 6800ms ease;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: opacity, transform;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.05) translateY(-1.5%);
}

.cinematic-hero::after,
.hero-slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        #f8f4f6
    );
}

.hero-content-wrap {
    position: relative;
    z-index: 3;
    width: min(1200px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.8vw, 2.5rem);
    display: flex;
    align-items: flex-end;
}

.hero-content {
    max-width: min(620px, 94%);
    color: #fff;
}

.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
    transform: translateY(40px);
}

.hero-content.is-visible .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.is-visible .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero-content.is-visible .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.25rem;
    text-shadow: 0 6px 16px rgba(0,0,0,0.38);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.16);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-cta:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.75);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-nav:hover {
    background: rgba(0,0,0,0.52);
    border-color: rgba(255,255,255,0.7);
}

.hero-nav-prev { left: clamp(0.6rem, 1.8vw, 1.4rem); }
.hero-nav-next { right: clamp(0.6rem, 1.8vw, 1.4rem); }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(0.9rem, 2.8vw, 1.8rem);
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 4;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.3);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

body.has-cinematic-hero .citas-main {
    margin-top: 0;
}

@media (max-width: 992px) {
    .cinematic-hero {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-content-wrap {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .cinematic-hero {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }
}

.page-header {
    text-align: center;
    padding: 3.5rem 2rem 2.5rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.page-title {
    font-size: 3.25rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-subtitle {
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.82;
    line-height: 1.5;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.content-section {
    padding: 3rem 0 4rem;
}

.section-content {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    padding: 3.25rem 2.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 2.25rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 2.35rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #E91E63;
    border-radius: 2px;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.section-text p {
    margin-bottom: 1.5rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Grid de Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.08);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 1rem;
}

.value-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Microinteracción: entrada suave al scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive para página Nosotros */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.2rem;
    }

    .container {
        max-width: 1200px;
        padding: 0 16px;
    }

    .section-content {
        padding: 2rem;
        margin: 1.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1rem;
        text-align: left;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-title {
        font-size: 1.25rem;
    }
}

/* Estilos para la página Citas */
.citas-container {
    padding: 2.5rem 0 3rem;
}

.citas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.citas-grid > *,
.contacto-grid > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Calendario */
.calendar-section {
    width: 100%;
}

.calendar-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    background: var(--primary);
    border: none;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    touch-action: manipulation;
}

.calendar-nav-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.calendar-month-year {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    touch-action: manipulation;
}
.calendar-day .calendar-day-num {
    font-weight: 600;
    line-height: 1.2;
}

.calendar-day .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    background: currentColor;
}

.calendar-availability-msg {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    min-height: 1.35em;
}
.calendar-availability-msg[hidden] {
    display: none !important;
}

.calendar-day:hover:not(.empty):not(.past):not(.closed):not(.full) {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
    font-weight: 700;
}

.calendar-day.past {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

.calendar-day.closed {
    background: var(--secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.full {
    background: #c62828;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.9;
    pointer-events: none;
}

.calendar-day.blocked {
    background: rgba(0, 0, 0, 0.06);
    color: #999;
    cursor: not-allowed;
    opacity: 0.85;
    pointer-events: none;
}
.calendar-day.available-high {
    background: rgba(46, 125, 50, 0.25);
    border-color: rgba(46, 125, 50, 0.5);
    color: #1b5e20;
}
.calendar-day.available-high:hover:not(.empty):not(.past):not(.full),
.calendar-day.available-high.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
}
.calendar-day.available-medium {
    background: rgba(251, 192, 45, 0.35);
    border-color: rgba(251, 192, 45, 0.55);
    color: #e65100;
}
.calendar-day.available-medium:hover:not(.empty):not(.past):not(.full),
.calendar-day.available-medium.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
}

.calendar-day.available-low {
    background: rgba(194, 24, 91, 0.1);
    border-color: rgba(194, 24, 91, 0.2);
    color: #880e4f;
}
.calendar-day.available-low:hover:not(.empty):not(.past):not(.full),
.calendar-day.available-low.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

/* Formulario */
.form-section {
    width: 100%;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Alias de layout (para evitar desalineaciones en móvil) */
.form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
}

.form-title {
    font-size: 2.15rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 2.15rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cita-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem;
    min-height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-light);
    touch-action: manipulation;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--accent);
}

.btn-reservar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive para página Citas */
@media (max-width: 968px) {
    .citas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calendar-wrapper,
    .form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .citas-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        gap: 1.5rem;
    }

    .calendar-wrapper,
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .calendar-month-year {
        font-size: 1.2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .citas-main .container,
    .contacto-main .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }

    .calendar-wrapper,
    .form-wrapper,
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1rem;
    }

    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-nav-btn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .calendar-month-year {
        font-size: 1rem;
    }
    
    .calendar-weekdays,
    .calendar-days {
        gap: 2px;
    }

    .weekday {
        font-size: 0.65rem;
        padding: 2px;
    }

    .calendar-day {
        font-size: 0.85rem;
        padding: 4px;
        text-align: center;
        min-height: 40px;
    }

    .calendar-day .dot {
        width: 5px;
        height: 5px;
        margin-top: 1px;
    }

    .calendar-availability-msg {
        font-size: 0.875rem;
        padding: 0 0.25rem;
    }
    
    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .cita-form {
        gap: 1rem;
    }
    
    .btn-reservar {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos para la página Contacto */
.contacto-container {
    padding: 2.5rem 0 3rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Formulario de Contacto */
.form-section-contacto {
    width: 100%;
}

.form-wrapper-contacto {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.form-title-contacto {
    font-size: 2.15rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 2.15rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-light);
    resize: vertical;
    min-height: 120px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

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

.btn-enviar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mapa */
.map-section {
    width: 100%;
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Paneles citas/contacto: padding incluido en el 100% del ancho (evita overflow en móvil) */
.calendar-wrapper,
.form-wrapper,
.form-wrapper-contacto,
.map-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.map-title {
    font-size: 2.15rem;
    font-weight: 600;
    color: #C2185B;
    margin-bottom: 1.65rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.map-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    display: block;
    box-sizing: border-box;
}

.map-info {
    text-align: center;
    color: var(--text-dark);
    padding: 1rem;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 10px;
}

.map-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.map-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.map-info strong {
    color: var(--primary);
}

/* Responsive para página Contacto */
@media (max-width: 968px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1.5rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1.5rem;
    }
    
    .form-title-contacto,
    .map-title {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .form-title-contacto,
    .map-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .btn-enviar {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-info {
        padding: 0.75rem;
    }
    
    .map-info p {
        font-size: 0.9rem;
    }
}

/* ========== Galería: miniaturas y lightbox ========== */
.gallery-page-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-empty {
    padding: 1.75rem 1rem;
    text-align: center;
    color: var(--text-muted, rgba(0,0,0,0.55));
    font-weight: 600;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: rgba(0, 0, 0, 0.05);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 14px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox (al hacer clic en una miniatura) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    display: block;
    transform: scale(1);
    opacity: 0;
    transition: transform 8s ease, opacity 450ms ease;
}

.lightbox.show-image .lightbox-img {
    transform: scale(1.05);
    opacity: 1;
}

.lightbox-subtitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: min(900px, 92%);
    z-index: 3;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    opacity: 0;
    transition: opacity 450ms ease, transform 450ms ease;
    text-align: left;
}

.lightbox.show-image .lightbox-subtitle {
    opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
    top: 14px;
    right: 14px;
    transform: none;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-icon {
    color: #333;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }

    .gallery-container {
        padding: 1.25rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float i {
    font-size: 32px;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .page-wrapper {
        padding-bottom: 80px;
    }
}

/* Servicios — fondo rosa suave: las cards blancas son protagonistas */
.services-section {
    padding: 4.75rem 2.5rem;
    background: #FCE4EC;
    border-radius: 20px;
    border: none;
    margin: 0 1.25rem 2.75rem;
    box-shadow: 0 12px 40px rgba(194, 24, 91, 0.06);
}

.services-title {
    text-align: center;
    font-size: 2.05rem;
    font-weight: 600;
    margin-bottom: 2.25rem;
    color: #C2185B;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 1.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    color: var(--dark);
    padding: 20px;
    border-radius: 18px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.service-card-label {
    line-height: 1.25;
}

.service-card-price {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.88;
}

.service-card-description {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

.service-card:hover:not(.selected) {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(233, 30, 99, 0.2);
}

.service-card.selected {
    border: 2px solid #e91e63;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.25);
    transform: translateY(-2px);
}

.service-card.selected:hover {
    border: 2px solid #e91e63;
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 24px rgba(233, 30, 99, 0.28);
}

.service-card:link,
.service-card:visited,
.service-card:hover,
.service-card:active {
    color: var(--dark);
    text-decoration: none;
}

/* Panel resumen selección de servicios */
.services-summary {
    max-width: 1200px;
    margin: 2.25rem auto 0;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.12);
    border: 1px solid rgba(233, 30, 99, 0.18);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.services-summary[hidden] {
    display: none;
}

.services-summary-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.services-summary-list {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.services-summary-list li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.services-summary-list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

.services-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* CTAs premium: gradiente, pill, elevación */
button.btn-agendar-cita,
button.btn-reservar,
button.btn-enviar,
button.btn-booking-submit,
button.btn-booking-close-success {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    font-weight: 600;
}

button.btn-agendar-cita:hover,
button.btn-reservar:hover,
button.btn-enviar:hover,
button.btn-booking-submit:hover,
button.btn-booking-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    filter: brightness(1.03);
}

button.btn-agendar-cita:active,
button.btn-reservar:active,
button.btn-enviar:active,
button.btn-booking-submit:active,
button.btn-booking-close-success:active {
    transform: translateY(0);
}

.btn-agendar-cita {
    display: inline-block;
    padding: 0.8rem 1.65rem;
    font-size: 1rem;
}

.btn-reservar-seleccion {
    display: inline-block;
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: #fff;
    padding: 0.8rem 1.65rem;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    border: none;
}

.btn-reservar-seleccion:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
    color: #fff;
    filter: brightness(1.03);
}

@media (max-width: 768px) {
    .nosotros-main,
    .contacto-main,
    .citas-main {
        margin: 70px 0 2rem;
        padding: 2rem 1rem 2.5rem;
    }

    .services-section {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 3rem 1.35rem;
    }

    .services-grid {
        gap: 1.35rem;
    }

    .services-summary {
        margin-top: 1.5rem;
        padding: 1rem 1.25rem;
    }

    .services-summary-message {
        font-size: 1rem;
    }

    .services-summary-actions {
        flex-direction: column;
    }

    .btn-reservar-seleccion,
    .btn-agendar-cita {
        display: block;
        text-align: center;
        min-height: 48px;
    }
}

@media (max-width: 520px) {
    /* En móvil: una columna centrada, sin “cortes” laterales */
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* ========== Modal Agendar cita ========== */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.booking-modal-overlay[hidden] {
    display: none;
}

.booking-modal-overlay.is-open[hidden] {
    display: flex;
}

.booking-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.booking-modal-overlay.is-open .booking-modal {
    transform: scale(1);
}

.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.booking-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.booking-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.booking-modal-body {
    padding: 0 1.5rem 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.booking-modal-summary-wrap {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.booking-modal-summary-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.booking-modal-summary {
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-modal-summary li {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

.booking-modal-summary li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

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

.booking-form .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.booking-form .form-group input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.booking-form .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.booking-form .form-group input.error {
    border-color: #c62828;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #c62828;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.btn-booking-submit {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.booking-modal-success {
    padding: 2rem 1.5rem;
    text-align: center;
}

.booking-success-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.booking-success-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem 0;
    line-height: 1.45;
    animation: booking-fade-in 0.4s ease;
}

@keyframes booking-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-booking-close-success {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .booking-modal-overlay {
        padding: 0.5rem;
    }

    .booking-modal {
        max-height: calc(100vh - 1rem);
    }

    .booking-modal-title,
    .booking-modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Asegura contenedores clave en móvil (sin romper layout de escritorio) */
@media (max-width: 768px) {
    .container,
    .section,
    .citas-main,
    .contacto-main {
        width: 100%;
        max-width: 100%;
    }
}
