/* assets/css/catering.css – Versión corregida: botón "Ver evento" debajo del texto sin ocupar su espacio */

/* ===================== HERO PRINCIPAL (catering-eventos.php) ===================== */
.catering-hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    background: url('../images/ilustrativa-historia.webp') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catering-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

.catering-hero .catering-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
}

.catering-hero .catering-title {
    font-family: 'Playfair Display', serif;
    font-size: 8.5rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.catering-hero .catering-title strong {
    color: var(--rosa-ruts);
}

.catering-hero .catering-subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    letter-spacing: 4px;
    font-weight: 300;
    margin-top: 20px;
    text-transform: uppercase;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .catering-hero .catering-title { font-size: 6rem; }
}
@media (max-width: 600px) {
    .catering-hero { 
        min-height: 80vh;
        background-attachment: scroll;
    }
    .catering-hero .catering-title { font-size: 3.8rem; }
    .catering-hero .catering-subtitle { font-size: 1.3rem; }
}

/* ===================== GRILLA DE CARDS – ALTURA FIJA + ESPACIADO VERTICAL ===================== */
.catering-grid-section {
    background: var(--negro-fondo);
    color: var(--blanco-texto);
    padding: 160px 0 120px;
}

/* Espaciado vertical grande entre filas */
.row.g-5 {
    --bs-gutter-y: 140px;
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    justify-content: flex-start;
}

.row.g-5 > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: var(--bs-gutter-y);
}

.catering-grid-section .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 991.98px) {
    .catering-grid-section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .row.g-5 {
        --bs-gutter-y: 100px;
    }
}

/* Card base – altura fija solo en desktop grande */
.evento-card {
    overflow: hidden;
    background: var(--gris-oscuro);
    height: 580px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Línea rosa superior */
.evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--rosa-ruts);
    z-index: 1;
}

.evento-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.evento-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.evento-card:hover .evento-card-img {
    transform: scale(1.08);
}

/* ===================== CUERPO DE LA CARD ===================== */
.evento-card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--gris-oscuro);
    height: calc(100% - 280px);
    position: relative;
    box-sizing: border-box;
}

.evento-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blanco-texto);
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Contenedor para título + teaser – el texto crece todo lo que necesite */
.evento-card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Espacio antes del botón */
}

.evento-card-teaser {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/* ===================== BOTÓN "Ver evento" – Siempre debajo del texto ===================== */
.evento-card-button {
    align-self: flex-end; /* Alineado a la derecha */
    background: var(--rosa-ruts);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    max-width: calc(100% - 64px);
}

.evento-card-button::after {
    content: '→';
    font-size: 1.3rem;
    transition: transform 0.4s ease;
}

.evento-card-button span {
    transition: transform 0.4s ease;
}

/* Hover del botón – SIN elevarse */
.evento-card:hover .evento-card-button {
    background: #ff4d94;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.evento-card:hover .evento-card-button span {
    transform: translateX(4px);
}

.evento-card:hover .evento-card-button::after {
    transform: translateX(8px);
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 1400px) {
    .evento-card-button {
        padding: 14px 32px;
        font-size: 1.15rem;
    }
}

@media (max-width: 1200px) {
    .evento-card { height: 560px; }
    .evento-card-img { height: 260px; }
    .evento-card-body { height: calc(100% - 260px); }
}

/* Tablet */
@media (max-width: 991.98px) {
    .evento-card { 
        height: auto;
        min-height: 620px; 
    }
    .evento-card-img { height: 300px; }
    .evento-card-body { 
        height: auto; 
        min-height: 320px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .catering-grid-section { padding: 120px 0 100px; }

    .evento-card { 
        height: auto; 
        min-height: 520px; 
    }
    .evento-card-img { height: 260px; }

    .evento-card-body {
        padding: 28px;
    }

    .evento-card-button {
        padding: 10px 22px;
        font-size: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .evento-card-body {
        padding: 24px;
    }

    .evento-card-teaser {
        -webkit-line-clamp: 10;
    }

    .evento-card-button {
        margin-top: 20px;
        margin-bottom: 0;
        margin-right: 0;
        max-width: none;
        width: auto;
    }
}

/* ===================== MODAL ===================== */
/* (Bloque del modal sin cambios – el problema estaba solo en las cards) */
.evento-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.evento-modal.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

.evento-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    color: var(--blanco-texto);
}

.evento-modal-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 4.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.evento-modal-close:hover {
    opacity: 0.7;
}

.evento-modal-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-modal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1;
}

.evento-modal-header {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 90%;
    padding: 0 20px;
}

.evento-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    text-shadow: 0 6px 40px rgba(0,0,0,0.9);
    color: var(--blanco-texto);
    margin: 0;
}

