/* =================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ================================================================= */
:root {
    /* Colores principales */
    --primary: #1C2A39;          /* Azul Pizarra */
    --primary-dark: #16202C;     /* Versión más oscura */
    --primary-light: #31485F;    /* Azul pizarra claro */
    /* Secundarios */
    /*--secondary: #8A99AD; */       /* Plata / Acero */
    --secondary: #8A99AD;        /* Plata / Acero */
    --accent: #3B82F6;           /* Azul CTA */
    /* Fondos */
    --light: #F4F6F8;            /* Blanco Hielo */
    --white: #FFFFFF;
    /* Tipografía */
    --text: #2D3748;             /* Gris Grafito */
    --text-light: #5E6B7A;
    /* Bordes */
    --border: #DCE3EA;
    /* Sombras */
    --shadow: 0 18px 45px rgba(28,42,57,.08);
    --radius: 16px;
}

body {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;

/* =================================================================
       OPCIONES DE TEXTURA CSS NATIVO (Descomenta solo una para probar)
       ================================================================= */

    /* 1. PUNTOS SUTILES (Polka Dots) */
    /* background-image: radial-gradient(rgba(29, 42, 77, 0.08) 1px, transparent 1px); */
    /* background-size: 24px 24px; */

    /* 2. PUNTOS TIPO MATriz / GRID DE PUNTOS */
    /* background-image: radial-gradient(var(--secondary) 0.75px, transparent 0.75px), radial-gradient(var(--secondary) 0.75px, var(--light) 0.75px); */
    /* background-size: 30px 30px; */
    /* background-position: 0 0, 15px 15px; */

    /* 3. CUADRÍCULA / LÍNEAS TIPO PLANO (Grid) */
     background-image: linear-gradient(to right, rgba(29, 42, 77, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(29, 42, 77, 0.04) 1px, transparent 1px);
     background-size: 32px 32px;

    /* 4. CUADRÍCULA TIPO TELA / ESACESA SUTIL (Checkered) */
    /* background-image: linear-gradient(45deg, rgba(29, 42, 77, 0.02) 25%, transparent 25%), linear-gradient(-45deg, rgba(29, 42, 77, 0.02) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(29, 42, 77, 0.02) 75%), linear-gradient(-45deg, transparent 75%, rgba(29, 42, 77, 0.02) 75%); */
    /* background-size: 40px 40px; */
    /* background-position: 0 0, 0 20px, 20px -20px, -20px 0px; */

    /* 5. LÍNEAS DIAGONALES FINAS (Stripes) */
    /* background-image: repeating-linear-gradient(45deg, rgba(29, 42, 77, 0.025) 0, rgba(29, 42, 77, 0.025) 1px, transparent 0, transparent 20px); */

    /* 6. LÍNEAS CRUZADAS / EFECTO PAPEL MILIMETRADO */
    /* background-image: linear-gradient(to right, rgba(29, 42, 77, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(29, 42, 77, 0.03) 1px, transparent 1px), linear-gradient(to right, rgba(29, 42, 77, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(29, 42, 77, 0.06) 1px, transparent 1px); */
    /* background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px; */

    /* 7. EFECTO ONDAS / LÍNEAS CURVAS (Wavy Gradient) */
    /* background-image: radial-gradient(circle at 100% 50%, transparent 20%, rgba(29, 42, 77, 0.03) 21%, rgba(29, 42, 77, 0.03) 34%, transparent 35%, transparent), radial-gradient(circle at 0% 50%, transparent 20%, rgba(29, 42, 77, 0.03) 21%, rgba(29, 42, 77, 0.03) 34%, transparent 35%, transparent); */
    /* background-size: 60px 60px; */

    /* 8. EFECTO DEGRADADO MULTICAPA SUTIL (Soft Glow / Mesh abstracto) */
    /* background-image: radial-gradient(at 0% 0%, rgba(200, 169, 90, 0.06) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(29, 42, 77, 0.06) 0px, transparent 50%); */
}


/* Ajuste para que el menú sticky no tape el inicio de las secciones al hacer clic en los enlaces */
html {
    scroll-padding-top: 100px; /* Ajusta este valor según la altura real de tu navbar (80px del logo + padding) */
}

/* Espacio dinámico para el contenido principal si lo necesitas */
main {
    padding-top: 1rem;
}


/* =================================================================
   2. TOPBAR
   ================================================================= */
.topbar {
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .9rem;
}

.topbar address {
    margin-bottom: 0;
}

.topbar,
.topbar .text-muted,
.topbar .text-secondary,
.topbar .text-dark {
    color: rgba(255, 255, 255, .92) !important;
}

.topbar strong {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .5px;
}

.topbar a {
    color: rgba(255, 255, 255, .92) !important;
    text-decoration: none;
    transition: .25s;
}

.topbar a:hover {
    color: var(--accent) !important;
}

.topbar i {
    color: var(--accent) !important;
}

/* Contenedor de redes sociales con espacio cómodo entre íconos */
.topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem; /* <--- Esto separa de forma uniforme cada ícono de red social */
}

