/* =========================
   VARIABLES
========================= */
:root {
    --color-principal: #c9a24d;
    --color-principal-oscuro: #a88435;
    --color-acento: #25D366;

    --color-fondo: #f5f5f2;
    --color-card: #ffffff;
    --color-texto: #1f2933;
    --color-texto-suave: #6b7280;

    --radio: 14px;
    --sombra: 0 10px 25px rgba(0, 0, 0, 0.08);
    --sombra-hover: 0 16px 35px rgba(0, 0, 0, 0.12);
}

/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

i.fa-solid,
i.fa-brands {
    font-size: 1em;
}


/* =========================
   TIPOGRAFÍA
========================= */
h1 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-principal), transparent);
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    font-size: 0.95rem;
    color: var(--color-texto-suave);
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 245, 242, 0.95);
    /* perla */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(245, 245, 242, 0.92);
    padding: 4px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.site-header.scrolled .logo img {
    height: 42px;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   LOGO
========================= */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0px 16px;
    border-radius: 18px;
    background:
        linear-gradient(#f5f5f2, #f5f5f2) padding-box,
        linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Texto logo */
.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--color-texto);
    line-height: 1;
}

.logo-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover branding */
.logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* Navegación */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-principal);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* CTA menú */
.nav-cta {
    padding: 10px 26px;
    border-radius: 30px;
    background: linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* =========================
   MENÚ MÓVIL
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-texto);
    border-radius: 3px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Estado abierto */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f5f5f2;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .main-nav.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav.active {
        display: flex;
    }
}

/* =========================
   HERO
========================= */
.hero {
    background:
        linear-gradient(rgba(20, 20, 20, 0.72),
            rgba(20, 20, 20, 0.72)),
        url("/img/FONDO_MONO2.png");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 140px 20px 120px;
}

.hero-content {
    max-width: 700px;
    margin: auto;
}

.hero h1 {
    color: #f9f7f2;
    /* blanco perla */
    margin-bottom: 22px;
}

.hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg,
            #d4af37,
            #b8962e);
    margin: 20px auto 0;
    border-radius: 4px;
}

.hero p {
    color: #e6e3dc;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 35px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn-principal {
    background: linear-gradient(135deg,
            #d4af37,
            #b8962e);
    color: #1f2933;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.hero .btn-secundario {
    border: 2px solid #f9f7f2;
    color: #f9f7f2;
}

.hero .btn-secundario:hover {
    background: #f9f7f2;
    color: #1f2933;
}

/* =========================
   BOTONES
========================= */
button,
.btn-principal {
    padding: 15px 38px;
    background: linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro));
    color: #ffffff;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

button:hover,
.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    filter: brightness(1.05);
}

.btn-secundario {
    padding: 14px 32px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: white;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(2px);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn-secundario:hover {
    background: white;
    color: var(--color-principal);
    transform: translateY(-2px);
}

/* =========================
   SECCIONES
========================= */
section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 60px 25px;
    background: var(--color-card);
    border-radius: var(--radio);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

section>*+* {
    margin-top: 20px;
}

/* =========================
   GRIDS
========================= */
.servicios-grid,
.porque-grid,
.precios-grid {
    display: grid;
    gap: 20px;
}

.servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.precios-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =========================
   GALERÍA
========================= */

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    cursor: pointer;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.galeria-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Overlay con texto */
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.05));
    display: flex;
    align-items: flex-end;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-texto {
    color: #fff;
    width: 100%;
}

.galeria-texto h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #f9f7f2;
}

