:root {
    /* Colores principales */
    --ocean: rgb(17 34 64);
    --graticule-color: rgba(255, 255, 255, 0.06);
    --graticule-dash: 6 6;
    --accent: #DC5626;
    --card-bg: rgba(8, 18, 36, 0.6);
    --color-dark-blue: #0a192f;
    --color-darkest-blue: #040c18;
    --color-main-blue: #4c8bff;
    --color-accent-orange: #ff5722;
    --color-background: var(--color-dark-blue);
    --color-light-gray: #112240;
    --color-white: #e6f1ff;
    --color-dark-text: #e6f1ff;
    --color-light-text: #adb9c7;
    --color-divider: rgba(255, 255, 255, 0.15);
    --color-whatsapp: #25d366;
    --color-back-to-top: #adb9c7;
    --main-header-height: 85px;
}

/* OCULTAR BARRA DE DESPLAZAMIENTO */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    -ms-overflow-style: none;
}

/* ESTILOS BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-image: radial-gradient(circle at center,
            var(--color-darkest-blue) 0%,
            var(--color-darkest-blue) 30%,
            var(--color-dark-blue) 100%);
    background-attachment: fixed;
    color: var(--color-dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-link {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-weight: 900;
    font-size: 3.5rem;
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

h3 {
    font-weight: 600;
    font-size: 1.8rem;
}

a {
    text-decoration: none;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-read-more:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

/* HEADER Y NAVEGACIÓN */
.boton-contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    background-color: rgba(220, 86, 39, 1);
    color: white;
    cursor: pointer;
    padding: 6px 12px;
    gap: 5px;
    border-radius: 90px;
    transition: background-color 0.3s;
    border: none;
}

.boton-masinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    margin-bottom: 10px;
    background-color: rgba(220, 86, 39, 1);
    color: white;
    cursor: pointer;
    padding: 6px 12px;
    gap: 5px;
    border-radius: 90px;
    transition: background-color 0.3s;
    border: none;
}

.boton-contacto-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    margin: 30px 0 0 0;
    background-color: rgba(220, 86, 39, 1);
    color: white;
    cursor: pointer;
    padding: 6px 12px;
    gap: 5px;
    border-radius: 90px;
    transition: background-color 0.3s;
    width: fit-content;
    border: none;
    align-self: flex-start;
    margin-left: 20%;
}

.main-header {
    background-image: radial-gradient(circle at center, var(--color-darkest-blue) 0%, var(--color-darkest-blue) 30%, var(--color-dark-blue) 100%);
    background-color: transparent;
    color: var(--color-white);
    padding: 10px 15px 1px 15px;
    height: 85px;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
}

.logo {
    height: 65px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav a {
    color: var(--color-light-text);
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, border-bottom 0.3s, color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent-orange);
}

.btn-contact-header {
    background-color: transparent;
    color: var(--color-accent-orange) !important;
    border: 3px solid var(--color-accent-orange);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.btn-contact-header:hover {
    background-color: var(--color-accent-orange);
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

/* SECCIONES PRINCIPALES */
main {
    padding-bottom: 50px;
}

.content-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    background-color: transparent;
    overflow-x: hidden;
}

.section-title {
    color: var(--color-white);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
    height: 650px;
    background-image: linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%)), url(../img/VIDEO_INICIO.gif);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    align-items: center;
}

.hero-logo-large {
    max-width: 700px;
    width: 90%;
    height: auto;
}

.hero-subtitle {
    max-width: 400px;
    width: 80%;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--color-light-text);
    max-width: 800px;
}