.evento-modal-subtitle {
    font-size: 2rem;
    opacity: 0.95;
    margin-top: 25px;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 0;
}

.evento-modal-body {
    background: var(--negro-fondo);
    padding: 100px 20px 120px;
    min-height: 100vh;
}

.evento-desc {
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255,255,255,0.9);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--rosa-ruts);
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: -1px;
}

.menu-list.detalle {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 80px;
}

.btn-container {
    text-align: right;
    margin-top: 80px;
    padding-right: 40px;
}

.menu-list.detalle li {
    font-size: 1.25rem;
    line-height: 2.2;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
    position: relative;
    padding-left: 40px;
}

.menu-list.detalle li::before {
    content: '•';
    color: var(--rosa-ruts);
    position: absolute;
    left: 0;
    font-size: 2rem;
    line-height: 1;
}

.evento-modal-body .btn.btn-pink {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--rosa-ruts);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 18px 42px;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.evento-modal-body .btn.btn-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.evento-modal-body .btn.btn-pink:hover::before {
    left: 100%;
}

.evento-modal-body .btn.btn-pink:hover {
    background: #ff4d94;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.evento-modal-body .btn.btn-pink::after {
    content: '→';
    font-size: 1.6rem;
    transition: transform 0.4s ease;
}

.evento-modal-body .btn.btn-pink:hover::after {
    transform: translateX(8px);
}

/* Responsive modal */
@media (max-width: 992px) {
    .evento-modal-title { font-size: 5.8rem; }
    .evento-modal-subtitle { font-size: 1.8rem; }
    .menu-title { font-size: 2.5rem; }
    .evento-desc { font-size: 1.2rem; }

    .btn-container {
        text-align: center;
        padding-right: 0;
        margin-top: 70px;
    }

    .evento-modal-body .btn.btn-pink {
        font-size: 1.3rem;
        padding: 16px 38px;
    }
}

@media (max-width: 768px) {
    .evento-modal-hero { height: 60vh; min-height: 450px; }
    .evento-modal-title { font-size: 4.5rem; letter-spacing: -2px; }
    .evento-modal-subtitle { font-size: 1.6rem; }
    .evento-modal-close { top: 20px; right: 20px; font-size: 3.5rem; }
    .evento-modal-body { padding: 80px 15px 100px; }
    .evento-desc { font-size: 1.15rem; margin-bottom: 40px; }
    .menu-title { font-size: 2.2rem; margin-bottom: 30px; }
    .menu-list.detalle { margin-bottom: 60px; }
    .menu-list.detalle li { font-size: 1.15rem; padding-left: 35px; }

    .btn-container { margin-top: 60px; }

    .evento-modal-body .btn.btn-pink {
        font-size: 1.2rem;
        padding: 14px 35px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .evento-modal-title { font-size: 3.8rem; }
    .evento-modal-subtitle { font-size: 1.3rem; }
    .evento-modal-close { font-size: 3rem; }
    .evento-desc { font-size: 1.05rem; }

    .btn-container {
        margin-top: 50px;
        padding: 0 15px;
    }

    .evento-modal-body .btn.btn-pink {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}