/* =========================
   1. CONFIGURACIÓN GENERAL
========================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
}


/* =========================
   2. ENCABEZADO
========================= */

header {
    background: #8B0000;
    color: white;
    padding: 25px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

header p {
    margin-bottom: 15px;
}


/* =========================
   3. MENÚ
========================= */

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* =========================
   4. SECCIONES
========================= */

section {
    padding: 40px 20px;
}

section > h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 30px;
}


/* =========================
   5. PRESENTACIÓN
========================= */

.presentacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    padding: 50px 20px;

    max-width: 1200px;
    margin: auto;
}

.presentacion-texto {
    width: 50%;
}

.presentacion-texto h1 {
    font-size: 42px;
    color: #8B0000;
    margin-bottom: 15px;
}

.presentacion-texto p {
    font-size: 20px;
    margin-bottom: 25px;
}

.presentacion-imagen {
    width: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.presentacion-imagen img {
    display: block;

    width: 250px;
    max-width: 100%;
    height: auto;

    margin: 20px auto;

    border-radius: 15px;
}


/* =========================
   6. INICIO
========================= */

.principal {
    min-height: 350px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 40px 20px;
}

.principal h2 {
    font-size: 35px;

    margin-bottom: 15px;

    color: #8B0000;
}

.principal p {
    font-size: 18px;

    margin-bottom: 25px;
}


/* =========================
   7. BOTONES
========================= */

.boton {
    display: inline-block;

    background: #8B0000;
    color: white;

    padding: 12px 25px;

    border-radius: 8px;

    text-decoration: none;

    transition: 0.3s;
}

.boton:hover {
    background: #b30000;

    transform: scale(1.05);
}


/* =========================
   8. TARJETAS DE INICIO
========================= */

.tarjetas {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;
}

.tarjetas div {
    background: white;

    width: 230px;

    padding: 25px;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.tarjetas h3 {
    color: #8B0000;

    margin-bottom: 10px;
}


/* =========================
   9. SERVICIOS
========================= */

.seccion-servicios {
    padding: 60px 20px;

    min-height: 600px;
}

.seccion-servicios h2 {
    text-align: center;

    color: #8B0000;

    font-size: 34px;

    margin-bottom: 10px;
}

.texto-servicios {
    text-align: center;

    font-size: 18px;

    color: #555;

    margin-bottom: 40px;
}


/* CONTENEDOR DE SERVICIOS */

.servicios {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(270px, 1fr));

    gap: 30px;
}


/* TARJETA */

.tarjeta-servicio {
    background: white;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    transition: 0.3s;
}

.tarjeta-servicio:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}


/* IMAGEN DEL SERVICIO */

.imagen-servicio {
    height: 180px;

    background: #f5f5f5;

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

    overflow: hidden;
}

.imagen-servicio img {
    width: 140px;
    height: 140px;

    max-width: 90%;

    object-fit: contain;
}


/* CONTENIDO DEL SERVICIO */

.contenido-servicio {
    padding: 25px;

    text-align: center;
}

.contenido-servicio h3 {
    color: #8B0000;

    font-size: 23px;

    margin-bottom: 15px;
}

.contenido-servicio p {
    color: #555;

    line-height: 1.6;

    min-height: 75px;

    margin-bottom: 20px;
}


/* PRECIO */

.precio-servicio {
    font-size: 25px;

    font-weight: bold;

    color: #222;

    margin-bottom: 20px;
}


/* BOTÓN RESERVAR */

.boton-reservar {
    display: inline-block;

    background: #8B0000;
    color: white;

    padding: 12px 22px;

    text-decoration: none;

    border-radius: 8px;

    transition: 0.3s;
}

.boton-reservar:hover {
    background: #b30000;

    transform: scale(1.03);
}


/* SIN SERVICIOS */

.sin-servicios {
    text-align: center;

    grid-column: 1 / -1;

    font-size: 18px;

    padding: 40px;
}


