@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --amarillo: #FFD248;
    --verde: #377B37;
    --verde-claro: #699D67;
    --verde-servicios: #5CA55C;
    --gris-borde: #999999; 
    --blanco: #FFFFFF;
    --negro: #000000;
    --verde-footer: #11310D; 
    --beige-footer: #E7E4D1;
    --titulo-secciones: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; 
}

html {
    width: 100%;
}

body {
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0;
}

small {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
}

button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
}


/* --- HEADER --- */
.main-header {
    width: 100%;
    max-width: 1280px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: var(--negro);
    border-bottom: 1px solid var(--gris-borde);
    position: relative;
    box-sizing: border-box;
}

.logo img {
    height: 32px;
    display: block;
}

/* Botón Hamburguesa (Oculto en Escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--negro);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.main-header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-header nav ul li a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--negro);
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
}

/* Reserva el ancho en negrita para que el resaltado no mueva los links vecinos */
.main-header nav ul li a::after {
    content: attr(data-text);
    font-weight: 600;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
}

.main-header nav ul li a:hover,
.main-header nav ul li a.active {
    font-weight: 600;
}

/* --- HERO --- */
.hero {
    width: 100%;
    max-width: 1280px;
    height: 640px;
    margin: 0 auto;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('img/bg-hero.png');
    background-size: cover;
    background-position: 0 0;
    position: relative; /* Base para el posicionamiento absoluto */
    background-repeat: repeat-x;
    animation: backgroundScroll 5s linear alternate-reverse; /* Apply the animation */
    box-sizing: border-box;
}

@keyframes backgroundScroll {
    from {
        background-position: 0 0; /* Start at top-left */
    }
    to {
        background-position: 50% 0; /* Move left by 100% of the image width */
    }
}

/* Recuadro Blanco */
.hero-content-card {
    position: absolute;
    width: 508px;
    height: auto;
    top: 96px;
    left: 88px;
    background-color: var(--blanco);
    padding: 44px 48px 48px 48px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Cuadrado Amarillo de decoración */
.accent-square {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background-color: var(--amarillo);
    top: -23px;
    left: -24px;
    z-index: 2;
}

.hero-content-card h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    color: #262626;
    margin-bottom: 24px;
    text-align: left;
}

.hero-content-card p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    color: #333333;
    margin-bottom: 38px;
    text-align: left;
}

/* Contenedor del Botón y Gráfico de Barras */
.cta-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

/* Botón Verde */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 32px;
    background-color: var(--verde);
    color: var(--blanco);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--verde-claro);
}

/* Gráfico de Barras y Bloques decorativo */
.chart-container {
    position: relative;
    width: 94px;
    height: 76px;
    flex-shrink: 0;
}

/* Propiedades base para las barras verdes */
.chart-container .bar {
    position: absolute;
    bottom: 0;
    width: 10px;
    background-color: #5d9e5f;
    border-radius: 2px;
}

.chart-container .bar-1 {
    left: 0;
    height: 38px;
}

.chart-container .bar-2 {
    left: 42px;
    height: 57px;
}

.chart-container .bar-3 {
    right: 0;
    height: 76px;
}

/* Propiedades base para los bloques amarillos */
.chart-container .block {
    position: absolute;
    width: 13px;
    height: 13px;
    background-color: var(--amarillo);
    border-radius: 2px;
}

.chart-container .block-1 {
    left: 19px;
    bottom: 14px;
}

.chart-container .block-2 {
    right: 19px;
    bottom: 28px;
}

/* --- SECCIÓN POR QUÉ ELEGIRNOS --- */
.features {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
    padding-left: 48px;
    padding-right: 48px;
    padding-top: 56px;
    box-sizing: border-box;
}

.features-header {
    padding-bottom: 32px;
}

.features-header h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.features-grid {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-bottom: 96px;
}

