/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* SEO H1 oculto visualmente en homepage */
.seo-h1-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Tipografias */
h1, h2, h3, h4, h5, h6,
.font-heading,
.page-header h1,
.card-title,
.featured-box h4 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif !important;
}

body, p, a, li, span, div, input, textarea, select, button,
.font-body,
.nav-link,
.breadcrumb,
.btn {
    font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.7;
    color: #333333;
}

b {
    font-weight: bold;
}

/* Header */
.header-nav-top .active {
    background-color: inherit !important;
}
#header .header-top,
#header .header-nav-features .header-nav-features-search-reveal-container {
    min-height: 20px;
}
#header .header-nav {
    min-height: auto;
}

/* Badge 24h */
.badge-24h {
    background-color: #B99D27;
    color: #000;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Banner Carousel */
.owl-carousel-banner {
    position: relative;
    margin-bottom: 0 !important;
    line-height: 0; /* elimina espacio inline bajo el carousel */
}
.owl-carousel-banner .owl-stage-outer,
.owl-carousel-banner .owl-stage,
.owl-carousel-banner .owl-item {
    line-height: 0;
}
.owl-carousel-banner .banner-slide {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    line-height: normal;
}
.owl-carousel-banner .banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(99,35,51,0.82) 0%, rgba(61,21,32,0.60) 100%);
    z-index: 1;
}
.owl-carousel-banner .banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0 100px; /* padding extra abajo para que los dots no tapen el texto */
    color: #fff;
}
.owl-carousel-banner h2 {
    font-family: 'Lora', serif !important;
    font-size: 2.8rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 15px;
}
.owl-carousel-banner h2 strong {
    font-weight: 700;
    color: var(--secondary);
}
.owl-carousel-banner p {
    font-size: 1.2rem;
    color: #E3D7AD;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Flechas de navegación */
.owl-carousel-banner .owl-nav button {
    background: rgba(99,35,51,0.45) !important;
    border-radius: 50% !important;
    width: 50px; height: 50px;
    color: #fff !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    transition: background .3s;
}
.owl-carousel-banner .owl-nav button:hover {
    background: var(--primary) !important;
}
.owl-carousel-banner .owl-nav .owl-prev { left: 20px; }
.owl-carousel-banner .owl-nav .owl-next { right: 20px; }

/* Dots (usando dots-inside del tema Porto + overrides de color) */
.owl-carousel.owl-carousel-banner.dots-inside .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    margin-top: 0;
}
.owl-carousel-banner .owl-dots .owl-dot span {
    width: 10px; height: 10px;
    margin: 0 5px;
    transition: background .3s, transform .3s;
}
.owl-carousel-banner .owl-dots .owl-dot.active span {
    background: var(--secondary) !important;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .owl-carousel-banner .banner-slide { min-height: 420px; }
    .owl-carousel-banner h2 { font-size: 1.9rem; }
    .owl-carousel-banner p { font-size: 1rem; }
    .owl-carousel-banner .banner-content { padding: 60px 0 80px; }
    .owl-carousel-banner .owl-nav button { width: 38px; height: 38px; font-size: 1.1rem !important; }
    .owl-carousel-banner .owl-nav .owl-prev { left: 8px; }
    .owl-carousel-banner .owl-nav .owl-next { right: 8px; }
}

