/* ═══════════════════════════════════════════════════════════════
   MEJORAS DE DISEÑO — Vigilaqua
   CSS propio (los estilos Tailwind del sitio están precompilados,
   así que todo lo nuevo se define aquí).
   Color de marca: --va-rojo: #f03a26 · --va-rojo-oscuro: #933f30
   ═══════════════════════════════════════════════════════════════ */

:root {
    --va-rojo: #f03a26;
    --va-rojo-oscuro: #933f30;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.va-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
}

.va-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Velo degradado: más oscuro abajo para dar legibilidad al texto */
.va-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(20, 20, 20, 0.35) 0%,
        rgba(20, 20, 20, 0.55) 60%,
        rgba(147, 63, 48, 0.75) 100%);
}

.va-hero__content {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    padding: 4rem 1.5rem;
    text-align: center;
    color: #fff;
}

.va-hero__content h1 {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.va-hero__content p {
    max-width: 42rem;
    margin: 1.25rem auto 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.va-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Botones de marca (compartidos por hero, TCN y formulario) */
.va-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--va-rojo);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.va-btn--primary {
    background: var(--va-rojo);
    color: #fff;
}

.va-btn--primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.va-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.va-btn--ghost:hover {
    background: #fff;
    color: var(--va-rojo-oscuro);
    transform: translateY(-2px);
}

/* ── SEPARADOR DE MARCA (línea roja bajo títulos) ────────────── */
.va-separator {
    width: 5rem;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 9999px;
    background: var(--va-rojo);
}

/* ── PRESENTACIÓN ─────────────────────────────────────────────── */
.va-intro {
    max-width: 50rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.va-intro p {
    font-size: clamp(1.05rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    color: #374151;
}

/* ── NAVBAR ───────────────────────────────────────────────────── */
#navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

/* Enlaces del menú con subrayado animado */
#navbar a {
    position: relative;
}

#navbar a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: width 0.25s ease, left 0.25s ease;
}

#navbar a:hover::after {
    width: 60%;
    left: 20%;
}

/* Menú móvil desplegable con transición */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

#mobile-menu.va-open {
    max-height: 480px;
    opacity: 1;
}

/* ── FORMULARIO DE CONTACTO ───────────────────────────────────── */
.va-field {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.va-input {
    width: 100%;
    height: 2.75rem;
    margin-top: 0.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.va-input {
    height: auto;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.va-input:focus {
    outline: none;
    border-color: var(--va-rojo);
    box-shadow: 0 0 0 3px rgba(240, 58, 38, 0.15);
}

/* Botón ENVIAR en color de marca */
#btn-enviar {
    margin-top: 2.5rem;
    border: 2px solid var(--va-rojo);
    background: var(--va-rojo);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.85rem 3rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#btn-enviar:not(:disabled):hover {
    background: transparent;
    color: var(--va-rojo);
    transform: translateY(-2px);
}

#btn-enviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ALTCHA: quitar el borde gris por defecto y darle aire */
altcha-widget {
    display: block;
    margin-top: 1rem;
    max-width: 100%;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
footer a {
    transition: color 0.2s ease;
}

footer ul a:hover {
    color: #fca5a5; /* rojo claro de marca, legible sobre gris-800 */
}

/* ── TARJETAS (calidad, experiencia, imagen, formación) ───────── */
.va-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.va-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── ACCESOS DIRECTOS SERVICIOS / FORMACIÓN ───────────────────── */
.va-circle {
    transition: transform 0.25s ease;
    display: inline-block;
}

.va-circle:hover {
    transform: scale(1.07);
}