.topbar-social a {
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.topbar-social a:hover {
    transform: translateY(-2px);
    color: var(--accent) !important;
}

/* =================================================================
   3. HERO SECTION
   ================================================================= */

.hero-wrapper{
    position:relative;
    margin-bottom:5rem;
}

/*--------------------------------------------------------------
# Banner
--------------------------------------------------------------*/

.hero-section{
    position:relative;
    display:flex;
    align-items:center;
    min-height:620px;
    overflow:hidden;
    border-radius:var(--radius);
    background-size:cover;
    background-repeat:no-repeat;
    background-position:right center;
    box-shadow:var(--shadow);
}

.hero-gradient-left{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;

    background:linear-gradient(
        90deg,
        rgba(244,246,248,.97) 0%,
        rgba(255,255,255,.96) 30%,
        rgba(255,255,255,.90) 48%,
        rgba(255,255,255,.72) 62%,
        rgba(255,255,255,.42) 76%,
        rgba(255,255,255,.12) 90%,
        rgba(255,255,255,0) 100%
    );
}

/*--------------------------------------------------------------
# Contenido
--------------------------------------------------------------*/

.hero-title{
    color:var(--primary);
    font-size:3.6rem;
    font-weight:900;
    line-height:1.08;
    letter-spacing:-0.04em;
    max-width:620px;
    margin-bottom:1.5rem;
}

.hero-description{
    max-width:620px;
    color:var(--text-light);
    font-size:1.18rem;
    font-weight:500;
    line-height:1.75;
    margin-bottom:2rem;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:1rem;
}

/*--------------------------------------------------------------
# Botones
--------------------------------------------------------------*/

.hero-actions .btn{
    transition:.25s ease;
}

.btn-primary-custom{
    padding:.9rem 2rem;
    font-weight:700;
    border-radius:.75rem;
    border:2px solid var(--primary);
    background:var(--primary);
    color:#fff;
    font-weight:600;
}

.btn-primary-custom:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
    color:#fff;
    transform:translateY(-2px);
}

.btn-outline-primary-custom{
    padding:.9rem 2rem;
    border-radius:.75rem;
    border:2px solid var(--primary);
    background:#fff;
    color:var(--primary);
    font-weight:600;
}

.btn-outline-primary-custom:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-2px);
}

/*--------------------------------------------------------------
# Barra inferior
--------------------------------------------------------------*/

.hero-badges-bar{
    position:relative;
    z-index:20;
    margin-top:-42px;
    padding:2rem 2.5rem;
    background:#fff;
    border-radius:18px;
    box-shadow:
        0 20px 45px rgba(15,23,42,.08),
        0 6px 15px rgba(15,23,42,.05);
}

/*--------------------------------------------------------------
# Badge
--------------------------------------------------------------*/

.hero-badge{
    display:flex;
    align-items:flex-start;
    gap:1rem;
    height:100%;
    transition:all .25s ease;
}

.hero-badge:hover{
    transform:translateY(-4px);
}