/* =========================
   10. LOGIN Y REGISTRO
========================= */
.body-login {
    background: #111;
}
.header-login {

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.288),
            rgba(0, 0, 0, 0.349)
        ),
        url("../imagenes/fondoHeaderLogin.png");

    background-size: cover;

    background-position: center bottom;

    background-repeat: no-repeat;

    min-height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 35px 20px;

    color: white;
}

.login {
    width: 90%;

    max-width: 400px;

    margin: 50px auto;

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.loginimagen {
    width: 400px;
    height: auto;

    filter:
        drop-shadow(1px 0 0 #d8ccc5)
        drop-shadow(-1px 0 0 #d8ccc5)
        drop-shadow(0 1px 0 #d8ccc5)
        drop-shadow(0 -1px 0 #d8ccc5);
}

.parrafologin p {
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.login h2 {
    text-align: center;

    color: #311414;

    margin-bottom: 25px;
}


/* =========================
   11. FORMULARIOS
========================= */

form {
    width: 90%;

    max-width: 450px;

    background: white;

    padding: 30px;

    margin: 30px auto;

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.login form {
    width: 100%;

    max-width: none;

    padding: 0;

    margin: 0;

    box-shadow: none;
}

label {
    font-weight: bold;
}

input,
textarea,
select {
    width: 100%;

    padding: 12px;

    margin: 8px 0 15px 0;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-size: 15px;
}

button {
    width: 100%;

    padding: 12px;

    background: #8B0000;

    color: white;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    background: #b30000;
}


/* =========================
   12. MENSAJES
========================= */

.mensaje {
    background: #ffdddd;

    color: #990000;

    padding: 10px;

    margin-bottom: 15px;

    text-align: center;

    border-radius: 8px;
}


/* =========================
   13. RESERVA
========================= */

body > h1,
body > h2,
body > h3,
body > p {
    text-align: center;
}

body > h1 {
    margin-top: 30px;

    color: #8B0000;
}

body > h2 {
    margin-top: 20px;
}

body > h3 {
    margin-top: 15px;
}
.boton-volver {
    display: inline-block;
    background: #8B0000;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    margin: 15px 0;
}

.boton-volver:hover {
    background: #b30000;
}

/* =========================
   14. MIS RESERVAS
========================= */

.saludo-usuario {
    text-align: center;

    margin-bottom: 25px;

    font-size: 18px;
}

.contenedor-tabla {
    width: 100%;

    overflow-x: auto;
}

.tabla-reservas-cliente {
    width: 95%;

    max-width: 1000px;

    margin: 20px auto;

    border-collapse: collapse;

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.tabla-reservas-cliente th {
    background: #8B0000;

    color: white;

    padding: 15px;
}

.tabla-reservas-cliente td {
    padding: 14px;

    text-align: center;

    border-bottom: 1px solid #ddd;
}

.tabla-reservas-cliente tr:hover {
    background: #f5f5f5;
}


/* ESTADOS */

.estado-pendiente {
    color: #d39e00;

    font-weight: bold;
}

.estado-confirmada {
    color: #198754;

    font-weight: bold;
}

.estado-cancelada {
    color: #dc3545;

    font-weight: bold;
}


/* SIN RESERVAS */

.sin-reservas {
    text-align: center;

    background: white;

    max-width: 500px;

    margin: 30px auto;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.sin-reservas h3 {
    color: #8B0000;

    margin-bottom: 15px;
}

.sin-reservas p {
    margin-bottom: 20px;
}


/* =========================
   15. MI CUENTA
========================= */

.mi-cuenta {
    max-width: 700px;

    margin: auto;
}

.saludo-cuenta {
    text-align: center;

    font-size: 18px;

    margin-bottom: 20px;
}

.mensaje-cuenta {
    max-width: 450px;

    margin: 20px auto;

    padding: 12px;

    text-align: center;

    background: #d1e7dd;

    color: #0f5132;

    border-radius: 8px;
}

.acciones-cuenta {
    text-align: center;

    margin-top: 25px;
}

.acciones-cuenta .boton {
    margin: 5px;
}


/* =========================
   16. INFORMACIÓN DEL NEGOCIO
========================= */

.info-negocio {
    background: #eeeeee;

    text-align: center;

    padding: 60px 20px;
}

.info-negocio h2 {
    color: #8B0000;

    margin-bottom: 20px;

    font-size: 30px;
}

.descripcion-negocio {
    max-width: 750px;

    margin: 0 auto 35px auto;

    font-size: 18px;

    line-height: 1.6;
}

.info-tarjetas {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    max-width: 1000px;

    margin: auto;
}

.info-card {
    background: white;

    width: 280px;

    padding: 30px 20px;

    border-radius: 15px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
    color: #8B0000;

    margin-bottom: 15px;
}

.info-card p {
    line-height: 1.5;
}


/* BOTONES DE CONTACTO */

.contacto-botones {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}

.whatsapp {
    background: #198754;
}

.whatsapp:hover {
    background: #157347;
}


/* =========================
   17. FOOTER
========================= */

.footer {
    background: #222;

    color: white;

    padding: 40px 20px 15px 20px;

    margin-top: 50px;
}

.footer-contenido {
    max-width: 1100px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 30px;
}

.footer-seccion {
    width: 30%;

    min-width: 220px;
}

.footer-seccion h3 {
    color: white;

    margin-bottom: 15px;
}

.footer-seccion p {
    margin-bottom: 10px;

    line-height: 1.5;
}

.footer-seccion a {
    display: block;

    color: white;

    text-decoration: none;

    margin-bottom: 8px;
}

.footer-seccion a:hover {
    color: #ff4d4d;
}

.footer-final {
    text-align: center;

    margin-top: 30px;

    padding-top: 15px;

    border-top: 1px solid #444;
}


/* FOOTER SIMPLE */

footer:not(.footer) {
    background: #222;

    color: white;

    text-align: center;

    padding: 20px;

    margin-top: 40px;
}


/* =========================
   18. RESPONSIVE
   CELULAR Y TABLET
========================= */

@media (max-width: 700px) {

    header h1 {
        font-size: 26px;
    }


    nav a {
        display: block;

        margin: 8px auto;

        width: 170px;
    }


    /* PRESENTACIÓN */

    .presentacion {
        flex-direction: column;

        text-align: center;
    }

    .presentacion-texto,
    .presentacion-imagen {
        width: 100%;
    }

    .presentacion-texto h1 {
        font-size: 30px;
    }

    .presentacion-imagen img {
        width: 200px;

        max-width: 100%;
    }


    /* INICIO */

    .principal {
        min-height: 300px;
    }

    .principal h2 {
        font-size: 27px;
    }


    .tarjetas {
        flex-direction: column;

        align-items: center;
    }


    /* SERVICIOS */

    .seccion-servicios h2 {
        font-size: 28px;
    }

    .servicios {
        grid-template-columns: 1fr;
    }

    .tarjeta-servicio {
        max-width: 380px;

        width: 100%;

        margin: auto;
    }


    /* IMAGEN DE SERVICIO EN CELULAR */

    .imagen-servicio {
        height: 150px;
    }

    .imagen-servicio img {
        width: 120px;

        height: 120px;
    }


    /* INFORMACIÓN */

    .info-negocio h2 {
        font-size: 26px;
    }

    .info-card {
        width: 100%;

        max-width: 330px;
    }

    .contacto-botones {
        flex-direction: column;

        align-items: center;
    }


    /* FOOTER */

    .footer-contenido {
        flex-direction: column;

        text-align: center;

        align-items: center;
    }

    .footer-seccion {
        width: 100%;
    }

}


/* =========================
   19. CELULARES PEQUEÑOS
========================= */

@media (max-width: 480px) {

    section {
        padding: 30px 15px;
    }


    .presentacion-texto h1 {
        font-size: 26px;
    }

    .presentacion-texto p {
        font-size: 17px;
    }


    .contenido-servicio {
        padding: 20px;
    }


    .precio-servicio {
        font-size: 22px;
    }


    .tabla-reservas-cliente {
        font-size: 14px;
    }

}
.total-servicio {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 5px solid #8B0000;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.total-servicio strong {
    color: #8B0000;
    font-size: 21px;
}
.info-servicio-reserva {
    text-align: center;
}

.ayuda-campo {
    display: block;
    margin-top: 6px;
    margin-bottom: 18px;

    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.login form label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.login form input {
    margin-bottom: 0;
}

/* ============================= */
/* MEJORAS FORMULARIO DE REGISTRO */
/* ============================= */

.login form label {
    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    font-size: 16px;
    font-weight: bold;
    color: #111;
}

/* El primer label no necesita tanto espacio arriba */
.login form label:first-of-type {
    margin-top: 0;
}


.login form input {
    width: 100%;

    margin-bottom: 0;

    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 15px;
}


/* Textos de aclaración */
.ayuda-campo {
    display: block;

    margin-top: 7px;
    margin-bottom: 20px;

    font-size: 13px;
    line-height: 1.4;

    color: #666;
}


/* Botón */
.login form button {
    margin-top: 20px;
}


/* Texto inferior */
.login > p {
    margin-top: 14px;
    text-align: center;

    font-size: 14px;
}
/* ============================= */
/* QUIÉNES SOMOS */
/* ============================= */

.quienes-somos {
    padding: 60px 20px;
    background: #ffffff;
}

.quienes-contenido {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.quienes-imagen {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.quienes-imagen img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.20);
}

.quienes-texto {
    flex: 1;
    min-width: 280px;
}

.quienes-texto h2 {
    color: #8B0000;
    font-size: 32px;
    margin-bottom: 20px;
}

.quienes-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .quienes-contenido {
        flex-direction: column;
        text-align: center;
    }
}
/* ========================================== */
/* FONDO INTERACTIVO - PAGINA PRINCIPAL */
/* ========================================== */

.inicio-body {
    background-color: #111;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.78)
        ),
        url("../imagenes/fondoHeaderLogin.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Efecto de profundidad al hacer scroll */
    background-attachment: fixed;

    min-height: 100vh;
}


/* ========================================== */
/* PRESENTACION PRINCIPAL */
/* ========================================== */

.inicio-body .presentacion {
    max-width: 1100px;

    margin: 40px auto;

    padding: 45px 30px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.inicio-body .presentacion:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);
}


/* ========================================== */
/* QUIENES SOMOS */
/* ========================================== */

.inicio-body .quienes-somos {
    max-width: 1100px;

    margin: 40px auto;

    padding: 50px 30px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.inicio-body .quienes-somos:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);
}


/* ========================================== */
/* INFORMACION DEL NEGOCIO */
/* ========================================== */

.inicio-body .info-negocio {
    max-width: 1100px;

    margin: 40px auto;

    padding: 50px 30px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.inicio-body .info-negocio:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);
}


/* ========================================== */
/* TARJETAS DEL INDEX */
/* ========================================== */

.inicio-body .tarjeta {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.inicio-body .tarjeta:hover {
    transform: translateY(-7px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.30);
}


/* Si utilizas la clase tarjetas */
.inicio-body .tarjetas > div {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.inicio-body .tarjetas > div:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.30);
}


/* ========================================== */
/* TITULOS */
/* ========================================== */

.inicio-body section h2 {
    color: #8B0000;
}


/* ========================================== */
/* ADAPTACION PARA CELULAR */
/* ========================================== */

@media (max-width: 768px) {

    .inicio-body {

        /*
        En celulares conviene quitar el fondo fijo
        para evitar problemas de rendimiento.
        */

        background-attachment: scroll;
    }


    .inicio-body .presentacion,
    .inicio-body .quienes-somos,
    .inicio-body .info-negocio {

        width: calc(100% - 30px);

        margin: 25px auto;

        padding: 30px 20px;

        border-radius: 14px;
    }


    /* En celular no hace falta levantar las cajas */
    .inicio-body .presentacion:hover,
    .inicio-body .quienes-somos:hover,
    .inicio-body .info-negocio:hover {

        transform: none;
    }

}
