:root {
    --primary-blue: #1b3a6d;
    --primary-orange: #ff6633;
    --light-gray: #f8f9fa;
    --footer-bg: #ebeeef;
    --text-blue: #1b3a6d;
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.6;
    overflow-x: clip;
}

/* Typography */
h1,
h2,
h3
h4,
h5,
h6 {
    color: var(--primary-blue);
}

.text-blue {
    color: var(--text-blue) !important;
}

.text-orange {
    color: var(--primary-orange) !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

.xx-small {
    font-size: 0.65rem;
}

.x-small {
    font-size: 0.75rem;
}

/* Buttons */
.btn-orange {
    background-color: var(--primary-orange) !important;
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e65c2e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 51, 0.3);
}

/* Top Bar */
.top-bar {
    border-bottom: 1px solid #eee;
}

.top-link {
    text-decoration: none;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-link:hover {
    color: var(--primary-blue);
}

/* Navbar */

.navbar {
    border-bottom: 0px solid;
    /* border-color: var(--primary-orange); */
    border-color: #eee;
}

.navbar-nav {
    gap: 0 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary-blue) !important;
    font-size: 0.85rem;
padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.social-icons a {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-blue) !important;
}

/* Orange Strip */
.orange-strip {
    background-color: var(--primary-orange);
    height: 5px;
    display: none;
}

/* Hero Section — la altura la controla el slider, no el header */
.hero-section {
    position: relative;
    line-height: 0;
    font-size: 0;
}

/* ── HERO SLIDER ─────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(300px, 58vw, 680px);
    min-height: 300px;
    max-height: 80vh;
    overflow: hidden;
    line-height: 0;
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slide.active { display: block; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0) 60%);
    z-index: 2;
    line-height: 1.2;
    font-size: initial;
    flex-direction: column;
    height: fit-content;
}

.hero-slide-content-box {
    margin: clamp(12px, 4vw, 48px);
    max-width: min(90vw, 720px);
    padding: 1%;
}


.hero-slide-subtexto {
    font-size: clamp(1rem, 2.3vw, 2.2rem) !important;
    font-weight: bold;
    margin-bottom: 0;
}

.hero-slide-texto {
    font-size: clamp(1.2rem, 2.8vw, 2.4rem) !important;
    margin-bottom: .35rem;
}

.hero-slide.fade-in { animation: heroFade 0.6s ease-in-out; }
@keyframes heroFade {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

/* Flechas */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-prev:hover, .hero-next:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Teléfono */
.hero-phone {
    font-size: initial;
    line-height: 1.4;
    z-index: 10;
}

@media (max-width: 767px) {
    .hero-slider        { height: clamp(240px, 62vw, 340px); min-height: 240px; }
    .hero-slide-content { padding: 0 0.5rem; background: linear-gradient(to right, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.25) 75%); }
    .hero-slide-content-box { margin: 1rem; max-width: 92vw; }
    .hero-slide-content h1,
    .hero-slide-content h2 { font-size: clamp(1.05rem, 5vw, 1.45rem) !important; }
    .hero-slide-subtexto { font-size: clamp(0.9rem, 4.2vw, 1.15rem) !important; }
    .hero-prev          { left: 8px; }
    .hero-next          { right: 8px; }
    .hero-prev,
    .hero-next          { width: 34px; height: 34px; font-size: 0.85rem; }
    .hero-phone         { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-slider        { height: clamp(340px, 52vw, 500px); }
    .hero-slide-content { padding: 0 1rem; }
    .hero-slide-content-box { margin: 2rem; max-width: 75vw; }
}

.phone-box {
    border: 1px solid #eee;
}

/* Services Cards */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
}

.col-md-2-4 {
    width: 20%;
}

