/* ===== VARIABLES Y ESTILOS GENERALES ===== */
:root {
    --color-primary: #C5A450; /* Dorado del logo */
    --color-secondary: #5A2A75; /* Morado del logo */
    --color-dark: #1a1a1a;     /* Fondo oscuro elegante */
    --color-light: #f4f4f4;     /* Texto y fondos claros */
    --color-white: #ffffff;
    
    --font-headings: 'Playfair Display', serif; /* Fuente para títulos */
    --font-body: 'Poppins', sans-serif;         /* Fuente para texto normal */

    --container-width: 1120px;
}

/* Reseteo básico para consistencia en navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

section {
    padding: 5rem 0;
}

/* ===== BOTONES REUTILIZABLES ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}
.btn--primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn--secondary:hover {
    background-color: #4a2261; /* Morado más oscuro */
}

.btn--large {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}


/* ===== HEADER ===== */
.header {
    background-color: var(--color-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    height: 50px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 2rem;
}

.header__nav a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header__nav a:hover {
    color: var(--color-primary);
}


/* ===== SECCIÓN HERO (BIENVENIDA) ===== */
.hero {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}


/* ===== SECCIÓN DE PRODUCTOS ===== */
.products {
    background-color: var(--color-light);
}

.products--dark {
    background-color: var(--color-dark);
}

.products--dark h2 {
    color: var(--color-light);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.products--dark .product-card {
    background-color: #2a2a2a;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
}

.products--dark .product-card h3 {
    color: var(--color-primary);
}

.products--dark .product-card p {
    color: var(--color-light);
}

.product-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.product-card .btn {
    margin-bottom: 1.5rem;
}

/* ===== SECCIÓN CTA (LLAMADA A LA ACCIÓN) ===== */
.cta {
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
}

.cta h2 {
    color: var(--color-white);
}

.cta p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ===== CONTACTO Y MAPA ===== */
.contact {
    background-color: var(--color-light);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact__info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact__info p {
    margin-bottom: 1rem;
}

.contact__info i {
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.contact__map iframe {
    border-radius: 12px;
}


/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 3rem 0;
    text-align: center;
}

.footer__social {
    margin-bottom: 1.5rem;
}

.footer__social a {
    color: var(--color-light);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer__social a:hover {
    color: var(--color-primary);
}

.footer__links a {
    color: var(--color-light);
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__copy {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* ===== DISEÑO RESPONSIVO (PARA CELULARES) ===== */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    section { padding: 3rem 0; }

    .header__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .products__grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
    }

    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .products__grid {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
}
/* ===== SECCIÓN ENTREGA FUNERARIAS (VERSIÓN CORREGIDA) ===== */
.delivery-section {
    background-color: #f9f9f9;
}

.delivery-subtitle {
    text-align: center;
    max-width: 650px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

.funerarias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.funeraria-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Alinea los elementos */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.funeraria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.funeraria-card h3 {
    color: #333;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.funeraria-address {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem; /* Aumenta el espacio antes del botón */
    flex-grow: 1; /* Permite que este elemento ocupe el espacio sobrante */
}

/* Estilo para el enlace del mapa en la parte superior */
.funeraria-map-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.funeraria-map-link:hover {
    color: var(--color-primary);
}

.funeraria-map-link i {
    margin-right: 0.5rem;
}

/* Estilo para el botón de "Enviar Arreglo" */
.funeraria-card .btn--secondary {
    width: 100%; /* El botón ocupa todo el ancho */
}


/* Estilos para el texto y botón al final de la sección */
.delivery-section__footer {
    text-align: center;
    margin-top: 3rem;
}

.delivery-section__footer p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}
/* ===== PÁGINA SOBRE NOSOTROS ===== */
.about-us-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.about-us-container {
    max-width: 800px; /* Hacemos el contenedor más angosto para facilitar la lectura */
    text-align: center;
}

.about-us-container h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-us-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    font-style: italic;
}

.about-us-content {
    text-align: left;
}

.about-us-content h2 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-us-content p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Estilos para la imagen opcional */
.about-us-image {
    margin-top: 2rem;
}

.about-us-image img {
    max-width: 100%;
    border-radius: 12px;
}
/* ===== PÁGINA DE CONTACTO ===== */
.contact-page-section {
    padding: 5rem 0;
}

.contact-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-page-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-details .contact-item i {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-right: 1.5rem;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-details .contact-item h4 {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details .contact-item p,
.contact-details .contact-item a {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-decoration: none;
}

.contact-details .contact-item a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

.contact-map iframe {
    border-radius: 12px;
}

/* ===== RESPONSIVO PARA PÁGINA DE CONTACTO ===== */
@media (max-width: 992px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== PÁGINA DE DIRECTORIO DE FUNERARIAS ===== */
.directory-page-section {
    padding: 5rem 0;
}

.directory-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.directory-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.directory-page-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.directory-grid {
    display: grid;
    /* Usamos la misma clase que ya teníamos para las tarjetas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
/* ===== SECCIÓN BENEFICIOS (NUEVA) ===== */
.benefits {
    background-color: #fff;
    padding: 4rem 0;
}
.benefits__title {
    color: var(--color-dark);
    margin-bottom: 3rem;
}
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.benefit-card i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}
.benefit-card h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}
/* ===== PÁGINA POLÍTICAS DE ENTREGA (NUEVA) ===== */
.delivery-policy-section { padding: 5rem 0; }
.delivery-policy-header { text-align: center; margin-bottom: 4rem; }
.delivery-policy-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.delivery-policy-header p { font-size: 1.2rem; color: #555; max-width: 600px; margin: 0 auto; }
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-block { background-color: #fff; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; border: 1px solid #eee; text-align: center; }
.policy-block i { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1rem; }
.policy-block h2 { font-size: 1.8rem; color: var(--color-secondary); margin-bottom: 1rem; }
.policy-block p { color: #333; line-height: 1.8; }
.policy-block .horario-principal { font-size: 1.3rem; font-weight: 500; color: var(--color-dark); }
.special-service { background-color: #f8f6ff; /* Un lila muy claro */ border-color: #e0d4e8; }
.promo-especial { background-color: #fff8e1; padding: 0.8rem; border-radius: 8px; margin-top: 1rem; }