/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://tu-sitio-web.com/
 Description:  Tema hijo para GeneratePress
 Author:       ANT Isabel Aray
 Author URI:   https://tu-sitio-web.com/
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}
.site-content{
    flex-direction: column;
}
.container {
    max-width: 1400px;  
    margin-left: auto;  
    margin-right: auto; 
    padding-left: 20px; 
    padding-right: 20px;
    background-color: inherit !important;
}
/* Header personalizado*/
.custom-header {
    background-color: #00502F;
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 10px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navegación */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: left;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
}

.nav-menu .menu-item { 
    position: relative;
}

.nav-menu .menu-item > a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    position: relative; 
}

.nav-menu .menu-item > a:hover {
    color: #FFE600; 
}

/* Dropdown menus */
.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1001;
    padding: 0;
    margin-left: 0 !important;
}

.menu-item-has-children:hover > .sub-menu { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child { 
    border-bottom: none;
}

.sub-menu a { 
    display: block;
    padding: 12px 15px !important;
    color: #00502F !important;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sub-menu a:hover {
    background-color: #f8f9fa;
    color: #FFE600 !important;
}
/* ==========================================================================
   Estilos para Sub-menús de Nivel 3 y más profundos
   ========================================================================== */
.nav-menu .sub-menu .menu-item {
    position: relative;
}

.nav-menu .sub-menu .sub-menu {
    top: 0;       
    left: 100%;   
    margin-top: 0;/
}

.nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Botones de acción */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cta-button {
    background-color: white;
    color: #2d5a27;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #f8f9fa;
    color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-icon {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu .menu-item > a {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Estilos adicionales para funcionalidad */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Ajustar el body para compensar el header fijo */
body {
    padding-top: 80px;
}

@media (max-width: 1024px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .custom-header {
        position: relative;
    }
}

/* Estilos para menú móvil activo */
.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d5a27;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
}

.nav-menu.mobile-active {
    padding: 20px;
    gap: 15px;
}

.header-actions.mobile-active {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón hamburguesa */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    margin-right: 15px;
}

/* Mejoras en hover y transiciones */
.nav-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFE600;
    transition: width 0.3s ease;
}

.nav-menu .menu-item > a:hover::after {
    width: 100%;
}

/* Animaciones suaves */
.sub-menu { 
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras en accesibilidad */
.nav-menu .menu-item > a:focus,
.cta-button:focus,
.cart-icon:focus {
    outline: 2px solid #FFE600;
    outline-offset: 2px;
}

/* Estilos para el SVG del carrito */
.cart-icon svg {
    transition: transform 0.3s ease;
}

.cart-icon:hover svg {
    transform: scale(1.1);
}
/*fin header personalizado*/

/* =========================
   Home: Servicios slider
   ========================= */
/* ==========================================================================
   NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS (Services Section)
   ========================================================================== */

/* --- Contenedor y Títulos --- */
.services-section {
    padding: 80px 0;
    background-color: #fff; /* Fondo blanco para la sección */
}

.services-section .eyebrow {
    text-align: center;
    color: #0f3c27;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

.services-section .section-title {
    text-align: center;
    color: #0f3c27;
    font-size: 50px;
    font-weight: 500;
    line-height: 2.2rem;
    margin-bottom: 40px;
}

/* --- Slider y Flechas --- */
.services-slider {
    position: relative;
    padding: 30px 10px;
}

.services-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.services-slider .slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.services-slider .slider-arrow.prev {
    left: -25px;
}

.services-slider .slider-arrow.next {
    right: -25px;
}

.services-slider .slider-arrow span {
    color: #00502F;
    font-size: 20px;
}


/* --- Tarjeta de Servicio (El estilo clave) --- */
.service-card {
    border-radius: 150px 150px 20px 20px;
    overflow: hidden;    /* Esencial para que la forma del arco funcione */
    box-shadow: 0 10px 30px rgba(0, 73, 44, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 73, 44, 0.15);
}

/* --- La Imagen en forma de Arco --- */
.card-arch {
    height: 320px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 150px;  /* La magia para crear el arco */
    border-top-right-radius: 150px; /* La magia para crear el arco */
}

/* --- Cuerpo de la Tarjeta --- */
.card-body {
    background-color: #B1C3AC; /* Verde claro del diseño */
    padding: 25px;
    text-align: center;
}

.card-title {
    color: #0f3c27;
    font-size: 16px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 14px;
}

/* Ocultamos el divisor, ya que no está en el nuevo diseño */
.card-divider {
    display: none;
}

/* --- Botón "Ver más" --- */
.service-card .btn.btn-primary {
    background-color: #00502F;
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 400;
}

.service-card .btn.btn-primary:hover {
    background-color: #003a22; /* Un verde un poco más oscuro al pasar el ratón */
}
/* ==========================================================================
   CORRECCIÓN COMPLETA PARA EL LAYOUT Y FUNCIONALIDAD DEL SLIDER
   ========================================================================== */

/* 1. El contenedor principal del slider debe ocultar lo que se desborda */
.services-slider {
    overflow: hidden;
}

/* 2. El "track" o pista que contiene las tarjetas debe ser flexible y horizontal */
.services-track {
    display: flex; /* ¡Esta es la regla clave! Pone los elementos en fila. */
    gap: 30px;     /* Espacio entre las tarjetas */
}

/* 3. A cada tarjeta le damos un ancho y evitamos que se encoja */
.services-track > .service-card {
    width: calc(100% / 4 - 22.5px); /* Ancho para 4 tarjetas, ajustado por el gap */
    flex-shrink: 0;                 /* ¡MUY IMPORTANTE! Evita que las tarjetas se encojan */
    min-width: 280px;               /* Ancho mínimo para que se vea bien en pantallas más chicas */
}

/* 4. Ajuste para que las flechas se vean bien en pantallas más pequeñas */
@media (max-width: 1400px) {
    .services-slider .slider-arrow.prev {
        left: 0;
    }
    .services-slider .slider-arrow.next {
        right: 0;
    }
}
/*fin Home: Servicios slider*/

/* =========================
   Home: Productos slider (variación de estilos)
   ========================= */
.products-section {
    background-color: #f7f7f7;
    padding: 80px 0;
}
.products-section .eyebrow {
    text-align: center;
    color: #32353E;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}
.products-section .section-title {
    text-align: center;
    color: #32353E;
    font-size: 50px;
    font-weight: 500;
    line-height: 2.2rem;
    margin-bottom: 40px;
}
.products-section .card-body { background-color: #D2D2D2; }
.products-section .btn.btn-primary { background-color: #32353E; }
.products-section .btn.btn-primary:hover { background-color: #1f1f1f; }

/* =========================
   Banner de contacto 24/7
   ========================= */
.contact-banner {
    position: relative;
    background-color: #d6e1d4;
    padding: 80px 0;
    overflow: hidden;
}
.contact-banner-shadow {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: 6px;
    box-shadow: inset 0 6px 8px rgba(0,0,0,.06);
    pointer-events: none;
}
.contact-banner-shadow--bottom { top: auto; bottom: 0; box-shadow: inset 0 -6px 8px rgba(0,0,0,.06); }

.contact-title {
    color: #0f3c27;
    text-align: center;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-subtitle {
    color: #0f3c27;
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #0f3c27;
    padding: 8px 40px;
    border-radius: 36px;
    text-decoration: none;
    font-weight: 500;
    margin: 0 auto;
    color: #d6e1d4;
}
.contact-whatsapp:hover,
.contact-whatsapp:focus {
    text-decoration: none;
    color: #d6e1d4;
    background-color: #0f3c27;
}

.contact-whatsapp .wa-icon { display: grid; place-items: center; }
.contact-whatsapp .wa-text { font-size: 25px; }
.contact-banner .container { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 768px) {
    .contact-title { font-size: 28px; }
    .contact-subtitle { font-size: 18px; }
    .contact-whatsapp { padding: 12px 18px; }
    .contact-whatsapp .wa-text { font-size: 16px; }
}

/* =========================
   Steps (Trámites)
   ========================= */
.steps-section { padding: 80px 0; background: #fff; }
.steps-title {
    color: #0f3c27;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5%;
}
.step-card { text-align: left; }
.step-arch {
    height: 360px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
}
.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7efe9;
    color: #0f3c27;
    margin: -40px auto -30px;
    padding-top: 5px;
    font-weight: 500;
    font-size: 22px;
    align-items: start;
}
.step-heading {
    color: #0f3c27;
    font-size: 18px;
    font-weight: 600;
    margin: 0px 0 12px;
    background: #fff;
    text-align: left;
    padding: 30px 0 15px;
}
.step-text { color: #32353E; font-size: 12px; }
.step-text ol { padding-left: 18px; margin: 8px 0 0; }
.steps-cta-wrap { display: flex; justify-content: center; margin-top: 24px; }
.steps-cta-wrap .contact-whatsapp { padding: 10px 28px; }
.steps-cta-wrap .contact-whatsapp .wa-text { font-size: 20px; }

@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: 1fr; gap: 28px; }
    .steps-title { font-size: 32px; }
}

/* =========================
   Encuentra a tu ser querido
   ========================= */
.find-loved-section {
    position: relative;
    background-image: url('../img/encuentra-ser-querido.jpg');
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.find-loved-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,80,47,0.85) 0%, rgba(0,80,47,0.65) 50%, rgba(0,80,47,0.55) 100%);
}
.find-loved-content { position: relative; text-align: center; color: #fff; }
.find-title { font-size: 48px; font-weight: 600; margin-bottom: 10px; }
.find-subtitle { font-size: 18px; margin-bottom: 18px; }
.find-link { color: #FFE600; text-decoration: underline; }
.find-search { max-width: 720px; margin: 0 auto 28px; display: grid; grid-template-columns: 1fr 64px; }
.find-input { height: 48px; border-radius: 6px 0 0 6px; border: none; padding: 0 16px; }
.find-button { border: none; background: #fff; color: #00502F; border-radius: 0 6px 6px 0; font-size: 20px; }
.find-day-title { color: #fff; font-size: 36px; font-weight: 600; margin: 10px 0; }
.find-date { color: #e6f1ec; margin-bottom: 16px; }
.find-cta { background: #fff; color: #00502F; }

@media (max-width: 768px) {
    .find-title { font-size: 32px; }
    .find-search { grid-template-columns: 1fr 52px; }
}