@media (max-width: 992px) {
    .col-md-2-4 {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .col-md-2-4 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-2-4 {
        width: 100%;
    }
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card .image-wrapper {
    height: 180px;
}

.service-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card .card-text {
    color: #666;
    margin-bottom: 0;
    flex: 1;
}

.plus-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

.plus-icon:hover {
    color: var(--primary-orange);
}

/* Services Carousel custom */
.svc-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.svc-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.svc-track {
    display: flex;
    gap: 0;
    will-change: transform;
}

.svc-card-wrap {
    flex-shrink: 0;
    padding: 0 10px 16px;   /* hueco lateral + espacio inferior para sombra */
    box-sizing: border-box;
}

/* Flechas del carrusel de servicios */
.carousel-control-prev-btn,
.carousel-control-next-btn {
    background: none;
    border: none;
    padding: 0 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .2s;
}
.carousel-control-prev-btn:disabled,
.carousel-control-next-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Ícono de flecha (mismos estilos que el original de Bootstrap) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-image: none;
}

.carousel-control-prev-icon::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1rem;
}

.carousel-control-next-icon::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1rem;
}

/* Why Choose Us */
.why-choose-us {
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    min-height: 220px;
}

.why-choose-us .container {
    width: 100%;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quality Map */
.quality-list li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.quality-list i {
    margin-top: 5px;
    font-size: 0.8rem;
}

.map-box {
    background-color: var(--primary-orange);
}

.map-overlay {
    background-color: var(--primary-orange);
}

/* Gestionamos */
.gestion-card {
    height: 420px;
    position: relative;
}

.gestion-overlay {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    background-color: rgba(255, 255, 255, 0.93);
    border-radius: 14px;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.gestion-overlay h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

/* Lista horizontal de servicios con checks */
.gestion-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.1rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.gestion-services li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
}

.gestion-services li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-orange);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.gestion-overlay .btn {
    margin-top: 0.7rem !important;
}

/* News */
.news-item {
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: #f8f9fa;
}


@media (max-width: 768px) {
    .news-img {
        display: block;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 1rem;
    }
    .div-news {
        display: block;
        width: 100% !important;
    }
}

/* CTA */
.work-cta {
    background-color: var(--primary-blue);
}

/* Footer partner banners — una imagen por fila */
.partners-grid {
    width: 100%;
}
.partner-row {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    padding: 4px 8px;
    display: flex;
    align-items: center;
}
.partner-row img {
    width: 100%;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
}

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

.footer-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.grayscale {
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0);
    opacity: 1;
}

.xx-small {
    font-size: 0.6rem;
}

/* Section animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.white {
    color: white;
}
.navbar .dropdown-menu {
    border-top: 3px solid var(--primary-orange) !important;
    border-radius: 0 !important; /* 🔥 totalmente cuadrado */
    padding: 0;
    overflow: hidden;
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--primary-blue) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
    background-color: #fff !important;
    transition: background-color 0.2s, color 0.2s;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--primary-orange) !important;
    color: #fff !important;
}

.ampliacion_informacion_servicios article {
    border: 0.1em solid #ff7333;
    padding: 1em;
    margin: 1em 0.5em;
}

.descripcion_servicios .circle {
    border: 0.2em solid #ff7433;
    border-radius: 5em;
    width: 5.5em;
    height: 5.5em;
    padding: 1.2em 0 0 1.3em;
}

.circle {
    margin: 0 auto;
    background-color: white;
    color: #335ea2;
    border-radius: 1em;
    width: 20px;
}

.menu_lateral_servicios li {
    margin-bottom: 0.5em;
    padding: 0.5em;
    background-color: #ff7433;
    border: 0.1em solid #ff7433;
    list-style: none;
    font-size: 1.1em;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.menu_lateral_servicios li.fondo_azul {
    background-color: #335ea2;
    border-color: #335ea2;
}

.menu_lateral_servicios {
    border-right: 0.2em solid #ff7433;
    padding-right: 2em;
}

.menu_servicios_activo {
    background: #FFF !important;
    color: #FF7433 !important;
}

.menu_lateral_servicios li:hover {
    background-color: #fff;
    color: #ff7433 !important;
}

.ancho_paginas, .entrada_blog, .pagina_centrada, form#comment-form {
    max-width: 1300px;
    margin: 0em auto;
}

.borde_naranja {
    border: 0.2em solid #ff7333;
    padding: 1.5em 1.5em 0.5em 1.5em;
    margin: 1em 0;
}