.hero-badge-icon{
    flex-shrink:0;
    width:50px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.hero-badge-icon i{
    font-size:2rem;
    line-height:1;
    color:var(--primary);
    transition:.25s ease;
}

.hero-badge:hover .hero-badge-icon i{
    transform:scale(1.08);
    color:var(--primary-dark);
}

.hero-badge-content{
    flex:1;
}

.hero-badge-title{
    margin:0 0 .35rem;
    color:var(--primary);
    font-size:1.05rem;
    font-weight:800;
}

.hero-badge-text{
    margin:0;
    color:#667085;
    font-size:.96rem;
    font-weight:600;
    line-height:1.6;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width:991.98px){

    .hero-section{
        min-height:560px;
        background-position:center;
    }

    .hero-gradient-left{
        background:rgba(255,255,255,.94);
    }

    .hero-title{
        font-size:2.4rem;
    }

    .hero-description{
        font-size:1rem;
    }

    .hero-badges-bar{
        margin-top:2rem;
        padding:1.75rem;
    }

}

@media (max-width:767.98px){

    .hero-section{
        min-height:500px;
    }

    .hero-title{
        font-size:2rem;
    }

    .hero-description{
        font-size:.98rem;
    }

    .hero-badge{
        gap:.85rem;
    }

    .hero-badge-icon{
        width:42px;
    }

    .hero-badge-icon i{
        font-size:1.6rem;
    }

}

/* =================================================================
   4. SERVICES
   ================================================================= */

.services-section {
    padding: 5rem 0;
}

/* Encabezado */
.services-header {
    max-width: 760px;
    margin: 0 auto 4rem;
}

.services-subtitle {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.services-title {
    margin: 0;
    color: var(--primary);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}

/* Card */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 10px 30px rgba(20,40,70,.05);
}

.service-card:hover {
    transform:translateY(-4px);
    /* border-color: rgba(29, 42, 77, .12); */
    box-shadow: 0 18px 42px rgba(20,40,70,.10);
}

/* Imagen */
.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Icono */
.service-icon{
    position:absolute;
    left:1px;
    bottom:150px;
    width:72px;
    height:72px;
    border-radius:50%;
    background:#17335f;
    border:6px solid #fff;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:1.9rem;
    box-shadow:
        0 12px 28px rgba(20,40,70,.18);

}

.service-icon i {
    font-size: 1.3rem;
    line-height: 1;
}

.service-card:hover .service-icon {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contenido */
.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2.25rem 1.6rem 1.6rem;
}

.service-title {
    margin: .5rem 0 .9rem;
    color: var(--primary);
    font-size:1.45rem;
    font-weight:800;
    line-height:1.25;
    margin-bottom:1rem;
}

.service-description {
    flex: 1;
    margin: 0;
    color: var(--text-light);
    font-size: .98rem;
    font-weight: 500;
    line-height:1.8;
}

/* Footer */
.service-footer {
    margin-top: 1.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    transition: all .25s ease;
    border-bottom:2px solid transparent;
}

.service-link i {
    transition: transform .25s ease;
}

.service-link:hover {
    border-color:var(--primary);
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Botón inferior */
.services-action {
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .services-section {
        padding: 4rem 0;
    }

    .services-header {
        margin-bottom: 3rem;
    }

    .service-image {
        height: 210px;
    }
}

@media (max-width: 767.98px) {
    .services-title {
        font-size: 2rem;
    }

    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 2rem 1.35rem 1.35rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

/*EL ICONO RESPONSIVO  */
    .service-icon {
        left: 10px;
        bottom: 130px;
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        border-width: 4px;
    }

    .service-icon i {
        font-size: 1.1rem;
    }



}


/* =================================================================
   5. ABOUT
   ================================================================= */

.about-section{
    padding:6rem 0;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(28,42,57,.05),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(37,99,235,.06),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );

    position:relative;
}

/*--------------------------------------------------------------
# Contenido
--------------------------------------------------------------*/

.about-content{
    margin-bottom:4rem;
}

.about-subtitle{
    display:inline-block;
    margin-bottom:1rem;
    color:var(--primary);
    font-size:.82rem;
    font-weight:800;
    letter-spacing:.22em;
    text-transform:uppercase;
}

.about-title{
    margin-bottom:1.75rem;
    color:var(--primary);
    font-size:3rem;
    font-weight:900;
    line-height:1.12;
    max-width:520px;
}

.about-description{
    margin-bottom:1.5rem;
    color:var(--text-light);
    font-size:1.06rem;
    line-height:1.9;
    font-weight:500;
    max-width:560px;
}

.about-actions{
    margin-top:2.5rem;
}

/*--------------------------------------------------------------
# Imagen
--------------------------------------------------------------*/

.about-image{
    overflow:hidden;
    border-radius:22px;
    box-shadow:
        0 18px 45px rgba(15,23,42,.08);
}

.about-image img{
    width:100%;
    height:100%;
    min-height:520px;
    object-fit:cover;
    transition:transform .7s ease;
}

.about-image:hover img{
    transform:scale(1.04);
}

/*--------------------------------------------------------------
# Barra estadísticas
--------------------------------------------------------------*/

.about-stats{
    overflow:hidden;
    background:var(--primary);
    border-radius:22px;
    box-shadow:
        0 18px 45px rgba(20,40,70,.15);
}

.about-stat{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:2rem;
    height:100%;
    color:#fff;
    position:relative;
}

.about-stat::after{
    content:"";
    position:absolute;
    right:0;
    top:25%;
    width:1px;
    height:50%;
    background:rgba(255,255,255,.15);
}

.about-stat:last-child::after{
    display:none;
}

.about-stat-icon{
    width:56px;
    height:56px;
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:14px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:1.55rem;
    transition:.3s ease;
}

.about-stat:hover .about-stat-icon{
    background:rgba(255,255,255,.16);
    transform:translateY(-3px);
}

.about-stat-number{
    font-size:2rem;
    font-weight:900;
    line-height:1;
    margin-bottom:.35rem;
}

.about-stat-text{
    color:rgba(255,255,255,.82);
    font-size:.95rem;
    line-height:1.6;
    font-weight:500;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width:991.98px){

    .about-section{
        padding:5rem 0;
    }

    .about-title{
        font-size:2.5rem;
        max-width:100%;
    }

    .about-image img{
        min-height:420px;
    }

    .about-stat{
        padding:1.75rem;
    }

    .about-stat::after{
        display:none;
    }

}

@media (max-width:767.98px){
    .about-title{
        font-size:2rem;
    }

    .about-description{
        font-size:1rem;
    }

    .about-image img{
        min-height:320px;
    }

    .about-stat{
        flex-direction:column;
        text-align:center;
        gap:.85rem;
    }

    .about-stat-number{
        font-size:1.75rem;
    }

}

/* ==========================================================
   PARTNERS / CLIENTES A TODO COLOR Y GRAN PRESENCIA
   ========================================================== */
.partners-section {
    padding: 4rem 0 6rem 0 !important; /* Respiro superior e inferior amplio */
    margin-bottom: 4rem !important;    /* Evita que se pegue con la sección de abajo */
    background:
        radial-gradient(circle at 50% 0%, rgba(28,42,57,.04), transparent 60%),
        linear-gradient(180deg,#F4F6F8 0%,#FFFFFF 100%);
    border-top: 1px solid rgba(29, 42, 77, 0.06);
    border-bottom: 1px solid rgba(29, 42, 77, 0.06);
}

.partners-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partners-subtitle {
    display: inline-block;
    color: var(--accent);
    background: rgba(200, 169, 90, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .2em;
    margin-bottom: 1rem;
}

.partners-title {
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.partners-description {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0;
}

/* Tarjetas con presencia y dinamismo a color */
.partner-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(29, 42, 77, 0.04);
    transition: all 0.35s ease;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(29, 42, 77, 0.12);
}

.partner-link-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.5rem;
    height: 100%;
    text-decoration: none;
    text-align: center;
}

/* Contenedor de imagen más alto para que luzcan grandes */
.partner-img-container {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Imágenes a color real, con buen tamaño y sin filtros de escala de grises */
.partner-card img {
    max-width: 100%;
    max-height: 100px; /* <--- Logos mucho más grandes e imponentes */
    object-fit: contain;
    filter: none !important; /* Cero blanco y negro */
    opacity: 1 !important;    /* Totalmente vivas */
    transition: transform 0.35s ease;
}

.partner-card:hover img {
    transform: scale(1.08); /* Pequeño zoom alegre al pasar el mouse */
}

.partner-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.partner-card:hover .partner-name {
    color: var(--primary);
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact-section {
    padding: 7rem 0;
    margin-top: 5rem;
    background: linear-gradient(rgba(244,246,248,.95), rgba(255, 255, 255, .92)), url('/assets/imgs/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 32px; /* Puedes ajustar los píxeles a tu gusto (ej. 24px, 32px) */
    overflow: hidden;
}

.contact-subtitle {
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .22em;
}

.contact-title {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 900;
}

.contact-description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #64748b;
}

.contact-list a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, .06);
    font-size: 1.2rem;
}

.contact-icon.whatsapp {
    color: #16a34a;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
    transition: .3s;
}

.contact-socials a:hover {
    transform: translateY(-4px);
}

/* FORM */
.contact-form-card {
    padding: 3rem;
    background: rgba(255, 255, 255, .9);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .12);
    backdrop-filter: blur(12px);
}

.contact-label {
    display: block;
    margin-bottom: .5rem;
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
}

.contact-input {
    width: 100%;
    padding: .9rem 1rem;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.contact-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

@media (max-width: 767px) {
    .contact-form-card {
        padding: 1.5rem;
    }
    .contact-title {
        font-size: 2rem;
    }
}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer{
    background:
        radial-gradient(
            circle at top right,
            rgba(200,169,90,.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--primary-dark),
            #0f172a
        );
    color:#fff;
}

.footer-title{
    color:#fff;
    font-size:.85rem;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
    margin-bottom:1.8rem;
}

.footer-title::after{
    content:"";
    display:block;
    width:35px;
    height:2px;
    background: var(--primary);
    margin-top:.7rem;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li{
    margin-bottom:.8rem;
}

.footer-links a{
    color:rgba(255,255,255,.65);
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--accent);
    padding-left:5px;
}

.footer-icons,
.footer-social{
    display:flex;
    gap:.8rem;
}

.footer-icons a,
.footer-social a{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    transition:.3s;
}

.footer-icons a:hover,
.footer-social a:hover{
    background:var(--accent);
    color:var(--primary-dark);
    transform:translateY(-4px);
}

.footer-bottom{
    margin-top:4rem;
    padding-top:1.5rem;
    border-top:
        1px solid rgba(255,255,255,.12);
    display:flex;
    justify-content:space-between;
    gap:1rem;
    color:rgba(255,255,255,.55);
    font-size:.85rem;

}

.footer-bottom a{
    color:#fff;
    text-decoration:none;
}

@media(max-width:767px){

.footer-bottom{
    flex-direction:column;
    text-align:center;
}
}

/* =================================================_
   ESTILOS PARA LA VISTA DE DETALLE DE SERVICIOS
   ================================================= */

.single-service-section {
    color: var(--text);
}

/* =================================================_
   BREADCRUMB Y CABECERA DE SERVICIO MEJORADA
   ================================================= */
.single-service-header {
    background-color: var(--white);
    border-color: var(--border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    margin-top: -1.5rem; /* Opcional: si quieres que suba un poco hacia el navbar */
    margin-bottom: 2.5rem !important;
}

.single-service-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.92rem;
}

.single-service-breadcrumb .breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.single-service-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.single-service-breadcrumb .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Separador personalizado del breadcrumb de Bootstrap */
.single-service-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary);
    content: "›";
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
}