.feature-card {
    flex: 1;
    height: 160px;
    max-width: 100%;
    border: 1.5px solid var(--gris-borde);
    border-radius: 16px;
    position: relative;
    text-align: center;
    padding: 40.5px 27.5px 32.5px 27.5px;
    display: flex;
    align-items: center;
}

.feature-card p {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.number-badge {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background-color: var(--verde);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0;
    border-radius: 8px;
}

/* --- SECCIÓN SERVICIOS --- */
.services {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 96px;
    box-sizing: border-box;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    margin-bottom: 32px;
}

.services-header h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
}

/* Botón Ver Todos */
.btn-outline {
    padding: 10px 24px;
    border: 1px solid #000;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

/* Grid de Tarjetas */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 0 48px;
}

.service-card {
    width: 362px;
    max-width: 100%;
    height: 400px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--blanco);
}

.service-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-img-1 {
    background-image: url('img/home-srv-01.png');
}

.service-img-2 {
    background-image: url('img/home-srv-02.png');
}

.service-img-3 {
    background-image: url('img/home-srv-03.png');
}

.service-info {
    width: 100%;
    height: 200px;
    padding: 24px 40px;
    position: relative; /* Para las decoraciones */
    box-sizing: border-box;
}

.service-info h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 12px;
    color: var(--titulo-secciones);
}

.service-info p {
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #666;
}

/* --- DECORACIONES --- */

/* Barra Amarilla Derecha */
.accent-yellow-bar {
    position: absolute;
    right: 30px;
    top: 18px;
    width: 6px;
    height: 48px;
    background-color: var(--amarillo);
}

/* "L" Verde Inferior Izquierda */
.accent-green-l {
    position: absolute;
    bottom: 19px;
    left: 22px;
    width: 56px;
    height: 80px;
    border-left: 6px solid var(--verde-servicios);
    border-bottom: 6px solid var(--verde-servicios);
}

/* --- SECCIÓN PROYECTOS --- */
.projects {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 96px;
    text-align: center;
    box-sizing: border-box;
}

.projects h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 32px;
    color: var(--titulo-secciones);
}

.mexico-map {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: all 2s ease;
}

.map-container {
    width: 100%;
    max-width: 900px; /* Ajusta según el tamaño real del SVG */
    margin: 0 auto;
}

/* Estilos internos del SVG */
.map-path {
    fill: #d8e6d8; /* Verde muy claro del mapa */
    stroke: var(--verde);
    stroke-width: 2px;
}

.project-dot {
    fill: var(--blanco);
    stroke: var(--verde);
    stroke-width: 1px;
    cursor: pointer;
    transition: transform 1s, fill 0.3s;
}

.project-dot:hover {
    fill: var(--verde-claro);
    transform: scale(1);
    transform-origin: center;
}

/* --- SECCIÓN LINKEDIN --- */
.linkedin-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 96px; /* Espacio de 96px solicitado */
    padding-bottom: 96px;
    box-sizing: border-box;
}

.linkedin-section h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 32px;
    padding-left: 48px;
}

.linkedin-container {
    display: flex;
    gap: 40px;
    padding: 0 48px;
    align-items: flex-start;
}

/* Imagen de la izquierda */
.linkedin-hero-img {
    flex: 1;
}

.linkedin-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Feed de la derecha */
.linkedin-feed-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}

.linkedin-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.linkedin-feed::-webkit-scrollbar {
    display: none;
}

/* Tarjetas */
.linkedin-card {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 24px;
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.linkedin-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.mini-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.company-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
}

.post-date {
    font-size: 12px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #888;
}

.linkedin-icon {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-icon:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

.linkedin-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.card-body p {
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #444;
}

/* Botones de Navegación vertical */
.linkedin-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-left: 20px;
    flex-shrink: 0;
    z-index: 5;
}

