/* ================= ESTRUCTURA GLOBAL ================= */
.container-1300 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.servicios-main {
    padding: 60px 0 0 0;
    background-color: #ffffff;
}

/* ================= BANNER PRINCIPAL TOP ================= */
.banner-principal {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.banner-bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.banner-text-content {
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.banner-text-content h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.breadcrumbs {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumbs .current {
    color: #ffffff;
    font-weight: 800;
}

/* ================= CABECERA DE SERVICIOS ================= */
.servicios-header-text {
    text-align: center;
    margin-bottom: 50px;
}

.tag-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.servicios-header-text h2 {
    font-size: 40px;
    font-weight: 800;
    color: #e6b33d; 
    line-height: 1.05; 
    margin-bottom: 12px;
}

.servicios-header-text p {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* ================= GRID DETALLE DE SERVICIO ================= */
.servicios-detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

/* ================= GALERÍA IZQUIERDA (COLLAGE) ================= */
.servicios-galeria-grid {
    display: flex;
    gap: 15px;
    width: 100%;
}

.galeria-col-izq {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.galeria-col-izq .img-izq-top {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

.galeria-col-izq .img-izq-bottom {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.galeria-col-der {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.sello-giratorio-wrapper {
    width: 140px;
    height: 140px;
    margin: 15px auto 25px auto;
}

.sello-link {
    display: block;
    width: 100%;
    height: 100%;
    animation: rotarSello 10s linear infinite;
}

@keyframes rotarSello {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.galeria-col-der .img-der-bottom {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

/* ================= INFORMACIÓN DERECHA ================= */
.servicios-info h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.servicios-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.lista-titulo {
    font-size: 18px;
    font-weight: 800;
    margin: 25px 0 15px 0;
    color: var(--color-dark);
}

.servicios-lista {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.servicios-lista li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.servicios-lista li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-asesor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-asesor:hover {
    background-color: #c52a36;
}

/* ================= BANNER ROJO FULL WIDTH ================= */
.banner-servicios-full {
    width: 100%;
    background-color: #a31621;
    background-size: cover;
    background-position: center;
    padding: 80px 0 160px 0;
    color: white;
}

.banner-servicios-texto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.banner-titulo h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 0;
}

.banner-desc p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-align: right;
    opacity: 0.9;
}

/* ================= TARJETAS SUPERPUESTAS ================= */
.tarjetas-servicios-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 80px;
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tarjeta-servicio {
    background: #fdfdfd;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tarjeta-icono {
    width: 60px;
    height: 60px;
    background-color: #fff1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.tarjeta-icono img {
    width: 28px;
    height: 28px;
    transition: all 0.3s;
}

.tarjeta-servicio h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.btn-conoce-mas {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.tarjeta-servicio:hover {
    background-color: #ffb703;
    border-color: #ffb703;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 183, 3, 0.3);
}

.tarjeta-servicio:hover .tarjeta-icono {
    background-color: rgba(255,255,255,0.3);
}

.tarjeta-servicio:hover .tarjeta-icono img {
    filter: brightness(0) invert(1);
}

.tarjeta-servicio:hover h4 {
    color: #fff;
}

.tarjeta-servicio:hover .btn-conoce-mas {
    background-color: #fff;
    border-color: #fff;
    color: #ffb703;
}

/* ================= CLASES DE ANIMACIÓN SCROLL ================= */
.animate-fade-down { opacity: 0; transform: translateY(-40px); transition: all 0.8s ease; }
.animate-fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.animate-fade-right { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.animate-fade-left { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }

.in-view { opacity: 1; transform: translate(0) !important; }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .servicios-detalle-grid {
        grid-template-columns: 1fr;
    }
    .servicios-galeria-grid {
        max-width: 600px;
        margin: 0 auto;
    }
    .banner-servicios-texto {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .banner-desc p {
        text-align: center;
    }
    .tarjetas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-principal {
        height: 100vw; 
        align-items: flex-start; 
    }
    .banner-overlay {
        justify-content: center;
        padding-top: 80px;
    }
    .banner-text-content {
        text-align: center;
        width: 100%;
        padding: 0 5%;
    }
    .servicios-header-text h2 {
        font-size: 28px;
    }
    .servicios-info h2, .banner-titulo h2 {
        font-size: 30px;
    }
    .servicios-lista {
        grid-template-columns: 1fr;
    }
    .tarjetas-grid {
        grid-template-columns: 1fr;
    }
    .tarjetas-servicios-overlap {
        padding: 30px 20px;
    }
    
    /* Versión Móvil: Estructura "Imagen -> Círculo -> Imagen" sin separación */
    .servicios-galeria-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0; /* Sin espacio extra entre contenedores */
    }
    .galeria-col-izq {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .galeria-col-izq .img-izq-top {
        width: 100%;
        height: 320px;
        object-fit: cover;
        border-radius: 12px;
        position: relative;
        z-index: 1;
    }
    .galeria-col-izq .img-izq-bottom {
        display: none !important;
    }
    .galeria-col-der {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .sello-giratorio-wrapper {
        width: 168px; /* 20% más grande */
        height: 168px;
        margin: -80px auto -80px auto; /* Margen negativo mayor para unirlo perfectamente */
        position: relative;
        z-index: 10; /* Encima de las imágenes */
    }
    .galeria-col-der .img-der-bottom {
        width: 100%;
        height: 320px;
        object-fit: cover;
        border-radius: 12px;
        position: relative;
        z-index: 1; /* Debajo del círculo */
    }
}