@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/fondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1000px;
    opacity: .08;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ── HEADER PRINCIPAL ── */

header {
    min-height: 100vh;
    background-image: url("../img/hero.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.logo-menu {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.menu {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.menu .navbar ul {
    display: flex;
}

.menu .navbar ul li a {
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
}

.menu .navbar ul li a:hover {
    color: #0EAEF3;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    display: none;
    cursor: pointer;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.content {
    flex: 1;
}

.content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.content p {
    color: #e8e8ff;
    font-size: 20px;
    line-height: 32px;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    object-fit: contain;
    display: block;
}

/* ── BOTONES ── */

.btn-1,
.btn-2 {
    transition: .3s;
}

.btn-1 {
    display: inline-block;
    margin-top: 30px;
    margin-right: 10px;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid #AAB1FF;
    color: #fff;
    background: rgba(170, 177, 255, .3);
}

.btn-1:hover {
    transform: translateY(-3px);
    background: #AAB1FF;
}

.btn-2 {
    background: #7042B5;
    color: #fff;
    padding: 14px 25px;
    border-radius: 30px;
}

.btn-2:hover {
    transform: translateY(-3px);
    background: #8650D7;
}

/* ── SERVICIOS ── */

.services {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.service {
    flex: 1 1 250px;
    max-width: 260px;
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service:hover {
    transform: translateY(-10px);
}

.service img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.service h3 {
    color: #5B50BC;
    margin-top: 15px;
}

.service p {
    margin-top: 10px;
    color: #666;
}

/* ── PORTFOLIOS ── */

.portfolios {
    padding: 80px 0;
}

.portfolios h2 {
    text-align: center;
    font-size: 50px;
    margin-bottom: 60px;
}

.portfolio {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.reverse {
    flex-direction: row-reverse;
}

.portfolio img {
    width: 100%;
    max-width: 350px;
}

.portfolio-content {
    flex: 1;
}

.portfolio-content h3 {
    font-size: 35px;
    margin-bottom: 15px;
}

.portfolio-content p {
    color: #555;
    margin-bottom: 25px;
}

/* ── NOSOTROS ── */

.nosotros {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.nosotros-img {
    flex: 1;
}

.nosotros-img img {
    width: 100%;
    max-width: 450px;
    display: block;
    margin: auto;
}

.nosotros-content {
    flex: 1;
}

.nosotros-content span {
    color: #7042B5;
    font-size: 18px;
    font-weight: 600;
}

.nosotros-content h2 {
    font-size: 42px;
    margin: 15px 0 25px;
    color: #333;
}

.nosotros-content p {
    color: #666;
    line-height: 30px;
    margin-bottom: 20px;
}

.valores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.valor {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.valor h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #5B50BC;
}

.valor p {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
}

/* ── FOOTER ── */

footer {
    background-image: url("../img/footer.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    padding: 180px 0 40px;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.info-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.info-card h2 {
    color: #5B50BC;
    margin-bottom: 15px;
    font-size: 24px;
}

.info-card p {
    color: #555;
    line-height: 28px;
}

.mt-20 {
    margin-top: 20px;
}

.horario {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.horario h2 {
    color: #ffffff;
}

.horario p {
    color: #ffffff;
    margin-bottom: 18px;
}

hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, .3);
    margin: 30px 0;
}

.enlaces {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.enlaces h3 {
    font-size: 24px;
}

.enlace {
    display: flex;
    gap: 25px;
}

.enlace a {
    color: #ffffff;
    font-weight: 500;
    transition: .3s;
}

.enlace a:hover {
    color: #0EAEF3;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 24px;
}

.copyright p {
    margin: 0;
}

/* ── WHATSAPP ── */

.whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    z-index: 9999;
    transition: .3s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* ── PÁGINA CITAS ── */

.header-citas {
    min-height: 120px;
    background: #5B50BC;
    display: flex;
    align-items: center;
}

.citas-page {
    padding: 60px 20px 100px;
}

.titulo-citas {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-citas h1 {
    font-size: 50px;
    color: #333;
}

.titulo-citas p {
    color: #666;
    margin-top: 15px;
}

.form-cita {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-cita input,
.form-cita select,
.form-cita textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 15px;
}

.form-cita textarea {
    min-height: 120px;
    resize: none;
    margin-bottom: 20px;
}

/* ── ALERTAS ── */

.alerta {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.alerta-exito {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alerta-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ── RESPONSIVE ── */

@media(max-width:991px) {

    /* Menú */
    .menu {
        padding: 20px;
    }

    .menu label {
        display: block;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #5B50BC;
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    }

    .menu .navbar ul {
        flex-direction: column;
    }

    .menu .navbar ul li {
        width: 100%;
        text-align: center;
    }

    #menu:checked ~ .navbar {
        display: block;
    }

    /* Header */
    header {
        min-height: 100vh;
        padding-top: 100px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 320px;
    }

    /* Servicios */
    .services {
        padding: 60px 20px;
    }

    .service {
        max-width: 100%;
        cursor: pointer;
    }

    .service:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    }

    /* Portfolios */
    .portfolio,
    .reverse {
        flex-direction: column;
        text-align: center;
    }

    .portfolio img {
        max-width: 300px;
    }

    .portfolios h2 {
        font-size: 38px;
    }

    .portfolio-content h3 {
        font-size: 28px;
    }

    /* Nosotros */
    .nosotros {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .nosotros-content h2 {
        font-size: 32px;
    }

    .valores {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer {
        padding: 120px 20px 40px;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .enlaces {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .enlace {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}

@media(max-width:768px) {

    .input-group {
        grid-template-columns: 1fr;
    }

    .titulo-citas h1 {
        font-size: 35px;
    }

}

/* ══════════════════════════════════════════════
   MÓDULO DE CONSULTAS MÉDICAS
══════════════════════════════════════════════ */

/* ── Input de ancho completo ── */
.input-group-full {
    margin-bottom: 20px;
}

.input-group-full input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 15px;
}

/* ── Textarea del formulario de consulta ── */
.form-cita textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 15px;
    min-height: 130px;
    resize: vertical;
    margin-bottom: 6px;
    display: block;
}

/* ── Footer del formulario ── */
.form-consulta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.form-nota {
    font-size: 0.85rem;
    color: #888;
    flex: 1;
    line-height: 1.5;
}

.form-nota strong {
    color: #5B50BC;
}

/* ── Enlace "Consulta Médica" en la navegación ── */
.nav-consulta {
    color: #fff;
    padding: 8px 16px;
    background: rgba(112, 66, 181, 0.55);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: .2s;
}

.nav-consulta:hover {
    background: #7042B5 !important;
    color: #fff !important;
}

/* Variante sobre el header morado de citas.php */
.header-citas .nav-consulta {
    background: rgba(255, 255, 255, 0.15);
}

.header-citas .nav-consulta:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* ── Botón "Consultas" en admin/ver_citas.php ── */
.btn-ver-consultas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #cfe2ff;
    color: #0a58ca;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: .2s;
    text-decoration: none;
}

.btn-ver-consultas:hover {
    background: #b6d4fe;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-consulta-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-consulta-footer .btn-2 {
        width: 100%;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════
   MÓDULO DE REPORTE MÉDICO
══════════════════════════════════════════════ */

/* ── Página contenedora ── */
.reporte-page {
    padding: 50px 20px 100px;
}

/* ── Encabezado ── */
.reporte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 14px;
}

.reporte-titulo h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 6px;
}

.reporte-titulo p {
    color: #888;
    font-size: 0.92rem;
}

/* ── Ficha del paciente ── */
.ficha-paciente {
    background: #f0eeff;
    border: 1px solid #d9d4f5;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

.ficha-paciente h2 {
    font-size: 1.1rem;
    color: #5B50BC;
    margin-bottom: 18px;
    font-weight: 700;
}

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
}

.ficha-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ficha-item-full {
    grid-column: 1 / -1;
}

.ficha-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7042B5;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ficha-valor {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.5;
}

/* ── Formulario del reporte ── */
.form-reporte {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reporte-seccion {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
}

.seccion-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #5B50BC;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0eeff;
}

.reporte-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.campo-grupo:last-child {
    margin-bottom: 0;
}

.campo-grupo label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.campo-grupo .req {
    color: #dc3545;
    margin-left: 2px;
}

.campo-grupo input[type="text"],
.campo-grupo input[type="number"],
.campo-grupo input[type="date"],
.campo-grupo textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.campo-grupo input:focus,
.campo-grupo textarea:focus {
    outline: none;
    border-color: #7042B5;
    box-shadow: 0 0 0 3px rgba(112, 66, 181, .12);
}

.campo-grupo textarea {
    min-height: 110px;
    resize: vertical;
}

/* ── Botón de reporte en la tabla de consultas ── */
.btn-reporte {
    background: #e8d5ff;
    color: #6a1fd1;
}

.btn-reporte:hover {
    background: #d4b0ff;
}

/* ── Acciones del formulario ── */
.reporte-acciones {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.btn-cancelar-reporte {
    padding: 12px 24px;
    border-radius: 30px;
    background: #eee;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}

.btn-cancelar-reporte:hover {
    background: #ddd;
    color: #333;
}

/* ── Badge de estado en el reporte ── */
.reporte-badge-estado {
    padding-top: 6px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ficha-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reporte-grid-2 {
        grid-template-columns: 1fr;
    }

    .ficha-grid {
        grid-template-columns: 1fr;
    }

    .ficha-item-full {
        grid-column: 1;
    }

    .reporte-seccion {
        padding: 22px 18px;
    }

    .ficha-paciente {
        padding: 22px 18px;
    }

    .reporte-acciones {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .reporte-acciones .btn-2,
    .btn-cancelar-reporte {
        width: 100%;
        text-align: center;
    }
}


/* ══════════════════════════════════════════════
   SISTEMA DE CUENTAS DE USUARIO
   (registro, login, mi cuenta, mascotas)
══════════════════════════════════════════════ */

/* ── Navbar usuario ── */
.nav-cuenta {
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 6px 14px !important;
    font-weight: 600 !important;
}
.nav-salir {
    color: #ffcccc !important;
    font-size: 0.88rem !important;
}

/* ── Páginas auth (registro / login) ── */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-box {
    background: #fff;
    padding: 50px 44px;
    border-radius: 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,.1);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.auth-box h1 {
    font-size: 1.9rem;
    color: #333;
    margin-bottom: 6px;
}

.auth-box > p {
    color: #777;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.auth-form {
    text-align: left;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #7042B5;
}

.form-field textarea {
    resize: vertical;
    min-height: 70px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: #7042B5;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    margin-top: 6px;
}

.btn-auth:hover {
    background: #8650D7;
    transform: translateY(-2px);
}

.auth-link {
    margin-top: 22px;
    font-size: 0.88rem;
    color: #777;
}

.auth-link a {
    color: #7042B5;
    font-weight: 600;
}

/* ── Banner invitado en citas.php ── */
.banner-invitado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0ecff;
    border: 1px solid #cdbfff;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #444;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.banner-invitado-acciones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-banner-login {
    background: #7042B5;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: .2s;
}

.btn-banner-login:hover {
    background: #8650D7;
}

.btn-banner-registro {
    background: #fff;
    color: #7042B5;
    border: 1px solid #7042B5;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: .2s;
}

.btn-banner-registro:hover {
    background: #f0ecff;
}

/* ── Campo readonly en citas (propietario) ── */
.campo-readonly {
    background: #f5f3ff !important;
    color: #5B50BC !important;
    font-weight: 600 !important;
    cursor: default !important;
}

/* ── Aviso sin mascotas dentro del form ── */
.sin-mascotas-aviso {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sin-mascotas-aviso p {
    margin: 0;
    font-size: 0.9rem;
    color: #5d4037;
}

/* ── MI CUENTA — layout general ── */
.cuenta-page {
    padding: 60px 20px 100px;
}

.cuenta-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    padding: 28px 32px;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cuenta-avatar {
    font-size: 3.5rem;
    line-height: 1;
}

.cuenta-info {
    flex: 1;
}

.cuenta-info h1 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 4px;
}

.cuenta-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2px;
}

.btn-agendar-cuenta {
    background: #7042B5;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: .3s;
    white-space: nowrap;
}

.btn-agendar-cuenta:hover {
    background: #8650D7;
    transform: translateY(-2px);
}

/* ── Títulos de sección ── */
.seccion-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.seccion-titulo h2 {
    font-size: 1.4rem;
    color: #333;
}

.btn-toggle-form {
    background: #7042B5;
    color: #fff;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-block;
}

.btn-toggle-form:hover {
    background: #8650D7;
}

.mt-40 {
    margin-top: 50px;
}

/* ── Formulario de mascota (toggle) ── */
.form-mascota-wrap {
    display: none;
    background: #fff;
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    margin-bottom: 28px;
}

.form-mascota-wrap.visible {
    display: block;
}

.form-mascota h3 {
    font-size: 1.1rem;
    color: #5B50BC;
    margin-bottom: 20px;
}

.mascota-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-mascota-acciones {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-mascota-acciones .btn-auth {
    width: auto;
    padding: 12px 28px;
}

.btn-cancelar-edicion {
    color: #dc3545;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 20px;
    background: #f8d7da;
    transition: .2s;
}

.btn-cancelar-edicion:hover {
    background: #f5c2c7;
}

/* ── Grid de tarjetas de mascotas ── */
.mascotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mascota-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: .3s;
}

.mascota-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.mascota-icono {
    font-size: 2.6rem;
    line-height: 1;
}

.mascota-datos {
    flex: 1;
}

.mascota-datos h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.mascota-especie {
    display: inline-block;
    background: #f0ecff;
    color: #7042B5;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.mascota-detalle {
    font-size: 0.83rem;
    color: #777;
    margin-top: 3px;
}

.mascota-notas {
    font-style: italic;
}

.mascota-acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-editar-mascota {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    background: #f5f3ff;
    color: #7042B5;
    font-size: 0.82rem;
    font-weight: 600;
    transition: .2s;
}

.btn-editar-mascota:hover {
    background: #e0d9ff;
}

.btn-cita-mascota {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    background: #7042B5;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    transition: .2s;
}

.btn-cita-mascota:hover {
    background: #8650D7;
}

/* ── Sin mascotas ── */
.sin-mascotas {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sin-mascotas a {
    color: #7042B5;
    font-weight: 600;
}

/* ── Lista de citas en mi_cuenta ── */
.citas-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cita-fila {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    border-left: 4px solid #ddd;
    overflow: hidden;
}

.cita-fila.estado-pendiente  { border-left-color: #e8a000; }
.cita-fila.estado-confirmada { border-left-color: #2c7a4b; }
.cita-fila.estado-cancelada  { border-left-color: #dc3545; }

/* Fila principal con info y acciones */
.cita-fila-info {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
}

.cita-fila-servicio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.cita-fila-mascota {
    font-size: 0.88rem;
    color: #555;
}

.cita-fila-fecha {
    font-size: 0.85rem;
    color: #777;
}

/* Botones de acción en cada fila de cita */
.cita-fila-acciones {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cita-accion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    border: none;
    white-space: nowrap;
}

.btn-cita-editar {
    background: #f0ecff;
    color: #7042B5;
}
.btn-cita-editar:hover {
    background: #7042B5;
    color: #fff;
}

.btn-cita-cancelar {
    background: #fff0f0;
    color: #dc3545;
}
.btn-cita-cancelar:hover {
    background: #dc3545;
    color: #fff;
}

/* Formulario inline de edición de cita */
.cita-form-editar {
    border-top: 1px solid #f0f0f0;
    padding: 20px 22px 22px;
    background: #fafafa;
}

.cita-form-editar h4 {
    font-size: 1rem;
    color: #7042B5;
    margin-bottom: 16px;
    font-weight: 700;
}

.editar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin-bottom: 16px;
}

.editar-acciones {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Resaltar la fila que se está editando */
.cita-editando {
    border-left-width: 5px;
    border-left-color: #7042B5 !important;
    box-shadow: 0 6px 20px rgba(112,66,181,.15);
}

/* Badge reutilizado */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge.pendiente  { background: #fff3cd; color: #856404; }
.badge.confirmada { background: #d1e7dd; color: #0f5132; }
.badge.cancelada  { background: #f8d7da; color: #842029; }

/* ── Responsive cuenta ── */
@media (max-width: 768px) {
    .auth-box {
        padding: 36px 24px;
    }

    .cuenta-header {
        flex-direction: column;
        text-align: center;
    }

    .mascota-grid {
        grid-template-columns: 1fr;
    }

    .cita-fila-info {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cita-fila-acciones {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .cita-fila-estado {
        grid-column: 1 / -1;
    }

    .editar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mascotas-grid {
        grid-template-columns: 1fr;
    }

    .cita-fila-info {
        grid-template-columns: 1fr;
    }

    .banner-invitado {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ══════════════════════════════════════════════
   DROPDOWN DE USUARIO EN NAVBAR (estilo Facebook)
══════════════════════════════════════════════ */

.nav-usuario-wrap {
    position: relative;
}

.nav-usuario-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 22px;
    padding: 7px 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.nav-usuario-btn:hover,
.nav-usuario-btn[aria-expanded="true"] {
    background: rgba(255,255,255,.28);
}

.nav-usuario-avatar {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-usuario-chevron {
    font-size: 0.75rem;
    transition: transform .2s;
    display: inline-block;
}

.nav-usuario-btn[aria-expanded="true"] .nav-usuario-chevron {
    transform: rotate(180deg);
}

/* Menú desplegable */
.nav-usuario-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    min-width: 200px;
    padding: 8px 0;
    z-index: 9999;
    animation: dropFadeIn .15s ease;
}

.nav-usuario-menu.abierto {
    display: block;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-usuario-item,
.menu .navbar ul li a.nav-usuario-item {
    display: block;
    padding: 11px 18px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background .15s;
}

.nav-usuario-item:hover,
.menu .navbar ul li a.nav-usuario-item:hover {
    background: #f0ecff;
    color: #7042B5;
}

.nav-usuario-sep {
    border: none;
    border-top: 1px solid #eee;
    margin: 6px 0;
}

.nav-usuario-salir,
.menu .navbar ul li a.nav-usuario-salir {
    color: #dc3545 !important;
}

.nav-usuario-salir:hover,
.menu .navbar ul li a.nav-usuario-salir:hover {
    background: #fff0f0 !important;
    color: #b02a37 !important;
}

/* Responsive: en móvil el dropdown se vuelve inline */
@media (max-width: 991px) {
    .nav-usuario-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0;
        background: transparent;
        padding: 15px;
    }

    .nav-usuario-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,.08);
        padding: 0;
        animation: none;
    }

    .nav-usuario-item {
        color: #fff;
        text-align: center;
        padding: 12px 15px;
    }

    .nav-usuario-item:hover {
        background: rgba(255,255,255,.15);
        color: #fff;
    }

    .nav-usuario-salir {
        color: #ffaaaa !important;
    }

    .nav-usuario-sep {
        border-color: rgba(255,255,255,.2);
    }
}

/* Icono del dropdown de usuario */
.ddi {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-style: normal;
}