.galeria-texto p {
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* Icono lupa */
.galeria-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.galeria-item:hover .galeria-icon {
    opacity: 1;
    transform: scale(1);
}

/* =========================
   TARJETAS
========================= */

.texto-servicio {
    text-align: center;
    padding-bottom: 20px;
}

.servicio,
.porque-item,
.precio-card {
    background: var(--color-card);
    padding: 34px 26px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio:hover,
.porque-item:hover,
.precio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

/* =========================
   ICONOS SERVICIOS (EFECTO)
========================= */
.servicio-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    background: radial-gradient(circle at top left,
            var(--color-principal),
            var(--color-principal-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.servicio:hover .servicio-icon {
    animation: iconBounce 0.6s ease;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    70% {
        transform: translateY(2px);
    }

    100% {
        transform: translateY(0);
    }
}

.precio {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-principal);
    margin: 18px 0;
}

.precio-lista {
    list-style: none;
    margin: 20px 0 30px;
    padding: 0;
}

.precio-lista li {
    margin-bottom: 8px;
}

.precio-card.destacado .precio {
    font-size: 2.8rem;
}

/* Destacado (titulo Tarifa central) */
.destacado {
    border: 2px solid var(--color-principal);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg,
            #fffaf0,
            #ffffff);
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-principal), var(--color-principal-oscuro));
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}


/* =========================
   FORMULARIO
========================= */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

input,
select,
textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-principal);
    outline: none;
}


textarea {
    resize: none;
}

/* =========================
   BOTÓN CARGA / SPINNER
========================= */

#btn-enviar {
    position: relative;
    overflow: hidden;
}

/* Estado cargando */
#btn-enviar.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Spinner */
#btn-enviar.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg) translateY(-50%);
    }
}

/* =========================
   ANIMACIONES FORMULARIO
========================= */

.form-fade-out {
    animation: fadeOutUp 0.35s ease forwards;
}

.form-fade-in {
    animation: fadeInUp 0.35s ease forwards;
}

@keyframes fadeOutUp {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   CONFIRMACIÓN ENVÍO
========================= */

.confirmacion {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.confirmacion.oculto {
    display: none;
}

.confirmacion-card {
    background: var(--color-card);
    padding: 40px 30px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    text-align: center;
    max-width: 420px;
}

.confirmacion-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.confirmacion-card h3 {
    margin-bottom: 12px;
}

.confirmacion-card p {
    margin-bottom: 25px;
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--color-acento);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -moz-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -ms-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -o-transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.whatsapp-btn i {
    transition: transform 0.3s ease;
}

.whatsapp-btn i {
    animation: whatsapp-pulse 1.4s ease infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
   CONTACTO
========================= */

.contacto {
    padding-bottom: 70px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.contacto-info {
    text-align: center;
}

.contacto-nombre {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contacto-info p {
    margin-bottom: 8px;
}

.contacto-info a {
    color: var(--color-principal);
    font-weight: 600;
    text-decoration: none;
}

.contacto-horario {
    margin-top: 20px;
}

.contacto-mapa-btn {
    margin-top: 25px;
    display: inline-block;
    color: white !important;
}

.contacto-mapa iframe {
    width: 100%;
    height: 300px;
    border-radius: 14px;
    border: 0;
    box-shadow: var(--sombra);
}

/* =========================
   CONTACTO RESPONSIVE
========================= */

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-mapa iframe {
        height: 260px;
    }
}

/* =========================
   STICKY CTA MÓVIL (ELEGANTE)
========================= */

.sticky-cta {
    display: none;
}

@media (max-width: 768px) {

    .sticky-cta {
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1500;

        background: linear-gradient(135deg,
                var(--color-principal),
                var(--color-principal-oscuro));

        color: white;
        padding: 10px 20px 12px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        text-align: center;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;

        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
        transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            opacity 0.22s ease;
    }

    /* Micro feedback táctil */
    .sticky-cta:active {
        transform: translateX(-50%) scale(0.97);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

    /* Oculto */
    .sticky-cta.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(18px);
    }

    /* =========================
       BADGE DISPONIBILIDAD
    ========================= */

    .sticky-cta::after {
        content: "⏱ " attr(data-disponibilidad) " huecos hoy";
        font-size: 0.65rem;
        font-weight: 500;
        opacity: 0.85;
        background: rgba(255, 255, 255, 0.14);
        padding: 1px 8px;
        border-radius: 999px;
    }
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--color-principal);
    text-align: center;
    padding: 18px;
    padding-bottom: 90px;
}

footer p {
    color: white;
    font-size: 0.9rem;
}

/* =========================
   GALERÍA - MODAL
========================= */

.galeria-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.galeria-modal.active {
    display: block;
}

.galeria-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(4px);
}

.galeria-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    border-radius: var(--radio);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 15px;
    animation: modalEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
}

.galeria-modal-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeria-modal-content img.loaded {
    opacity: 1;
}

.galeria-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* 🎨 Glass effect */
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);

    /* 🎯 Círculo perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;

    /* 🎞 Animación */
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

