/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to bottom right, #d3cce3, #e9e4f0);
    color: #2d2d2d;
}

/* HEADER */
header {
    margin: 0;
    padding: 0;
}

.header {
    background: linear-gradient(to right, #ffffff, #ffffff);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 2px 8px rgba(161, 140, 209, 0.4);
    width: 100%;
}

.menu.container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.logo {
    margin-right: 60px;
    margin-left: 3px;
}

.logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* MENÚ HAMBURGUESA */
.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.menu-icon img {
    max-height: 40px;
    transition: transform 0.3s ease;
}

.menu-icon img:hover {
    transform: rotate(90deg);
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 600;
    color: #4b3d63;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #b39ddb;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #b39ddb;
}

/* BOTONES */
.btn-reserva .btn,
.btn-admin .btn {
    background: linear-gradient(to right, #a18cd1, #fbc2eb);
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(161, 140, 209, 0.4);
}

.btn-reserva .btn:hover,
.btn-admin .btn:hover {
    background: linear-gradient(to right, #c9a0dc, #fde2f4);
    transform: scale(1.05);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #ffffff;
        width: 100%;
        max-width: 300px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        border-radius: 10px;
    }

    .menu-checkbox:checked ~ .navbar {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .btn-reserva {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .btn-reserva .btn {
        width: 100%;
    }
}

/* Sección Inicio */
header {
    margin: 0;
    padding: 0;
}

.inicio {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    background-color: #e9e4f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inicio .slider {
    position: relative;
    width: 100%;
    height: auto;
}

.inicio .slider img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Responsividad */
@media (max-width: 768px) {
    .inicio {
        height: auto;
    }
}

@media (max-width: 480px) {
    .inicio {
        height: auto;
    }
}

/* Nosotros */
.nosotros {
    width: 100vw;
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 60px;
    padding-right: 15px;
    background-color: #f1f7ff;
    box-sizing: border-box;
}

.nosotros h3 {
    text-align: center;
    font-size: 48px;
    background: linear-gradient(135deg, #4b3d63 0%, #a18cd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nosotros h3::after {
    content: "";
    display: block;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideIn 1s ease-out;
    box-shadow: 0 2px 8px rgba(161, 140, 209, 0.4);
}

/* Contenedor horizontal para contenido + imagen */
.nosotros-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Contenido (texto) */
.nosotros-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Imagen */
.nosotros-images {
    flex: 1;
    text-align: right;
}

.nosotros-images img {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 15px;
    margin-top: -0px;
    filter: drop-shadow(0 10px 15px rgba(161, 140, 209, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Cuadro */
.cuadro {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    border: 2px solid #ebe3f7;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(161, 140, 209, 0.4);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Animación de luz brillante */
.cuadro::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: rotate(25deg);
    animation: shine 5s infinite linear;
    z-index: 0;
}

/*Define una animación personalizada*/
@keyframes shine {
    0% { transform: rotate(25deg) translate(0, 0); }
    100% { transform: rotate(25deg) translate(50%, 50%); }
}

/* Títulos vivos */
.cuadro h4 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Texto descriptivo */
.cuadro p {
    line-height: 1.7;
    font-size: 16px;
    color: #f0f0f0;
    z-index: 1;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .nosotros-images {
        text-align: center;
        margin-top: 20px;
    }

    .nosotros-content {
        align-items: center;
    }

    .cuadro {
        width: 90%;
        margin-bottom: 20px;
    }

    .nosotros h3 {
        font-size: 28px;
    }

    .cuadro p {
        font-size: 14px;
    }
}

/* Especialidades */
.especialidades {
    padding: 50px 20px;
    text-align: center;
}

.especialidades h2 {
    text-align: center;
    font-size: 48px;
    background: linear-gradient(135deg, #4b3d63 0%, #a18cd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.especialidades h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #b39ddb 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideIn 1s ease-out;
    box-shadow: 0 2px 8px rgba(161, 140, 209, 0.4);
}

.especialidades-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    justify-content: center;
}

.especialidad-card {
    background: linear-gradient(135deg, #a18cd1, #b39ddb);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(161, 140, 209, 0.4);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding-bottom: 20px;
}

/* Imagen con fondo blanco */
.especialidad-img {
    background-color: #ffffff;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: block;
}

/* Contenido informativo */
.especialidad-info {
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Efecto de brillo animado en la tarjeta */
.especialidad-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: rotate(25deg);
    animation: shine 5s infinite linear;
    z-index: 0;
}

/* Hover: ligeramente más brillante y escala suave */
.especialidad-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(161, 140, 209, 0.5);
    background: linear-gradient(135deg, #a18cd1, #c9a0dc);
}

.especialidad-info h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.especialidad-info p {
    color: #e0f0f8;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Botón llamativo y coherente con el diseño */
.especialidad-info .btn {
    background-color: #b39ddb;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(161, 140, 209, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.especialidad-info .btn:hover {
    background-color: #9e88c7;
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.doctores-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.doctor {
    text-align: center;
}

.doctor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b39ddb;
}

.imagen-centrada {
    text-align: center;
    margin: 20px 0;
}

/* Estilos Responsivos */
/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
    .especialidades-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }

    .especialidad-card {
        margin-bottom: 20px;
    }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .especialidades-cards {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    .especialidad-card {
        width: 90%;
        margin: 0 auto;
    }

    .especialidad-info h3 {
        font-size: 20px;
    }

    .especialidad-info p {
        font-size: 14px;
    }
}

/*staff-medico*/
.staff-medico {
    text-align: center;
    margin-top: 55px; 
}

.staff-medico h2 {
    text-align: center;
    font-size: 48px;
    background: linear-gradient(135deg, #4b3d63 0%, #a18cd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.staff-medico h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #b39ddb 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideIn 1s ease-out;
    box-shadow: 0 2px 8px rgba(161, 140, 209, 0.4);
}

.medicos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px;
}

/* Estilos para cada médico */
.medico {
    background: linear-gradient(135deg, #a18cd1, #b39ddb);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(161, 140, 209, 0.4);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Animación de luz brillante */
.medico::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: rotate(25deg);
    animation: shine 5s infinite linear;
    z-index: 0;
}

/*Define una animación personalizada*/
@keyframes shine {
    0% { transform: rotate(25deg) translate(0, 0); }
    100% { transform: rotate(25deg) translate(50%, 50%); }
}

.medico-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    transition: border-color 0.4s ease, filter 0.4s ease;
}

/* Espacio entre las tarjetas y la paginación */
.staffSwiper .swiper-pagination {
    margin-top: 40px;
    position: relative;
    bottom: auto;
}

/* Puntitos en tono celeste suave */
.staffSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(161, 140, 209, 0.4);
    opacity: 1;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 6px;
}

/* Punto activo en celeste brillante */
.staffSwiper .swiper-pagination-bullet-active {
    background: #b39ddb;
    transform: scale(1.3);
}

/* Centrado de los puntitos */
.staffSwiper .swiper-pagination-bullets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
}

.staffSwiper {
    padding-top: 40px;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .medicos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-medico h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .medicos-container {
        grid-template-columns: 1fr;
    }

    .staff-medico h2 {
        font-size: 28px;
    }
}

/* Promociones */
.promociones {
    padding: 100px 20px 50px 20px;
    text-align: center;
}

.promociones h2 {
    text-align: center;
    font-size: 48px;
    background: linear-gradient(135deg, #4b3d63 0%, #a18cd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promociones h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #b39ddb 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideIn 1s ease-out;
    box-shadow: 0 2px 8px rgba(161, 140, 209, 0.4);
}

.promociones-cards {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.promocion-card {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 30%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 30px;
}

.promocion-card:hover {
    transform: scale(1.05);
}

.promocion-card img {
    width: 100%;
    height: auto;
}

.promocion-info {
    padding: 20px;
}

.promocion-info h3 {
    font-size: 24px;
    color: #323232;
    margin-bottom: 10px;
}

.promocion-info p {
    color: #818181;
    font-size: 16px;
    margin-bottom: 15px;
}

.promocion-info .btn {
    background-color: #a18cd1;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(161, 140, 209, 0.4);
}

.promocion-info .btn:hover {
    background-color: #9e88c7;
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease forwards;
}

/* Contenedor principal del contenido */
.modal-content {
    max-width: 620px;
    margin: 100px auto;
    padding: 45px 50px;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(161, 140, 209, 0.2);
    position: relative;
    animation: slideUp 0.5s ease forwards;
    background: linear-gradient(135deg, #a18cd1, #b39ddb);
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Título */
.modal-content h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Línea decorativa animada debajo del título */
.modal-content h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0, #ffffff);
    border-radius: 2px;
    animation: pulseLine 2s infinite ease-in-out;
}

/* Texto destacado */
.modal-content p strong {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Párrafos normales */
.modal-content p {
    font-size: 17px;
    margin-bottom: 0px;
}

/* Lista con íconos */
.modal-content ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.modal-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: -7px;
    font-size: 16px;
    color: #f0f0f0;
}

.modal-content ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-weight: bold;
}

/* Estilos Responsivos */
/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
    .promociones-cards {
        justify-content: center;
    }

    .promocion-card {
        width: 45%;
        margin-bottom: 20px;
    }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .promociones-cards {
        justify-content: center;
    }

    .promocion-card {
        width: 90%;
        margin-bottom: 20px;
    }

    .promocion-info h3 {
        font-size: 20px;
    }

    .promocion-info p {
        font-size: 14px;
    }
}

/* Pantallas grandes (pantallas de escritorio) */
@media (min-width: 1024px) {
    .promocion-card {
        width: 30%;
    }
}

/* Pantallas más grandes (agrandar un poco más en pantallas grandes) */
@media (min-width: 1200px) {
    .promocion-card {
        width: 28%;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to right, #d0e7f9, #8dafce);
    padding: 20px 0;
    color: #323232;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Contenedor principal */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap;
}

/* Logo */
.footer-logo .logo-img {
    max-height: 60px;
    width: auto;
}

/* Enlaces */
.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

/* Derechos reservados */
.footer-copy {
    margin-top: 15px;
    font-size: 14px;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Los elementos se apilan verticalmente en pantallas pequeñas */
        text-align: center; /* Centramos el contenido */
    }

    .footer-links {
        gap: 10px; /* Reducimos el espacio entre los enlaces */
    }

    .footer-socials {
        gap: 10px; /* Reducimos el espacio entre los iconos sociales */
    }

    .footer-copy {
        font-size: 12px; /* Reducimos el tamaño de la fuente de los derechos reservados */
    }
}

/* Pantallas grandes (desktop) */
@media (min-width: 1024px) {
    .footer-container {
        padding: 0 40px; /* Añadimos más padding lateral en pantallas grandes */
    }

    .footer-logo .logo-img {
        max-height: 60px; /* Mantener el tamaño del logo constante */
    }

    .footer-links a {
        font-size: 16px; /* Mantener el tamaño de los enlaces igual */
    }

    .footer-socials a {
        font-size: 20px; /* Mantener el tamaño de los iconos sociales igual */
    }

    .footer-copy {
        font-size: 14px; /* Mantener el tamaño de los derechos reservados */
    }
}

/* Estilos para la sección de Contacto */

.contacto {
    background: linear-gradient(135deg, #afcce7, #91b2cf);
    border: 2px solid rgba(161, 140, 209, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(161, 140, 209, 0.4);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #4b3d63;
}

.contacto::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(179, 157, 219, 0.2), transparent 70%);
    transform: rotate(25deg);
    animation: shine 5s infinite linear;
    z-index: 0;
}

@keyframes shine {
    0% { transform: rotate(25deg) translate(0, 0); }
    100% { transform: rotate(25deg) translate(50%, 50%); }
}

.contacto h2 {
    text-align: center;
    font-size: 48px;
    background: linear-gradient(135deg, #4b3d63 0%, #5a5a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contacto h2::after {
    content: "";
    display: block;
    width: 200px;
    height: 6px;
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideIn 1s ease-out;
    box-shadow: 0 2px 8px rgba(161, 140, 209, 0.4);
}

.contacto form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contacto form input,
.contacto form textarea,
.contacto form button {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
    padding: 14px !important;
    font-size: 16px;
    border-radius: 25px;
    outline: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.contacto form input,
.contacto form textarea {
    border: 2px solid #b39ddb;
    cursor: text;
}

.contacto form button {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #4b3d63;
    border: none;
    text-transform: uppercase;
    max-width: 600px;
}

.contacto form button:hover {
    background: linear-gradient(135deg, #c9a0dc, #fde2f4);
}

/* Responsive */
@media (max-width: 768px) {
    .contacto form {
        padding: 0 20px;
        width: 100%;
    }

    .contacto form input,
    .contacto form textarea,
    .contacto form button {
        width: 100%;
        max-width: none;
    }

    .contacto h2 {
        font-size: 30px;
    }

    .contacto p {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .contacto form {
        padding: 0 30px;
    }

    .contacto h2 {
        font-size: 45px;
    }

    .contacto p {
        font-size: 18px;
    }

    .contacto form input,
    .contacto form textarea,
    .contacto form button {
        max-width: 600px;
    }
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="password"],
input[type="email"],
button {
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #b39ddb;
}

button {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #4b3d63;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

button:hover {
    background: linear-gradient(135deg, #c9a0dc, #fde2f4);
}

/* reservar-cita */
section.reservar-cita {
    width: 60%;
    margin: 0 auto;
    background: linear-gradient(135deg, #f4f2fb, #f1f7ff);
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(161, 140, 209, 0.4);
    margin-top: 50px;
    border: 1px solid #ebe3f7;
}

form {
    display: flex;
    flex-direction: column;
}

form button {
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #4b3d63;
}

form button:hover {
    background: linear-gradient(135deg, #7907ae, #fde2f4);
}