/* ==========================================================================
   Estilos específicos para la página: Catálogo Específico de Ataúdes
   ========================================================================== */

/* --- HERO BANNER --- */
.servicios-hero {
    background-color: var(--bg-dark);
    padding: 75px 20px;
    text-align: center;
    color: var(--white);
}

.servicios-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 15px 0;
}

.servicios-hero .hero-subtitle {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- BOTÓN VOLVER --- */
.volver-container {
    padding-top: 40px;
    padding-bottom: 20px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.btn-volver:hover {
    color: var(--gold-primary);
}

.btn-volver .arrow-icon {
    margin-right: 8px;
    transition: transform 0.2s;
}

.btn-volver:hover .arrow-icon {
    transform: translateX(-4px);
}

/* --- REJILLA DEL CATÁLOGO DE MODELOS (3 Columnas Figma) --- */
.catalogo-section {
    padding-bottom: 60px;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.modelo-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modelo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.modelo-thumb {
    width: 100%;
    height: 260px;
    background-color: #ffffff; /* Fondo negro de las imágenes del catálogo */
    overflow: hidden;
}

.modelo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Encaja el ataúd de forma horizontal sin recortarlo */
    display: block;
}

.modelo-body {
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modelo-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.modelo-desc {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    min-height: 40px; /* Alineación perfecta pase lo que pase con el texto */
}

/* --- BLOQUE ESPECIFICACIONES TÉCNICAS (2 Columnas) --- */
.modelo-specs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    margin-bottom: 20px;
    margin-top: auto; /* Empuja las especificaciones abajo */
}

.modelo-specs > div {
    width: 50%;
}

.spec-label {
    display: block;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

/* --- BOTÓN VER DETALLES --- */
.btn-detalles-ataud {
    display: block;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 11px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.btn-detalles-ataud:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #000000;
}

/* --- CTA: AYUDA INMEDIATA --- */
.ayuda-inmediata-section {
    padding: 20px 20px 80px 20px;
}

.ayuda-box {
    background-color: #030303;
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
}

.ayuda-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 0 0 15px 0;
}

.ayuda-box p {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14.5px;
    color: #cccccc;
    margin-bottom: 30px;
}

.btn-llamar, .btn-formulario {
    display: inline-block;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    padding: 13px 28px;
    margin: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-llamar {
    background-color: var(--gold-bg-btn);
    color: #000000;
}

.btn-formulario {
    background-color: transparent;
    color: var(--white);
    border: 1px solid #444444;
}

.btn-formulario:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   MEDIA QUERIES (Responsividad Completa)
   ========================================================================== */

@media (max-width: 992px) {
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columnas en tablet */
        gap: 25px;
    }
    .modelo-thumb {
        height: 240px;
    }
}

@media (max-width: 650px) {
    .catalogo-grid {
        grid-template-columns: 1fr; /* 1 Columna en móviles */
    }
    .modelo-thumb {
        height: 200px;
    }
    .servicios-hero h1 {
        font-size: 32px;
    }
    .btn-llamar, .btn-formulario {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}