.nav-btn {
    background: var(--blanco);
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:active {
    transform: scale(0.92);
    background-color: #ebebeb;
}

.nav-btn span {
    pointer-events: none;
}

#scrollUp span { transform: rotate(90deg); display: block; }
#scrollDown span { transform: rotate(90deg); display: block; }

/* --- SECCIÓN CONTACTO --- */
.contact {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 800px;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/bg-contact.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0;
    box-sizing: border-box;
}

.contact-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    padding: 0 48px;
    align-items: center;
    box-sizing: border-box;
}

/* Columna Izquierda */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-text h2 {
    color: var(--blanco);
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.contact-text p {
    color: var(--blanco);
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    max-width: 450px;
}

.contact-map-inset {
    width: 480px;
    max-width: 100%;
    height: 280px;
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 40px;
}

.contact-map-inset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-map-inset iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Columna Derecha (Formulario) */
.contact-form-card {
    flex: 1;
    background-color: var(--blanco);
    padding: 50px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.form-accent-square {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--amarillo);
    top: -20px;
    left: -20px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 8px;
    color: var(--titulo-secciones);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--verde);
}

/* Campo trampa Honeypot */
.form-honeypot {
    display: none !important;
}

/* Botón Enviar */
.btn-submit {
    width: 240px;
    height: 50px;
    background-color: var(--verde);
    color: var(--blanco);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--verde-claro);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--verde-claro);
}

/* Mensaje de estado del formulario */
.form-status {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-status.success {
    color: #1b5e20;
    background-color: #e8f5e9;
    padding: 12px 16px;
    border: 1px solid #c8e6c9;
}

.form-status.error {
    color: #b71c1c;
    background-color: #ffebee;
    padding: 12px 16px;
    border: 1px solid #ffcdd2;
}

.main-footer {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background-color: var(--verde-footer);
    color: var(--blanco);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 60px 88px;
    box-sizing: border-box;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.footer-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-info {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--blanco);
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Barra inferior de Copyright */
.footer-bottom {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: 32px;
    background-color: var(--beige-footer);
    padding: 7px 0;
    text-align: center;
    box-sizing: border-box;
}

.footer-bottom p {
    color: var(--titulo-secciones);
    font-size: 12px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.footer-bottom-dark {
    background-color: var(--verde-footer);
    padding: 15px 0;
    height: auto;
}

.footer-bottom-dark p {
    color: var(--blanco);
}

/* --- CONTENEDORES GLOBALES (MAX 1280px) --- */
.main-header,
.hero,
.features,
.services,
.projects,
.linkedin-section,
.contact,
.contact-container,
.main-footer,
.footer-container,
.footer-bottom,
.servicios-page-header,
.servicios-content,
.equipos-section,
.metodologia-hero,
.como-lo-hacemos,
.proyectos-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- PÁGINA DE SERVICIOS --- */

.servicios-page-header {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding-top: 60px;
    box-sizing: border-box;
}

.servicios-page-header h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 40px;
}

/* Navegación secundaria (Tabs) */
/* --- NAVEGACIÓN STICKY DE SERVICIOS --- */
.servicios-nav {
    position: sticky;
    top: 0; /* Se pega en la parte superior */
    background-color: var(--blanco); /* Fondo sólido para tapar el contenido al hacer scroll */
    z-index: 100; /* Asegura que esté por encima de las imágenes y textos */
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 60px;
    padding-top: 20px; /* Un poco de respiro al hacer scroll */
    /* Sutil sombra al hacer scroll */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}

.servicios-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding-bottom: 0;
}

.servicios-nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    padding-bottom: 16px;
    display: inline-block;
    text-align: center;
    max-width: 150px;
    /* Transición sutil para el color y el borde */
    border-bottom: 3px solid transparent; 
    transition: color 0.3s ease, border-color 0.3s ease, font-weight 0.1s ease;
}

.servicios-nav ul li a:hover {
    color: var(--negro);
}

.servicios-nav ul li a.active {
    color: var(--negro);
    font-weight: 600;
    border-bottom: 3px solid var(--verde-servicios);
}