/* Imagen Destacada Completa (Sin recortes) */
.single-service-image-wrapper {
    width: 100%;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.single-service-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    border-radius: calc(var(--radius) - 4px);
    transition: transform 0.4s ease;
}

.single-service-image-wrapper:hover .single-service-img {
    transform: scale(1.01);
}

/* Contenido Principal y Títulos usando --primary */
.single-service-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary); /* <--- Aquí usa tu variable primary */
    line-height: 1.25;
    margin-bottom: 1rem;
}

.single-service-lead {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.6;
    font-weight: 500;
}

/* Estilos para el contenido enriquecido del servicio */
.single-service-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.single-service-body h2,
.single-service-body h3,
.single-service-body h4 {
    color: var(--primary); /* <--- Títulos internos también con primary */
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.single-service-body ul,
.single-service-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-service-body li {
    margin-bottom: 0.5rem;
}

.single-service-body p {
    margin-bottom: 1.25rem;
}

/* Caja de Llamada a la Acción (CTA) */
.single-service-cta {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 2.5rem !important;
    box-shadow: var(--shadow);
}

.single-service-cta h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary); /* <--- Título del CTA con primary */
}

.single-service-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Sidebar y Tarjetas */
.single-service-card {
    background: var(--white);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    position: sticky;
    top: 100px;
}

.single-service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary); /* <--- Título del sidebar con primary */
    border-color: var(--border) !important;
}

.single-service-list li:not(:last-child) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem !important;
}

.single-service-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.single-service-link i {
    color: var(--accent); /* Un toque de color acento en la flechita, o cámbialo a var(--primary) si prefieres */
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.single-service-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.single-service-link:hover i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .single-service-title {
        font-size: 1.85rem;
    }

    .single-service-card {
        position: static;
        margin-top: 2rem;
    }
}


/* =================================================_
   ESTILOS PARA LA VISTA DE LISTADO DE SERVICIOS
   ================================================= */

/* Tarjetas del listado */
.services-list-card {
    background: var(--white);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 42, 77, 0.12) !important;
}

/* Contenedor de la imagen en la tarjeta */
.services-list-img-wrapper {
    height: 220px;
    overflow: hidden;
    background-color: var(--light);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.services-list-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.services-list-card:hover .services-list-img {
    transform: scale(1.05);
}

/* Textos dentro de la tarjeta */
.services-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.services-list-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Botón personalizado para el listado */
.services-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.services-list-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(3px);
}

.services-list-btn i {
    transition: transform 0.2s ease;
}

.services-list-btn:hover i {
    transform: translateX(4px);
}