.btn-hero-contact {
    background-color: var(--color-accent-orange);
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 30px;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.btn-hero-contact:hover {
    background-color: #e64a19;
}

/* SECCIÓN SOPORTE Y SOLUCIONES */
.solutions-section {
    padding: 80px 20px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-text h2 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.solutions-text p {
    font-size: 1.15rem;
    color: var(--color-light-text);
    line-height: 1.8;
}

.solutions-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* CARRUSELES */
.contenedor-carrusel-h,
.contenedor-carrusel-s {
    width: 100%;
    max-width: 1300px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: flex;
}

.carrusel-s-item,
.carrusel-h-item {
    min-width: 150px;
    max-height: 74px;
    margin: 0 13px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carrusel-s-item img,
.carrusel-h-item img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.elementos,
.elementos-s {
    display: flex;
    transition: transform 1s ease;
}

/* CARRUSEL DE PROYECTOS */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.carousel-card {
    width: 670px;
    height: 320px;
    min-width: 670px;
    max-width: 670px;
    min-height: 320px;
    max-height: 320px;
    background: rgb(17 34 64);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    position: relative;
    flex-shrink: 0;
}

.card-icon {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.card-description {
    color: rgb(173 185 199);
    font-size: 0.95rem;
    padding: 0 10px;
    text-align: justify;
    line-height: 1.5;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.carousel-wrapper:hover .carousel-button {
    opacity: 1;
    pointer-events: all;
}

.carousel-button:hover {
    background: rgba(220, 86, 39);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 30px;
}

.carousel-button.next {
    right: 30px;
}

/* ALIADO ESTRATÉGICO */
.strategic-ally-section {
    padding: 80px 20px;
}

.strategic-ally-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.strategic-ally-image-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    padding: 20px 0 0 0;
    position: relative;
}

.strategic-ally-img-top {
    grid-column: 1 / span 2;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.strategic-ally-img-bottom-left {
    position: absolute;
    top: 55%;
    left: -10%;
    width: 60%;
    height: 250px;
    z-index: 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.strategic-ally-img-bottom-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.strategic-ally-text h2 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 25px;
}

.strategic-ally-text p {
    font-size: 1.15rem;
    color: var(--color-light-text);
    line-height: 1.8;
}

/* NUESTROS SERVICIOS - FLIP CARDS */
.service-cards-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    grid-auto-rows: 1fr;
}

.service-card-modern {
    perspective: 1000px;
    height: 100%;
    min-height: 450px;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card-modern:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 0;
}

.flip-card-front {
    background-color: var(--color-light-gray);
}

.flip-card-front .service-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.flip-card-front h4,
.flip-card-front h3 {
    color: rgb(255 255 255);
    margin: 15px 0 10px 0;
    padding: 0 15px;
    flex-grow: 1;
}

.flip-card-back {
    background-color: rgba(3, 31, 60, 0.85);
    color: var(--color-white);
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.flip-card-back .back-title,
.flip-card-back .back-text {
    width: 100%;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0;
}

.flip-card-back .back-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.flip-card-back .back-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.flip-card-back .boton-masinfo {
    margin-top: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/* BANNER ESTÁTICO */
.projects-challenge-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('imagenes/projects_challenge_bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
    margin-top: 80px;
    margin-bottom: 80px;
    border-radius: 10px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
}

.projects-challenge-content h2 {
    font-size: 3.5rem;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.static-banner-section {
    position: relative;
    padding: 0;
    height: 600px;
    overflow: hidden;
}

.static-banner-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.static-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.static-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.static-banner-overlay h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.static-banner-overlay p {
    font-size: 1.5rem;
    max-width: 70%;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* NUESTRO IMPACTO */
.impact-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

.impact-item {
    background-color: var(--color-light-gray);
    padding: 30px 20px;
    border-radius: 8px;
    flex: 1;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.impact-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-accent-light);
    margin: 0 0 10px 0;
}

.impact-description {
    font-size: 1rem;
    color: var(--color-light-text);
}

/* NUESTRAS SOLUCIONES */
#soluciones-detalle .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative !important;
    text-align: center;
}

#soluciones-detalle .section-title::after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #FF6600 !important;
    margin: 10px auto 50px auto !important;
}

.subtitle-solution {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--color-white);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 15px;
}

.solution-card {
    border-radius: 10px;
    padding: 35px;
    color: var(--color-white);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(0 0 0 / 40%);
    backdrop-filter: blur(2px);
    z-index: 1;
    transition: background-color 0.3s;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-main-orange);
}

.card-data {
    background-image: url('../img/PAGINA/analitica.png');
}

.card-cloud {
    background-image: url('../img/PAGINA/cloud.png');
}

.card-ai {
    background-image: url('../img/SERVICIOS/artificial-intelligence-binary-digital-art-glowing-wallpaper-preview.jpg');
}

.card-quality {
    background-image: url('../img/SERVICIOS/dataquality.jpg');
}

.solution-card * {
    position: relative;
    z-index: 2;
}

.solution-card h3 {
    color: var(--color-white);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.solution-card p {
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1rem;
    color: var(--color-white);
    text-align: left;
}

.solution-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-white);
    text-align: left;
    padding-left: 20px;
}

.solution-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.solution-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-main-orange);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
}