/* CTA Emergencia */
.cta-emergencia {
    background-color: #632333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-emergencia h2 {
    color: #E3D7AD !important;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.cta-emergencia .telefono-grande {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}
.cta-emergencia .telefono-grande a {
    color: #fff;
    text-decoration: none;
}
.cta-emergencia .telefono-grande a:hover {
    color: #E3D7AD;
}
.cta-emergencia .telefonos-secundarios {
    font-size: 1.2rem;
    color: #E3D7AD;
    margin-top: 10px;
}
.cta-emergencia .telefonos-secundarios a {
    color: #E3D7AD;
    text-decoration: none;
}

@media (max-width: 768px) {
    .cta-emergencia .telefono-grande {
        font-size: 2rem;
    }
    .cta-emergencia {
        padding: 40px 0;
    }
}

/* Barra valores — pegada al carousel, sin espacio */
.barra-valores {
    background-color: #E3D7AD;
    padding: 35px 0;
    margin-top: 0 !important;
}
.barra-valores .valor-item {
    text-align: center;
    padding: 10px 20px;
}
.barra-valores .valor-item i {
    font-size: 2rem;
    color: #632333;
    margin-bottom: 10px;
    display: block;
}
.barra-valores .valor-item h4 {
    color: #632333 !important;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.barra-valores .valor-item p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

/* Tanatorio Cards */
.tanatorio-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}
.tanatorio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.tanatorio-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.tanatorio-card .card-body {
    padding: 25px;
}
.tanatorio-card .card-body h4 {
    color: #632333 !important;
    font-size: 1.2rem;
}
.tanatorio-card .card-body .ciudad {
    color: #B99D27;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Imagen Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #632333 0%, #843a4b 50%, #B99D27 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E3D7AD;
    min-height: 200px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}
.img-placeholder.hero {
    min-height: 600px;
}

/* Servicios funeraria */
.servicio-block {
    padding: 40px 0;
    border-bottom: 1px solid #f0ebe3;
}
.servicio-block:last-child {
    border-bottom: none;
}
.servicio-block .servicio-icon {
    font-size: 3rem;
    color: #632333;
    margin-bottom: 20px;
}
.servicio-block h3 {
    color: #632333 !important;
}

/* Seccion fondo crema */
.bg-crema {
    background-color: #E3D7AD !important;
}
.bg-granate {
    background-color: #632333 !important;
}
.bg-crema-light {
    background-color: #f5f0e3 !important;
}
.text-granate {
    color: #632333 !important;
}
.text-oro {
    color: #B99D27 !important;
}
.text-crema {
    color: #E3D7AD !important;
}

/* Botones personalizados */
.btn-granate {
    background-color: #632333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-granate:hover {
    background-color: #4d1b29;
    color: #fff;
}
.btn-oro {
    background-color: #B99D27;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-oro:hover {
    background-color: #947e1e;
    color: #000;
}
.btn-outline-granate {
    background-color: transparent;
    color: #632333;
    border: 2px solid #632333;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-granate:hover {
    background-color: #632333;
    color: #fff;
}

/* Tanatorio detalle */
.tanatorio-detalle .info-box {
    background-color: #f5f0e3;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}
.tanatorio-detalle .info-box i {
    color: #632333;
    font-size: 1.3rem;
    width: 30px;
}
.tanatorio-detalle .info-box h4 {
    color: #632333 !important;
    border-bottom: 2px solid #E3D7AD;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Social icons hover */
.social-icons li:hover.social-icons-tiktok a {
    background: var(--black) !important;
}
.social-icons li:hover.social-icons-instagram a {
    background: var(--clr-instagram) !important;
}

/* Utilidades */
.mw-25 { max-width: 25%; }
.mw-30 { max-width: 30%; }
.mw-35 { max-width: 35%; }
.mw-40 { max-width: 40%; }
.mw-45 { max-width: 45%; }
.mw-50 { max-width: 50%; }

/* Responsive */
@media (max-width: 768px) {
    .img-float-text {
        float: none !important;
        max-width: 100%;
    }
    #header.header-effect-shrink .header-container {
        min-height: auto;
    }
}

/* Iconos servicios: centrado con flexbox para compatibilidad con FontAwesome */
.featured-box .icon-featured {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal;
    font-size: 2.3em;
    margin: 15px auto;
}

/* Footer funeraria */
.footer-24h {
    background-color: #B99D27;
    color: #000;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    font-size: 1rem;
}
.footer-24h i {
    margin-right: 8px;
}
#footer {
    margin-top: 0 !important;
}
#footer .footer-copyright {
    background: rgba(0,0,0,0.25);
}

/* SEO Funeraria section */
.seo-funeraria {
    background-color: #f5f0e3;
}
.seo-funeraria h2 {
    line-height: 1.3;
}
.seo-funeraria p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.seo-funeraria p strong {
    color: #632333;
}
.seo-subsection {
    background: #fff;
    border-radius: 8px;
    padding: 30px 35px;
    border-left: 4px solid #B99D27;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.seo-lista li {
    padding: 8px 0;
    font-size: 1.05rem;
    color: #444;
    border-bottom: 1px solid #f0ebe3;
}
.seo-lista li:last-child {
    border-bottom: none;
}
.seo-lista li i {
    width: 22px;
    text-align: center;
}

/* Textos negros en desplegables de navegación */
#header .dropdown-menu .dropdown-item,
#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu .dropdown-item:focus {
    color: #000 !important;
}