/* Compensación de scroll para que la barra no tape el título de la tarjeta */
.servicio-row {
    scroll-margin-top: 140px; 
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: flex-start; /* Para que la tarjeta y la imagen midan lo mismo de alto */
}

/* Contenedor de contenido */
.servicios-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 96px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    box-sizing: border-box;
}



/* Invertir el orden para los bloques pares (Foto a la izquierda) que haremos luego */
.servicio-row.reverse {
    flex-direction: row-reverse;
}

.servicio-card-texto {
    flex: 1 1 0;
    min-width: 0;
    max-width: 568px;
    min-height: 600px;
    background-color: #F8F9F8; /* Fondo claro de la tarjeta según el diseño */
    border-radius: 8px;
    padding: 36px 40px;
    box-sizing: border-box;
}

.servicio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.servicio-card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--verde-footer);
    max-width: 82%;
    overflow-wrap: anywhere;
}

/* Icono decorativo que aparece en la imagen */
.icono-cuadrado-verde {
  width: 40px;
  height: 40px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect width="40" height="40" fill="%23ffffff"/><path d="M0 0h28v8H8v20H0V0z" fill="%235d9e5f"/><path d="M40 40H12v-8h20V12h8v28z" fill="%235d9e5f"/><rect x="0" y="28" width="12" height="12" fill="%23f4be38"/><rect x="16" y="16" width="8" height="8" fill="%233d7942"/></svg>');
  background-size: cover;
}

/* Lista de viñetas de la tarjeta */
.servicio-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.servicio-lista li {
    position: relative;
    padding-left: 20px;
}

.servicio-lista li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    position: absolute;
    left: 0;
    top: 5px;
}

.servicio-lista li strong {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--negro);
    display: block;
    margin-bottom: 6px;
}

.servicio-lista li p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #555;
}

.servicio-imagen {
    flex: 1 1 0;
    min-width: 0;
    max-width: 568px;
    min-height: 600px;
    align-self: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- SECCIÓN QUÉ EMPLEAMOS --- */
.equipos-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 96px 48px;
    box-sizing: border-box;
}

.equipos-section h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 48px;
}

.equipos-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.equipo-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 30px;
    border-right: 1px solid #E0E0E0;
}

/* Para quitar la línea del último elemento */
.equipo-card:last-child {
    border-right: none;
    padding-right: 0;
}