/* ÚLTIMOS PROYECTOS */
.latest-projects-section {
    padding-top: 80px;
    position: relative;
    background-color: var(--color-dark-background);
    margin: 50px auto;
    padding: 60px 20px;
}

.latest-projects-section .section-title {
    z-index: 2;
    position: relative;
    color: var(--color-white);
    margin-bottom: 50px;
}

.projects-carousel {
    background-color: transparent !important;
    box-shadow: none !important;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--color-light-gray);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 15px;
}

.project-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(242, 84, 31, 0.5);
}

.project-card .project-thumbnail {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto 20px auto;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
    max-width: 150px !important;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding: 0;
}

.project-card p {
    color: var(--color-light-text);
    font-size: 0.95rem;
    padding: 0 10px;
    text-align: justify;
    line-height: 1.5;
}

.projects-carousel .carousel-slide {
    flex-shrink: 0;
    width: calc(100% / 3 - 50px);
    padding: 10px 13px;
    box-sizing: content-box;
    min-height: 300px;
    display: flex;
    align-items: stretch;
}

/* MAPA INTERACTIVO */
.wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 16px;
}

.map-card {
    background: rgb(17 34 64);
    border-radius: 14px;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 520;
    height: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.map-stage {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

svg {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100%;
}

.country {
    fill: #14538F;
    stroke: #0c305e;
    stroke-width: 0.4;
    transition: fill 0.18s;
}

.country:hover {
    fill: #00AADB;
}

.graticule {
    fill: none;
    stroke: var(--graticule-color);
    stroke-width: 0.7;
    stroke-dasharray: var(--graticule-dash);
}

.marker {
    cursor: pointer;
}

.pulse {
    fill: var(--accent);
    opacity: 0.95;
}

.pin {
    fill: white;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.country.highlight {
    fill: #00AADB !important;
    stroke: #00AADB !important;
    opacity: 1;
}

.pulse-circle {
    animation: pulseAnim 2000ms infinite ease-out;
}

@keyframes pulseAnim {
    0% {
        r: 5;
        opacity: 0.9
    }
    50% {
        r: 18;
        opacity: 0.12
    }
    100% {
        r: 5;
        opacity: 0.9
    }
}

.tooltip {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 6px 20px rgba(3, 12, 30, 0.6);
    display: none;
    color: #eaf6ff;
    pointer-events: none;
    z-index: 10;
    max-width: 240px;
    font-size: 13px;
    left: 550px;
    top: 300px;
}

.tooltip h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--accent);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
    padding: 16px;
}

.modal {
    width: 420px;
    max-width: 95%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7);
    color: #eaf6ff;
}

.modal h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--accent);
}

.modal p {
    margin: 6px 0 0;
    font-size: 14px;
    white-space: pre-line;
}

.close-btn {
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    color: #dbeeff;
    cursor: pointer;
    width: 100%;
}

/* CARRERAS */
.careers-section {
    color: #ffffff;
    padding: 80px 5%;
    text-align: center;
}

.careers-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #c9c5e6;
}

.careers-motto {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-weight: 300;
}

.careers-contact {
    font-size: 1.4rem;
    margin-bottom: 50px;
    font-weight: 400;
}

.careers-contact a {
    color: #FF6600;
    text-decoration: none;
    font-weight: 600;
}

.careers-roles-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.roles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roles-list li {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.roles-list li .fa-check-square {
    color: #FF6600;
    margin-right: 15px;
    font-size: 1.5rem;
}

/* FOOTER */
.main-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-light-text);
    padding: 60px 20px 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-divider);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-divider);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-light-text);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-accent-orange);
}

.footer-logo {
    margin-bottom: 20px;
    height: 60px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--color-light-text);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* BOTONES FLOTANTES */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 120px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--color-back-to-top);
    color: var(--color-dark-blue);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