/* Hover desktop */
.galeria-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

#galeriaModalCaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Animación */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(-48%) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    section {
        margin: 20px 10px;
    }
}

@media (max-width: 768px) {
    .galeria-overlay {
        padding: 16px;
    }

    .galeria-texto h3 {
        font-size: 1rem;
    }

    .galeria-texto p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .logo {
        padding: 6px 12px;
        gap: 10px;
    }

    .logo img {
        height: 46px;
    }

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

    .logo-text small {
        font-size: 0.65rem;
    }
}

/* 📱 Mobile friendly */
@media (max-width: 480px) {
    .galeria-modal-close {
        width: 42px;
        height: 42px;
        font-size: 20px;
        top: -18px;
        right: -18px;
    }
}

/* =========================
   6.6 REVEAL SCROLL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes opcionales */
.reveal.delay-1 {
    transition-delay: 0.15s;
}

.reveal.delay-2 {
    transition-delay: 0.3s;
}

.reveal.delay-3 {
    transition-delay: 0.45s;
}

/*  TODO:============CSS PANEL===================*/

/* =========================
   VARIABLES NECESARIAS PANEL
========================= */

:root {
    --color-pendiente: #d32f2f;
    --color-pendiente-bg: #ffebee;
    --color-realizada-bg: #e8f5e9;
}

/* =========================
   CONTEXTO PANEL
========================= */

body.panel {
    background: var(--color-fondo);
}

.panel section {
    margin-top: 30px;
}

.panel .reveal {
    opacity: 1;
    transform: none;
}

/* =========================
   HEADER PANEL
========================= */

.panel .site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--sombra);
}

.panel .site-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.panel #logout {
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* =========================
   ESTADÍSTICAS
========================= */

.estadisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat {
    background: var(--color-card);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.stat .numero {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.stat .texto {
    font-size: 0.95rem;
    color: var(--color-texto-suave);
}

.stat.pendiente {
    background: var(--color-pendiente-bg);
    color: var(--color-pendiente);
}

.stat.realizada {
    background: var(--color-realizada-bg);
    color: var(--color-principal);
}

/* =========================
   BARRA DE PROGRESO
========================= */

.progreso {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.barra {
    height: 100%;
    width: 0%;
    position: relative;
    background: linear-gradient(90deg,
            var(--color-principal),
            var(--color-acento));
    transition: width 0.4s ease;
}

.barra::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: translateX(-100%);
    animation: progresoBrillo 1.6s infinite;
}

@keyframes progresoBrillo {
    to {
        transform: translateX(100%);
    }
}

/* =========================
   BUSCADOR / ORDEN
========================= */

.buscador {
    margin-bottom: 15px;
}

.buscador input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.orden {
    margin-bottom: 20px;
}

.orden select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    max-width: 420px;
}

/* =========================
   CONTADORES
========================= */

.contadores {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.contadores button {
    background: white;
    color: var(--color-texto);
    border: 1px solid #e5e7eb;
    box-shadow: var(--sombra);
    border-radius: 25px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.contadores button:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.contadores button[data-filtro="pendiente"] {
    border-color: var(--color-pendiente);
    color: var(--color-pendiente);
}

.contadores button[data-filtro="realizada"] {
    border-color: var(--color-principal);
    color: var(--color-principal);
}

.contadores button.activo {
    background: linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =========================
   LISTADO SOLICITUDES
========================= */

#lista-solicitudes {
    display: grid;
    gap: 20px;
    margin-top: 10px;
}

.servicio {
    background: var(--color-card);
    padding: 20px;
    text-align: left;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
    position: relative;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color;
    -moz-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color;
    -ms-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color;
    -o-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color;
}

.servicio strong {
    font-size: 1.05rem;
}

.servicio:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.panel .servicio {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "nombre estado"
        "telefono estado"
        "info info"
        "acciones acciones"
        "boton boton";
    row-gap: 10px;
    column-gap: 16px;
}

/* Nombre */
.panel .servicio>strong {
    grid-area: nombre;
}

/* Teléfono (línea directa tras el nombre) */
.panel .servicio {
    line-height: 1.5;
}

/* Badge de estado */
.panel .servicio .badge {
    grid-area: estado;
    position: static;
    justify-self: flex-end;
    align-self: start;
}

/* Acciones (Llamar / WhatsApp) */
.panel .servicio .acciones {
    grid-area: acciones;
    margin-top: 12px;
    justify-content: flex-start;
}

/* Botones deshabilitados */
.servicio button:disabled,
.servicio a[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.servicio.pendiente {
    border-left: 6px solid var(--color-pendiente);
}

.servicio.realizada {
    border-left: 6px solid var(--color-principal);
    background: var(--color-realizada-bg);
}

/* =========================
   BADGES
========================= */

.panel .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.panel .badge::before {
    font-size: 0.8rem;
    line-height: 1;
}

/* Pendiente */
.panel .badge.pendiente {
    background: var(--color-pendiente-bg);
    color: var(--color-pendiente);
}

.panel .badge.pendiente::before {
    content: "⏳";
}

/* Realizada */
.panel .badge.realizada {
    background: var(--color-realizada-bg);
    color: var(--color-principal);
}

.panel .badge.realizada::before {
    content: "✅";
}

/* =========================
   ACCIONES
========================= */

.acciones {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.accion {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-principal);
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    transition: background 0.2s ease;
}

.accion:hover {
    background: #e5e7eb;
}

/* =========================
   OTROS
========================= */

.resaltado {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
}

.notificado {
    font-size: 0.8rem;
    color: var(--color-texto-suave);
}

/* =========================
   ESTADO AVISADO
========================= */

.notificado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.servicio.realizada .notificado {
    background: #dcfce7;
    color: #166534;
}

/* =========================
   BLOQUE ADMIN FIJO
========================= */

.bloque-admin {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Notificación centrada */
.estado-notificacion {
    text-align: center;
    min-height: 18px;
    /* reserva espacio */
}

/* =========================
   BLOQUE BOTONES ADMIN SIEMPRE ABAJO
========================= */

.panel .acciones-admin {
    display: flex;
    justify-content: center;
    /* centrado horizontal */
    gap: 8px;
    margin-top: 12px;
    grid-area: boton;
    /* ocupa toda la fila de botones */
    width: 100%;
}

/* Botones completos dentro del bloque admin */
.panel .acciones-admin .btn-completar,
.panel .acciones-admin .btn-eliminar {
    flex: 1;
    /* ocupan toda la anchura disponible */
    max-width: 240px;
    /* opcional para no estirarse demasiado */
}

/* =========================
   BOTON COMPLETAR SOLICITUD
========================= */
.panel .btn-completar {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    background: linear-gradient(135deg,
            var(--color-principal),
            var(--color-principal-oscuro));
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel .btn-completar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* =========================
   BOTÓN ELIMINAR
========================= */

.panel .btn-eliminar {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.panel .btn-eliminar:hover {
    background: #fecaca;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* =========================
   ANIMACIÓN CAMBIO A REALIZADA
========================= */

.servicio.animando {
    animation: marcarRealizada 0.45s ease-out;
}

@keyframes marcarRealizada {
    0% {
        transform: scale(1);
        background-color: var(--color-pendiente-bg);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        background-color: var(--color-realizada-bg);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {

    .accion,
    .btn-completar,
    .btn-whatsapp {
        min-height: 44px;
    }
}

@media (max-width: 600px) {
    .panel .acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .panel .accion,
    .panel .btn-completar,
    .panel .btn-whatsapp {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .panel .contadores {
        flex-direction: column;
    }

    .acciones {
        flex-direction: column;
    }
}