.equipo-img {
    height: 180px; /* Ajusta según el tamaño real de tus fotos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.equipo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.equipo-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 16px;
}

.equipo-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #555;
}

/* =========================================
   --- PÁGINA METODOLOGÍA Y PROYECTOS --- 
   ========================================= */

/* --- HERO METODOLOGÍA --- */
.metodologia-hero {
    width: 100%;
    max-width: 1280px;
    height: 480px;
    margin: 0 auto;
    /* Ajusta el nombre de la imagen a como la guardes en tu carpeta img */
    background-image: url('img/bg-metodologia.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    box-sizing: border-box;
}

.metodologia-hero-card {
    position: absolute;
    top: 90px;
    left: 88px;
    background-color: var(--blanco);
    padding: 40px 60px 40px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.metodologia-hero-card h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
}

.accent-square-bottom {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: var(--amarillo);
    bottom: -14px;
    right: -14px;
    border-radius: 4px;
}

/* --- SECCIÓN CÓMO LO HACEMOS --- */
.como-lo-hacemos {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 48px;
    text-align: center;
    box-sizing: border-box;
}

.como-lo-hacemos h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 48px;
}

.pasos-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.paso-card {
    flex: 1;
    background-color: var(--blanco);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Sutil sombra para dar volumen como en el diseño */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease;
}

.paso-card:hover {
    transform: translateY(-5px);
}

.paso-icon {
    width: 64px;
    height: 64px;
    background-color: var(--verde);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

/* Restringimos el tamaño del icono de la tarjeta por si tus imágenes son grandes */
.paso-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.paso-card p {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    max-width: 250px;
}

/* --- SECCIÓN ANÁLISIS PRECISO --- */
.analisis-section {
    background-color: var(--verde-footer);
    padding: 80px 0;
    width: 100%;
}

.analisis-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.analisis-header h2 {
    color: var(--blanco);
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

/* Patrón de líneas decorativas amarillas */
.yellow-dashes {
    display: inline-block;
    width: 80px;
    height: 4px;
    background-image: linear-gradient(to right, 
        var(--amarillo) 15%, transparent 15%, transparent 25%, 
        var(--amarillo) 25%, var(--amarillo) 75%, transparent 75%, 
        transparent 85%, var(--amarillo) 85%);
}

.analisis-container {
    width: 1080px; /* Un poco más estrecho que el contenedor principal */
    max-width: 90%;
    margin: 0 auto;
    background-color: var(--blanco);
    border-radius: 12px;
    padding: 40px;
}

.analisis-card {
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.analisis-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 40px;
}

.analisis-img {
    max-width: 800px; /* Mantiene un límite para que las gráficas no se deformen */
    margin: 0 auto 30px auto;
}

.analisis-img img {
    width: 100%;
    height: auto;
    display: block;
}

.analisis-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    color: #444;
    max-width: 850px;
    margin: 0 auto;
}

/* Línea divisoria tenue entre tarjetas */
.analisis-divider {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 30px auto;
    width: 95%;
}

/* --- SECCIÓN PROYECTOS (PÁGINA METODOLOGÍA) --- */
.proyectos-section {
    padding: 96px 48px;
}

.proyectos-section > h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--titulo-secciones);
    margin-bottom: 48px;
    text-align: left;
}

/* =========================================
   --- DISEÑO RESPONSIVO CONSOLIDADO --- 
   ========================================= */

/* --- TABLETS Y PANTALLAS MEDIANAS (MAX 1024px) --- */
@media (max-width: 1024px) {
    .main-header {
        padding: 0 24px;
    }

    /* Áreas táctiles mínimas de 44px sin alterar el aspecto */
    .main-header nav ul li a {
        padding: 15px 4px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 12px 8px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
    }

    .btn-outline {
        min-height: 44px;
    }

    .linkedin-icon::after {
        content: '';
        position: absolute;
        inset: -10px;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
    }

    /* Hero Principal */
    .hero {
        height: auto;
        min-height: 540px;
        padding: 60px 24px;
        display: flex;
        align-items: center;
    }

    .hero-content-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 480px;
        margin: 0;
    }

    /* Features (Por qué elegirnos) */
    .features {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 48px;
    }

    .features-grid {
        gap: 20px;
        padding-bottom: 60px;
    }

    .feature-card {
        width: auto;
        padding: 30px 16px 20px 16px;
    }

    .feature-card p {
        font-size: 15px;
    }

    /* Servicios en Index: 2 + 1 centrada */
    .services {
        padding-bottom: 60px;
    }

    .services-header {
        padding: 0 24px;
    }

    .services-grid {
        padding: 0 24px;
        gap: 24px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    /* Proyectos / Mapa */
    .projects {
        padding-top: 60px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Sección LinkedIn */
    .linkedin-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .linkedin-section h2 {
        padding-left: 24px;
    }

    .linkedin-container {
        padding: 0 24px;
        gap: 24px;
    }

    /* Contacto apilado */
    .contact {
        min-height: auto;
        padding: 60px 0;
    }

    .contact-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 24px;
        gap: 32px;
    }

    .contact-info {
        flex: none;
        width: 100%;
    }

    .contact-map-inset {
        width: 100%;
    }

    .contact-form-card {
        flex: none;
        width: 100%;
    }

    /* Footer */
    .footer-container {
        padding: 40px 24px;
        gap: 30px;
    }

    /* --- PÁGINA SERVICIOS DETALLE --- */
    .servicios-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 16px 24px 0 24px;
    }

    .servicios-nav::-webkit-scrollbar {
        display: none;
    }

    .servicios-nav ul {
        justify-content: flex-start;
        gap: 24px;
        min-width: max-content;
    }

    .servicios-nav ul li a {
        padding-top: 12px;
    }

    .servicios-content {
        padding: 0 24px 60px 24px;
        gap: 36px;
    }

    .servicio-row,
    .servicio-row.reverse {
        gap: 28px;
    }

    .servicio-card-texto {
        min-height: 0;
    }

    .servicio-imagen {
        min-height: 360px;
    }

    .equipos-section {
        padding: 0 24px 60px 24px;
    }

    .equipos-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .equipo-card {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #E0E0E0;
        padding-bottom: 24px;
    }

    .equipo-card:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* --- PÁGINA METODOLOGÍA --- */
    .metodologia-hero {
        height: 380px;
    }

    .metodologia-hero-card {
        top: 60px;
        left: 24px;
        padding: 30px 40px;
    }

    .como-lo-hacemos {
        padding: 60px 24px;
    }

    .pasos-grid {
        gap: 20px;
    }
}