#backToTopBtn:hover {
    background-color: #929fa7;
    transform: scale(1.1);
}

/* ANCLAJES */
[id] {
    scroll-margin-top: calc(var(--main-header-height) + 8px);
}

/* ============================================
   MEDIA QUERIES RESPONSIVE
   ============================================ */

@media (min-width: 1200px) {
    .service-cards-modern {
        grid-template-columns: repeat(4, 1fr);
    }
    
    #soluciones-detalle .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1400px) {
    #soluciones-detalle .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        height: 500px;
    }

    .hero-logo-large {
        max-width: 500px;
    }

    .hero-subtitle {
        max-width: 300px;
    }

    .carousel-card {
        width: 550px;
        min-width: 550px;
        height: 300px;
        padding: 30px 20px;
    }

    .solutions-grid,
    .strategic-ally-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .solutions-image,
    .strategic-ally-text {
        order: -1;
    }

    .strategic-ally-image-group {
        order: -1;
        padding: 0;
        position: static;
    }

    .strategic-ally-img-top {
        height: 300px;
    }

    .strategic-ally-img-bottom-left {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        height: 150px;
        grid-column: 1 / span 1;
        grid-row: 2 / 3;
        margin-left: 0;
    }

    .strategic-ally-img-bottom-right {
        grid-column: 1 / span 1;
        grid-row: 3 / 4;
        height: 150px;
        margin-left: 0;
    }

    .projects-carousel .carousel-slide {
        min-height: 470px;
        width: calc(100% / 2 - 50px);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero-section {
        height: 400px;
        padding: 15px;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        gap: 15px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-logo-large {
        max-width: 350px;
    }

    .hero-subtitle {
        max-width: 250px;
        margin: 10px auto 0;
    }

    .boton-contacto-sub {
        margin: 20px auto 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo {
        height: 50px;
    }

    .boton-contacto {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-dark-blue);
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        z-index: 90;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: left;
        padding: 20px;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--color-divider);
    }

    .carousel-wrapper {
        padding: 0 15px;
    }

    .carousel-card {
        width: 100%;
        min-width: 280px;
        max-width: 450px;
        height: auto;
        min-height: 280px;
        padding: 25px 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-button.prev {
        left: 5px;
    }

    .carousel-button.next {
        right: 5px;
    }

    .map-card {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .wrap {
        margin: 15px auto;
        padding: 10px;
    }

    .content-section {
        margin: 40px auto;
        padding: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .solutions-text,
    .solutions-image,
    .strategic-ally-text,
    .strategic-ally-image-group {
        text-align: center;
    }

    .solutions-text h2,
    .strategic-ally-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .solutions-text p,
    .strategic-ally-text p {
        font-size: 1rem;
        text-align: center;
    }

    .strategic-ally-image-group {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .strategic-ally-img-top {
        grid-column: 1 / span 1;
        height: 250px;
    }

    .strategic-ally-img-bottom-left,
    .strategic-ally-img-bottom-right {
        display: none;
    }

    .impact-grid {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .impact-item {
        width: 90%;
        max-width: none;
    }

    .service-cards-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-modern {
        min-height: 400px;
    }

    .static-banner-section {
        height: 350px;
    }

    .static-banner-overlay h2 {
        font-size: 2rem;
    }

    .static-banner-overlay p {
        font-size: 1rem;
        max-width: 85%;
    }

    .projects-carousel .carousel-slide {
        min-height: 420px;
        width: calc(100% - 30px);
    }

    .careers-motto {
        font-size: 1.2rem;
    }

    .careers-contact {
        font-size: 1.1rem;
    }

    .careers-roles-grid {
        flex-direction: column;
        gap: 20px;
    }

    .roles-list li {
        font-size: 1.1rem;
    }

    .solution-card p,
    .solution-card ul {
        text-align: center;
        padding-left: 0;
    }

    .solution-card ul li {
        padding-left: 0;
    }

    .solution-card ul li::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col.logo-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .whatsapp-float {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    #backToTopBtn {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .carrusel-h-item img,
    .carrusel-s-item img {
        width: 70px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-logo-large {
        max-width: 280px;
    }

    .hero-subtitle {
        max-width: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .carousel-card {
        min-width: 260px;
        padding: 20px 15px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .carrusel-h-item img,
    .carrusel-s-item img {
        width: 60px !important;
        height: auto !important;
    }

    .carrusel-h-item,
    .carrusel-s-item {
        min-width: 100px;
        padding: 15px;
    }

    .service-card-modern {
        min-height: 380px;
    }

    .flip-card-front h4,
    .flip-card-front h3 {
        font-size: 1.1rem;
    }

    .static-banner-overlay h2 {
        font-size: 1.6rem;
    }

    .static-banner-overlay p {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .btn-read-more,
    .boton-masinfo,
    .boton-contacto {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .tooltip {
        font-size: 11px;
        max-width: 200px;
        padding: 8px 10px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .modal {
        width: 90%;
        padding: 20px;
    }

    .modal h2 {
        font-size: 16px;
    }

    .modal p {
        font-size: 13px;
    }

    .close-btn {
        padding: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}




 /* TABLETS Y MÓVILES */
 /*  ========================================== */

@media (max-width: 768px) {
    
    /* ===== TARJETAS DE SERVICIOS (FLIP CARDS) ===== */
    
    /* Asegurar estructura correcta en móvil */
    .flip-card-front {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: 420px;
    }
    
    /* Imagen con altura fija en móvil */
    .flip-card-front .service-img {
        height: 250px !important;
        max-height: 250px !important;
        width: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    /* Título con espacio flexible */
    .flip-card-front h4,
    .flip-card-front h3 {
        font-size: 1.15rem;
        margin: 15px 10px;
        padding: 0 10px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* BOTÓN - Siempre visible al final */
    .flip-card-front .boton-masinfo,
    .flip-card-front .flip-button {
        margin-top: auto !important;
        margin-bottom: 18px !important;
        align-self: center !important;
        
        position: relative !important;
        z-index: 100 !important;
        
        display: inline-flex !important;
        min-height: 38px !important;
        padding: 10px 22px !important;
        font-size: 0.9rem !important;
        
        background-color: rgba(220, 86, 39, 1) !important;
        color: white !important;
        border-radius: 90px !important;
        border: none !important;
        
        box-shadow: 0 4px 12px rgba(220, 86, 39, 0.5) !important;
        
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
    }
    
    .flip-card-front .boton-masinfo:hover,
    .flip-card-front .flip-button:hover {
        background-color: rgba(180, 66, 29, 1) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 86, 39, 0.7) !important;
    }
    
    /* ===== ALIADO ESTRATÉGICO - PADDING MEJORADO ===== */
    
    .strategic-ally-text {
        padding: 0 25px !important;
    }
    
    .strategic-ally-text h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .strategic-ally-text p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.8;
        padding: 0 15px;
        margin: 0;
    }
}

/* ==========================================
   MÓVILES PEQUEÑOS (480px o menos)
   ========================================== */

@media (max-width: 480px) {
    
    /* ===== TARJETAS DE SERVICIOS ===== */
    
    .flip-card-front {
        min-height: 400px;
    }
    
    .flip-card-front .service-img {
        height: 220px !important;
        max-height: 220px !important;
    }
    
    .flip-card-front h4,
    .flip-card-front h3 {
        font-size: 1.05rem;
        margin: 12px 8px;
    }
    
    .flip-card-front .boton-masinfo,
    .flip-card-front .flip-button {
        min-height: 36px !important;
        padding: 9px 20px !important;
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }
    
    /* ===== ALIADO ESTRATÉGICO ===== */
    
    .strategic-ally-text {
        padding: 0 20px !important;
    }
    
    .strategic-ally-text h2 {
        font-size: 1.8rem;
        padding: 0 5px;
        line-height: 1.3;
    }
    
    .strategic-ally-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 10px;
    }
}

/* ==========================================
   MÓVILES MUY PEQUEÑOS (375px o menos)
   ========================================== */

@media (max-width: 375px) {
    
    .strategic-ally-text {
        padding: 0 18px !important;
    }
    
    .strategic-ally-text h2 {
        font-size: 1.6rem;
    }
    
    .strategic-ally-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
