/* RESET + GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #F9F9F9;
    color: #2C2C2C;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* LOADER FULLSCREEN */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader svg {
    width: 100%;
    height: 100%;
    animation: rotateLoader 1.4s linear infinite;
}

.loader circle {
    stroke: #F2B705;
    stroke-width: 5;
    fill: none;
    stroke-dasharray: 180;
    stroke-dashoffset: 60;
    animation: dashProgress 1.2s ease-in-out infinite;
}

@keyframes rotateLoader {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dashProgress {
    0% {
        stroke-dashoffset: 180;
    }

    50% {
        stroke-dashoffset: 40;
    }

    100% {
        stroke-dashoffset: 180;
    }
}

/* HEADER STICKY */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all 0.2s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #3A3A3A;
}

.logo span {
    color: #F2B705;
}

.logo .logo-img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #3A3A3A;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #F2B705;
}

.btn-cta-nav {
    background: #F2B705;
    color: #1E1E1E;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-cta-nav:hover {
    background: #e0a800;
    transform: scale(0.98);
}

/* UTILITY */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid #eaeef2;
}

.btn-primary {
    background: #F2B705;
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-decoration: none;
    color: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.grid-2cols,
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.8rem;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.badge {
    color: #F2B705;
    font-weight: 600;
    letter-spacing: -0.2px;
}

footer {
    background: #2A2A2A;
    color: #ccc;
    padding: 3rem 0 2rem;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    border-radius: 60px;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-trigger {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 0.8rem;
        border-radius: 50%;
    }
}

/* formulario */
input,
textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-family: inherit;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    margin-top: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    border-radius: 28px;
    object-fit: cover;
    width: 100%;
    max-height: 450px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos específicos para la nueva sección de especialidades */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.overline {
    color: #F2B705;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.specialty-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid #EDF2F7;
    overflow: hidden;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
    border-color: #F2B70530;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
}

.card-header:hover {
    background: #FEF9E6;
}

.icon-wrapper {
    background: #FEF5E0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
}

.specialty-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    color: #1F2A3A;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 400;
    color: #8A8A8A;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #F2B70520;
    color: #F2B705;
}

.card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    padding: 0 1.5rem;
}

.specialty-card.open .card-content {
    max-height: 600px;
    opacity: 1;
    padding: 0 1.5rem 1.8rem 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.95rem;
    color: #2D3A4B;
    line-height: 1.4;
}

.service-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #F2B705;
    font-weight: bold;
}

.service-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 700px) {
    .service-grid-inner {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 1.2rem;
    }

    .specialty-card h3 {
        font-size: 1.1rem;
    }
}

/* Estilos exclusivos para sección sectores (carrusel) */
.sectores-section {
    background: linear-gradient(145deg, #FCFCFD 0%, #F5F7FA 100%);
    border-radius: 0;
    margin: 0;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    overflow: hidden;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 1.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #F2B705 #E2E8F0;
    padding: 1rem 0.25rem 1.5rem 0.25rem;
    width: 100%;
    scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
    background: #E2E8F0;
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: #F2B705;
    border-radius: 10px;
}

.sector-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 32px;
    padding: 1.8rem;
    scroll-snap-align: start;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid #EFF3F8;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sector-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #F2B70540;
    box-shadow: 0 25px 35px -12px rgba(242, 183, 5, 0.2);
    background: #FFFFFF;
}

.sector-bg-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.2;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    transition: all 0.3s;
    pointer-events: none;
}

.sector-card:hover .sector-bg-icon {
    opacity: 0.35;
    transform: scale(1.1);
}

.sector-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1F2A3A;
}

.sector-card p {
    color: #4A5A6E;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 1.2rem;
}

.sector-tag {
    display: inline-block;
    background: #FEF5E6;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #F2B705;
    letter-spacing: -0.2px;
}

.carousel-btn {
    background: white;
    border: 1px solid #E2E8F0;
    width: 44px;
    height: 44px;
    border-radius: 60px;
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #2D3A4B;
    box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

.carousel-btn:hover {
    background: #F2B705;
    color: white;
    border-color: #F2B705;
    transform: translateY(-50%) scale(1.02);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: #CBD5E1;
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.dot.active {
    background: #F2B705;
    width: 28px;
}

@media (max-width: 780px) {
    .carousel-btn {
        display: none;
    }

    .carousel-track {
        gap: 1rem;
        padding-bottom: 0.8rem;
    }

    .sector-card {
        flex: 0 0 260px;
        padding: 1.4rem;
    }

    .sector-card h3 {
        font-size: 1.2rem;
    }
}

/* Estilos exclusivos para Servicios Complementarios - Mosaico con badges */
.servicios-complementarios {
    background: #FFFFFF;
    position: relative;
    isolation: isolate;
}

.servicios-complementarios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(242, 183, 5, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    position: relative;
    z-index: 2;
}

.mosaic-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    border-radius: 28px;
    padding: 1.8rem;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid #EFF3F8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Efecto glassmorphism sutil en hover */
.mosaic-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #F2B70540;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(242, 183, 5, 0.2);
    transform: translateY(-5px);
}

/* Tarjeta destacada (licitaciones) */
.mosaic-card.featured {
    background: linear-gradient(135deg, #1F2A3A 0%, #2A3A4E 100%);
    border: none;
    color: white;
}

.mosaic-card.featured h3,
.mosaic-card.featured p {
    color: white;
}

.mosaic-card.featured .badge-mosaic {
    background: rgba(242, 183, 5, 0.2);
    color: #F2B705;
    border: 1px solid rgba(242, 183, 5, 0.4);
}

.featured-flag {
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #F2B70520;
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    color: #F2B705;
    backdrop-filter: blur(2px);
}

.mosaic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.mosaic-card:hover .mosaic-icon {
    transform: scale(1.05);
}

.mosaic-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1F2A3A;
}

.mosaic-card p {
    color: #5A6B7C;
    line-height: 1.45;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge-mosaic {
    background: #FEF5E6;
    color: #B87D00;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: all 0.2s;
}

.badge-mosaic:hover {
    background: #F2B705;
    color: #1F2A3A;
    transform: translateY(-2px);
}

/* Animación escalonada al hacer scroll (reveal con delay) */
.mosaic-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s;
}

.mosaic-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive: en móviles apilar normalmente */
@media (max-width: 680px) {
    .mosaic-grid {
        gap: 1rem;
    }

    .mosaic-card {
        padding: 1.3rem;
    }

    .badge-group {
        gap: 0.4rem;
    }
}