/* --- FILAS DE SERVICIO APILADAS (MAX 900px) --- */
@media (max-width: 900px) {
    .servicio-row,
    .servicio-row.reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .servicio-card-texto,
    .servicio-imagen {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .servicio-imagen {
        height: 380px;
        min-height: 0;
        align-self: auto;
        order: -1; /* Foto arriba para dar contexto antes del detalle técnico */
    }
}

/* --- MÓVILES Y PANTALLAS PEQUEÑAS (MAX 768px) --- */
@media (max-width: 768px) {
    /* Tipografía Responsive */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    /* Legibilidad: interlineado cómodo en texto corrido */
    .hero-content-card p,
    .service-info p,
    .card-body p,
    .contact-text p,
    .servicio-lista li p,
    .equipo-card p,
    .analisis-card p {
        line-height: 1.4;
    }

    .hero-content-card br,
    .metodologia-hero-card br {
        display: none;
    }

    /* Header & Menú Móvil */
    .main-header {
        height: 56px;
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-header nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: var(--blanco);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--gris-borde);
        z-index: 1000;
        padding: 10px 0;
    }

    .main-header nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-header nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-header nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-header nav ul li a:hover {
        background-color: #f5f5f5;
    }

    /* Hero Principal */
    .hero {
        min-height: auto;
        height: auto;
        padding: 40px 16px;
    }

    .hero-content-card {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 32px 20px 28px 20px;
        border-radius: 12px;
    }

    .hero-content-card h1 {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-content-card p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .accent-square {
        display: none; /* Evita salirse de la pantalla en móviles */
    }

    .cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .btn-primary {
        width: 100%;
        height: 50px;
        font-size: 15px;
    }

    .chart-container {
        align-self: flex-end;
    }

    /* Features Grid */
    .features {
        padding: 40px 16px 0 16px;
    }

    .features-grid {
        flex-direction: column;
        gap: 48px;
        padding-bottom: 50px;
    }

    .feature-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 120px;
        padding: 36px 20px 24px 20px;
    }

    /* Servicios en Index (2 + 1 hasta 481px) */
    .services {
        padding-bottom: 50px;
    }

    .services-header {
        padding: 0 16px;
        gap: 16px;
    }

    .services-header h2 {
        font-size: 24px;
    }

    .services-grid {
        padding: 0 16px;
        gap: 20px;
    }

    /* Proyectos / Mapa */
    .projects {
        padding-top: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* LinkedIn Section */
    .linkedin-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .linkedin-section h2 {
        padding-left: 16px;
        font-size: 24px;
    }

    .linkedin-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 24px;
    }

    .linkedin-hero-img {
        width: 100%;
        max-height: 240px;
        overflow: hidden;
        border-radius: 12px;
    }

    .linkedin-hero-img img {
        display: block;
        height: 240px;
        object-fit: cover;
    }

    .linkedin-feed-wrapper {
        width: 100%;
    }

    .linkedin-feed {
        max-height: 360px;
    }

    .linkedin-card {
        padding: 18px;
    }

    /* Contact Section */
    .contact {
        padding: 50px 0;
        min-height: auto;
    }

    .contact-container {
        padding: 0 16px;
        gap: 36px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-text p {
        max-width: 100%;
    }

    .contact-form-card {
        padding: 28px 20px;
    }

    .contact-map-inset {
        height: 240px;
        margin-top: 28px;
    }

    .form-accent-square {
        left: -8px;
        top: -12px;
    }

    /* Evita el zoom automático de iOS al enfocar campos */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .btn-submit {
        width: 100%;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 32px;
        text-align: center;
    }

    .footer-col {
        width: 100%;
    }

    .footer-info {
        font-size: 16px;
    }

    a.footer-info {
        display: inline-block;
        padding: 14px 0;
    }

    .footer-bottom {
        height: auto;
        padding: 12px 16px;
    }

    /* --- PÁGINA SERVICIOS DETALLE --- */
    .servicios-page-header {
        padding-top: 36px;
    }

    .servicios-page-header h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .servicios-nav {
        margin-bottom: 36px;
        padding: 12px 16px 0 16px;
    }

    .servicios-content {
        padding: 0 16px 50px 16px;
        gap: 32px;
    }

    .servicio-imagen {
        height: 260px;
    }

    .servicio-card-texto {
        padding: 28px 20px;
    }

    .equipos-section {
        padding: 0 16px 50px 16px;
    }

    .equipos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .equipo-card:nth-last-child(-n+2) {
        border-bottom: 1px solid #E0E0E0;
        padding-bottom: 24px;
    }

    .equipo-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* --- PÁGINA METODOLOGÍA --- */
    .metodologia-hero {
        height: auto;
        min-height: 240px;
        padding: 40px 16px;
        display: flex;
        align-items: center;
    }

    .metodologia-hero-card {
        position: static;
        width: 100%;
        padding: 24px;
        margin: 0;
    }

    .metodologia-hero-card h1 {
        font-size: 26px;
    }

    .accent-square-bottom {
        display: none;
    }

    .como-lo-hacemos {
        padding: 40px 16px;
    }

    .pasos-grid {
        flex-direction: column;
        gap: 24px;
    }

    .paso-card {
        width: 100%;
        padding: 24px;
    }

    /* Sección de Análisis (fondo verde a todo el ancho) */
    .analisis-container,
    .analisis-card {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
    }

    .analisis-header {
        flex-wrap: wrap;
        row-gap: 12px;
        padding: 0 16px;
    }

    .analisis-header h2 {
        font-size: 22px;
        text-align: center;
    }

    .yellow-dashes {
        width: 40px;
    }

    /* Sección de Proyectos */
    .proyectos-section {
        padding: 50px 16px;
    }
}

/* --- MÓVILES PEQUEÑOS (MAX 480px) --- */
@media (max-width: 480px) {
    .hero-content-card h1 {
        font-size: 22px;
    }

    .hero-content-card p {
        font-size: 13px;
    }

    .features-header h2,
    .services-header h2,
    .projects h2,
    .linkedin-section h2,
    .contact-text h2,
    .equipos-section h2,
    .como-lo-hacemos h2 {
        font-size: 22px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Servicios del inicio: una columna solo en móviles pequeños */
    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .service-info {
        height: auto;
        min-height: 200px;
    }

    .linkedin-nav {
        padding-left: 10px;
        gap: 12px;
    }

    .servicio-card-texto {
        padding: 20px 16px;
    }

    .servicio-card-header h2 {
        font-size: 20px;
        max-width: calc(100% - 52px);
    }

    .servicio-lista li strong {
        font-size: 15px;
    }

    .servicio-lista li p {
        font-size: 13px;
    }
}
