:root {
    --azul: #0b83bd;
    --azul-oscuro: #075f8c;
    --fondo: #f2f8fb;
    --verde: #25D366;
    --texto: #333;
    --gris: #666;
    --blanco: #ffffff;
}

/* GENERAL */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
}

/* ENCABEZADO */
header {
    background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
    color: white;
    padding: 45px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 36px;
}

header p {
    margin-top: 10px;
    font-size: 18px;
}

/* MENÚ */
nav {
    background: var(--azul-oscuro);
    padding: 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 8px 12px;
    font-weight: bold;
    display: inline-block;
}

nav a:hover {
    text-decoration: underline;
}

/* CONTENEDOR */
.contenedor {
    width: 92%;
    max-width: 1200px;
    margin: 35px auto;
}

/* TARJETAS */
.tarjeta {
    background: var(--blanco);
    padding: 30px;
    margin-bottom: 28px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

h2 {
    color: var(--azul);
    margin-top: 0;
    font-size: 28px;
}

/* SERVICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.servicio {
    background: #eaf6fb;
    padding: 22px;
    border-radius: 14px;
    border-left: 6px solid var(--azul);
    transition: transform .2s ease, box-shadow .2s ease;
}

.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.servicio h3 {
    color: var(--azul-oscuro);
    margin-top: 0;
}

.servicio p {
    line-height: 1.6;
}

/* HORARIO */
.horario {
    background: #eaf6fb;
    border-left: 6px solid var(--azul);
    padding: 18px;
    border-radius: 10px;
}

/* FORMULARIOS */
label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 5px rgba(11,131,189,.4);
}

/* BOTONES */
button,
.whatsapp,
.volver,
.limpiar {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

button {
    background: var(--azul);
    padding: 12px 20px;
    margin-top: 15px;
}

button:hover {
    background: var(--azul-oscuro);
}

.whatsapp {
    background: var(--verde);
    padding: 12px 18px;
    margin-top: 15px;
}

.whatsapp:hover {
    background: #1ebc59;
}

.limpiar {
    background: #6c757d;
    padding: 10px 15px;
}

.limpiar:hover {
    background: #555;
}

.volver-contenedor {
    text-align: center;
    margin: 50px 0 35px;
}

.volver {
    background: var(--verde);
    padding: 14px 28px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: all .3s ease;
}

.volver:hover {
    background: #1ebc59;
    transform: translateY(-3px);
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: var(--azul-oscuro);
    color: white;
    padding: 12px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

tr:hover {
    background: #eef7fb;
}

/* ESTADOS */
.estado {
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 6px;
}

.pendiente {
    background: #fff3cd;
    color: #856404;
}

.confirmada {
    background: #d4edda;
    color: #155724;
}

.cancelada {
    background: #f8d7da;
    color: #721c24;
}

/* GALERÍA */
.galeria-imagenes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.galeria-imagenes img {
    width: 250px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    object-fit: cover;
    transition: transform .3s;
}

.galeria-imagenes img:hover {
    transform: scale(1.05);
}

/* MAPA */
.mapa iframe {
    width: 100%;
    border-radius: 12px;
}

/* PIE DE PÁGINA */
footer,
.footer {
    background: var(--azul-oscuro);
    color: white;
    text-align: center;
    padding: 22px 15px;
    margin-top: 40px;
    font-size: 15px;
}

footer p,
.footer p {
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contenedor {
        width: 95%;
        overflow-x: auto;
    }

    table {
        min-width: 900px;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 26px;
    }

    nav a {
        display: block;
        margin: 8px 0;
    }

    .tarjeta {
        padding: 22px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .galeria-imagenes {
        justify-content: center;
    }

    .galeria-imagenes img {
        width: 100%;
    }
}