﻿/* =========================
   === RESET BASE / LAYOUT ===
   ========================= */
:root {
    --brand: #ED2525;
    --brand-dark: #b91d1d;
    --ink: #111;
    --muted: #6b7280;
}

.body-content {
    margin-top: 15px;
    padding: 0 15px;
}

/* Evitar truncar dt en listas horizontales */
.dl-horizontal dt {
    white-space: normal;
}

/* Inputs base */
input, select, textarea {
    max-width: 280px;
}

/* Link de login/logout (navbar) */
.navbar {
    z-index: 1000;
}
/* por encima de laterales */
.navbar-nav .nav-link,
.text-crimson {
    color: crimson !important;
    font-weight: 700;
}

    .navbar-nav .nav-link:hover,
    .text-crimson:hover {
        color: #a50021 !important;
    }

/* =========================
   === HERO / CABECERA ===
   ========================= */
.hero-escoge2 {
    position: relative;
    overflow: hidden;
    padding: 36px 0 18px;
    background: #fff;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 300px;
    width: auto;
}

/* =========================
   === LATERALES FIJOS ===
   Coloca las <img class="side-img side-left/right"> en _Layout
   y envuelve el contenido con .page-wrap
   ========================= */
.side-img {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px; /* ancho del marco lateral */
    height: 100vh; /* alto visible */
    object-fit: cover; /* cover = llena el alto; usa contain si prefieres */
    z-index: 1; /* debajo de navbar y contenido */
    pointer-events: none; /* no bloquea clics */
}

.side-left {
    left: 0;
}

.side-right {
    right: 0;
}

/* El contenido deja espacio a los laterales */
.page-wrap {
    position: relative;
    z-index: 2; /* por encima de laterales */
    padding-left: 280px; /* = width 260 + margen de respiro */
    padding-right: 280px;
}

/* Responsive: ocultar laterales y quitar padding extra */
@media (max-width:1200px) {
    .side-img {
        display: none;
    }

    .page-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================
   === TARJETAS (FEATURES) ===
   ========================= */

.feature-card {
    background: #fff;
    border: 2px solid #ED2525; /* borde rojo */
    border-radius: 16px;
    padding: 30px 20px;
    color: #111;
    text-align: center;
    box-shadow: 0 8px 20px rgba(237,37,37,.15);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    width: 100%; /* que se ajuste al ancho de la columna */
    max-width: 100%; /* no sobrepase */
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(237,37,37,.25);
    }

/* Icono */
.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: .9;
}

/* Título */
.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ED2525;
    margin-bottom: .5rem;
}

/* Texto */
.feature-text {
    color: #444;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Botón */
.btn-warning {
    background-color: #ED2525 !important;
    border-color: #ED2525 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 20px;
    transition: background-color .2s ease, transform .2s ease;
}

    .btn-warning:hover {
        background-color: #b91d1d !important;
        border-color: #b91d1d !important;
        transform: translateY(-2px);
    }


/* =========================
   === FORM / CARDS GENÉRICAS ===
   ========================= */
.card {
    border: 1px solid #191970 !important; /* Azul medianoche */
    border-radius: 16px;
}

.card-header {
    border-bottom: none;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
}

.form-control, .form-select {
    border: 1px solid #000 !important;
    border-radius: 10px;
    box-shadow: none !important;
}

    .form-control:focus, .form-select:focus {
        border-color: #000 !important;
        box-shadow: 0 0 5px rgba(25,25,112,.5);
    }

/* =========================
   === BOTONES ROJOS ===
   Sobrescribe .btn-warning a rojo corporativo
   ========================= */
.btn-warning {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 18px;
    transition: background-color .2s ease, transform .2s ease;
}

    .btn-warning:hover {
        background-color: var(--brand-dark) !important;
        border-color: var(--brand-dark) !important;
        transform: translateY(-2px);
    }

/* (Opcional) si prefieres no tocar .btn-warning, crea una clase propia: */
/*
.btn-escoge{
  background-color:var(--brand)!important;
  border-color:var(--brand)!important;
  color:#fff!important;
  font-weight:600;
  border-radius:8px;
  padding:6px 18px;
}
.btn-escoge:hover{
  background-color:var(--brand-dark)!important;
  border-color:var(--brand-dark)!important;
}
*/

/* Forzar .btn-warning a rojo en Bootstrap 5 (y compatible con 4/3) */
.btn-warning {
    /* Bootstrap 5 variables */
    --bs-btn-bg: #ED2525;
    --bs-btn-border-color: #ED2525;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #b91d1d;
    --bs-btn-hover-border-color: #b91d1d;
    --bs-btn-hover-color: #fff;
    /* Fallback explícito (v4/v3 o por si el navegador no usa variables) */
    background-color: #ED2525 !important;
    border-color: #ED2525 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 18px;
    transition: background-color .2s ease, transform .2s ease;
}

    .btn-warning:hover {
        background-color: #b91d1d !important;
        border-color: #b91d1d !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

/* === Botón rojo corporativo (Bootstrap 4) === */
.btn.btn-warning {
    background-color: #ED2525 !important;
    border-color: #ED2525 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 18px;
    transition: background-color .2s ease, transform .2s ease;
    box-shadow: none !important;
}

    .btn.btn-warning:hover,
    .btn.btn-warning:focus,
    .btn.btn-warning:active,
    .btn.btn-warning:active:focus,
    .show > .btn.btn-warning.dropdown-toggle {
        background-color: #b91d1d !important;
        border-color: #b91d1d !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: none !important;
    }

/* Por si hay estilos de .btn:focus en Bootstrap que metan sombra */
.btn:focus,
.btn:active:focus {
    box-shadow: none !important;
}

.footer-escoge2 {
    background-color: #2E2680; /* color institucional */
    color: white;
    margin-top: 40px;
}

    .footer-escoge2 .footer-logo {
        height: 50px;
        width: auto;
    }

    .footer-escoge2 .social-icons i {
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .footer-escoge2 .social-icons i:hover {
            color: #ED2525; /* rojo institucional */
        }

/* =========================
   === VARIABLES / BASE ===
   ========================= */
:root {
    --brand: #ED2525;
    --brand-dark: #b91d1d;
    --ink: #111;
    --muted: #6b7280;
}

.body-content {
    margin-top: 15px;
    padding: 0 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input, select, textarea {
    max-width: 280px;
}

.navbar {
    z-index: 1000;
}

.navbar-nav .nav-link, .text-crimson {
    color: crimson !important;
    font-weight: 700;
}

    .navbar-nav .nav-link:hover, .text-crimson:hover {
        color: #a50021 !important;
    }

/* =========================
   === HERO / CABECERA ===
   ========================= */
.hero-escoge2 {
    position: relative;
    overflow: hidden;
    padding: 36px 0 18px;
    background: #fff;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 300px;
    width: auto;
}

/* =========================
   === LATERALES FIJOS ===
   ========================= */
.side-img {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.side-left {
    left: 0;
}

.side-right {
    right: 0;
}

.page-wrap {
    position: relative;
    z-index: 2;
    padding-left: 280px;
    padding-right: 280px;
}

@media (max-width:1200px) {
    .side-img {
        display: none;
    }

    .page-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =========================
   === TARJETAS (FEATURES) ===
   ========================= */
.feature-card {
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 16px;
    padding: 30px 20px;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 8px 20px rgba(237,37,37,.15);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(237,37,37,.25);
    }

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: .9;
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
    margin-bottom: .5rem;
}

.feature-text {
    color: #444;
    font-size: 1rem;
    margin-bottom: 16px;
}

.feature-grid {
    row-gap: 24px;
}

/* ===== Tarjeta sólida roja (variante) ===== */
.feature-card.feature-solid {
    background: var(--brand) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 28px;
    padding: 28px 22px;
    box-shadow: 0 14px 30px rgba(237,37,37,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 240px;
}

    .feature-card.feature-solid .feature-title,
    .feature-card.feature-solid .feature-text {
        color: #fff !important;
    }

    .feature-card.feature-solid .feature-icon {
        font-size: 32px;
        line-height: 1;
        margin-bottom: 10px;
    }

/* Botón fantasma blanco dentro de tarjetas rojas */
.btn-ghost-white {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 12px;
    padding: 6px 18px;
    font-weight: 700;
}

    .btn-ghost-white:hover {
        background: #fff !important;
        color: var(--brand) !important
    }

/* =========================
   === FORM / CARDS GENÉRICAS ===
   ========================= */
.card {
    border: 1px solid #191970 !important;
    border-radius: 16px;
}

.card-header {
    border-bottom: none;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
}

.form-control, .form-select {
    border: 1px solid #000 !important;
    border-radius: 10px;
    box-shadow: none !important;
}

    .form-control:focus, .form-select:focus {
        border-color: #000 !important;
        box-shadow: 0 0 5px rgba(25,25,112,.5);
    }

/* =========================
   === BOTONES ===
   ========================= */
/* Botón rojo corporativo reutilizable */
.btn-carmesi,
.btn-carmesi:focus,
.btn-carmesi:active {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    transition: background-color .2s ease, transform .2s ease;
    box-shadow: none !important;
}

    .btn-carmesi:hover {
        background: var(--brand-dark) !important;
        border-color: var(--brand-dark) !important;
        transform: translateY(-2px);
    }

/* Nota: dejamos .btn-warning sin tocar para evitar peleas con Bootstrap */

/* =========================
   === FOOTER ===
   ========================= */
.footer-escoge2 {
    background-color: #2E2680;
    color: #fff;
    margin-top: 40px;
}

    .footer-escoge2 .footer-logo {
        height: 50px;
        width: auto;
    }

    .footer-escoge2 .social-icons i {
        font-size: 1.2rem;
        cursor: pointer;
        transition: color .2s ease;
    }

        .footer-escoge2 .social-icons i:hover {
            color: var(--brand);
        }

/* =========================
   === NAV LINKS (Nosotros/Festividades)
   ========================= */
.navbar .nav-nosotros {
    color: #fff !important;
    font-weight: 600;
}

    .navbar .nav-nosotros:hover {
        color: #f8d210 !important;
    }

/* =========================
   === GALERÍA (Festividades)
   ========================= */
.album-cover {
    max-height: 420px;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

    .album-cover:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(0,0,0,.24);
    }

.cover-cta {
    display: inline-block;
    margin-top: 12px;
    background: var(--brand);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

#galeriaModal .modal-content {
    background: #000;
}

.modal-photo {
    max-height: 82vh;
    object-fit: contain;
    background: #000;
}

#galeriaModal .carousel-indicators [data-bs-target] {
    background-color: #fff;
}

.modal-backdrop {
    z-index: 2000 !important;
}

.modal {
    z-index: 2050 !important;
}

/* =========================
   === TICKETS (Create) ===
   ========================= */
.tickets-create button[type="submit"],
.tickets-create input[type="submit"] {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    transition: background-color .2s ease, transform .2s ease;
    box-shadow: none !important;
}

    .tickets-create button[type="submit"]:hover,
    .tickets-create input[type="submit"]:hover {
        background: var(--brand-dark) !important;
        border-color: var(--brand-dark) !important;
        transform: translateY(-2px);
    }
