/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Botón hamburguesa móvil (oculto en escritorio) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 3px;
    transition: 0.3s;
}

/* Botón principal del Hero (CTA grande) */
.btn-main {
    display: inline-block;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Iconos de las tarjetas de servicio */
.service-card .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
}
.service-card.dark .icon {
    background: linear-gradient(135deg, #2a2a2a, #404040);
    color: #fff;
}

/* Navegación */
/* Contenedor del logo */
.logo-container {
    display: flex;
    align-items: center; /* Alinea verticalmente la imagen y el texto */
    gap: 12px; /* Espacio entre la imagen y el nombre */
}

/* Estilo de la imagen del logo */
.logo-img {
    height: 40px; /* Ajusta este tamaño según prefieras */
    width: auto;
    object-fit: contain;
}

/* Estilo del texto del logo */
.logo-text {
    font-size: 22px;
    font-weight: 600; /* Fuente no tan gruesa como pediste */
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

/* Ajuste de la navbar para darles espacio */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: white;
    position: sticky; /* Opcional: para que el menú te siga al bajar */
    top: 0;
    z-index: 1000;
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #000;
}

/* Botón redondeado como en la imagen */
.btn-primary {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
}

/* Sección Hero */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/fondo.jpg'); /* Aquí iría tu imagen */
    background-size: cover;
    background-position: center;
    color: white;
    margin: 20px;
    border-radius: 30px; /* Bordes redondeados del diseño */
}

.hero h1 {
    font-size: 3rem;
    font-weight: 500; /* No tan grueso como el 'bold' tradicional */
    letter-spacing: -1px; /* Unir un poco las letras da un aire premium */
    margin-bottom: 20px;
}
/* Contenedor de servicios */
.services {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 25px; /* Bordes muy redondeados como en la imagen */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.dark {
    background: #1a1a1a;
    color: white;
}

.service-card h3 {
    margin: 20px 0 15px 0;
    font-size: 22px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-card.dark p {
    color: #bbb;
}
.stats {
    padding: 80px 10%;
    background-color: #ffffff;
    text-align: center; /* Centra todo el contenido */
}

/* El texto de arriba */
.stats-header {
    margin-bottom: 50px; /* Espacio entre el texto y los números */
}

.stats-header p {
    font-size: 26px;
    color: #333;
    font-weight: 400;
    font-family: 'Segoe UI', sans-serif;
}

/* Los números de abajo */
.stats-container {
    display: flex;
    justify-content: space-between; /* Los separa equitativamente en la línea */
    align-items: center;
    max-width: 1100px;
    margin: 0 auto; /* Centra el contenedor en la pantalla */
}

.stat-item h2 {
    font-size: 3.5rem; /* Tamaño grande para impacto */
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.stat-item p {
    color: #777;
    font-size: 14px;
    text-transform: capitalize;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column; /* Se ponen uno sobre otro en móviles */
        gap: 40px;
    }
}

/* Título de sección */
.section-title {
    text-align: center;
    padding: 60px 0 40px;
}

.section-title span {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid de productos */
.products {
    padding: 20px 10% 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden; /* Para que la imagen no se salga de las esquinas redondeadas */
    border: 1px solid #eee;
    transition: 0.3s;
}

.product-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 250px;/* Altura fija para el área de la imagen */
    background: #f4f4f4; /* Fondo gris claro por si no hay imagen */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para la imagen real */
.product-img-header img {
    width: 100%; /* Se expande a todo el ancho */
    height: 100%; /* Se expande a todo el alto */
    object-fit: cover; /* ¡VITAL! Ajusta la imagen sin deformarla para que llene el espacio */
    object-position: center; /* Centra la parte importante de la foto */
}

.product-img img {
    max-width: 120%;
    max-height: 120%;
    object-fit: cover; /* Ideal para tus fotos de productos con fondo blanco */
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-info p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.view-btn {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 10% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-links ul {
    list-style: none;
    margin-top: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 13px;
}
/* Sección Sostenibilidad */
.sustainability {
    padding: 60px 10%;
    background-color: #ffffff;
}

.sust-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 30px;
    margin-top: 20px;
}

.sust-card {
    position: relative;
    padding: 50px;
    border-radius: 30px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease;
    border: 1px solid #eee;
}

.sust-card:hover {
    transform: scale(1.02);
}

/* Colores suaves basados en los sellos */
.blue-flag {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.carbon-neutral {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.sust-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.sust-card h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.sust-card p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

/* Ajuste para celulares: que salgan una sobre otra */
@media (max-width: 768px) {
    .sust-container {
        grid-template-columns: 1fr;
    }
}
section {
    scroll-margin-top: 80px; /* Ajusta este número según el alto de tu header */
}
html {
    scroll-behavior: smooth;
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.contact-section {
    padding: 80px 10%;
    background: #f4f4f4;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-details p {
    margin: 15px 0;
    color: #555;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.contact-form button {
    cursor: pointer;
    border: none;
}

/* === ESTILOS PARA LA NUEVA SECCIÓN NOSOTROS === */

.about-ghmcr {
    padding: 80px 10%; /* Mucho espacio arriba y abajo, y márgenes a los lados */
    background-color: #ffffff; /* Fondo blanco para limpieza */
}

.about-container {
    display: flex; /* Activa las dos columnas */
    justify-content: space-between; /* Separa la izquierda de la derecha */
    align-items: flex-start; /* Alinea los elementos arriba */
    gap: 40px; /* Espacio entre la etiqueta y el texto */
}

/* Columna Izquierda (La etiqueta) */
.about-label {
    flex: 1; /* Ocupa el espacio necesario */
    max-width: 150px; /* Limita el ancho como en la imagen de referencia */
}

.pill-label {
    display: inline-block;
    padding: 8px 18px;
    background-color: #f1f1f1; /* Un gris muy suave */
    color: #333;
    border-radius: 50px; /* Forma de píldora redondeada */
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize; /* Convierte 'nosotros' a 'Nosotros' */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra muy sutil */
}

/* Columna Derecha (El párrafo grande) */
.about-text {
    flex: 3; /* Ocupa más espacio que la etiqueta (relación 3 a 1) */
}

.about-text p {
    font-size: 20px; /* Texto grande y legible como en la referencia */
    line-height: 1.6; /* Buen espacio entre líneas */
    color: #444; /* Un gris oscuro, más suave que el negro puro */
    font-weight: 300; /* Fuente ligera para elegancia */
}

/* Resaltado del nombre de la empresa */
.about-text p strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* === RESPONSIVE DESIGN (Para celulares) === */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Apila los elementos verticalmente */
        text-align: center; /* Centra todo el contenido */
    }
    
    .about-label {
        margin-bottom: 20px; /* Espacio entre la etiqueta y el texto al estar apilados */
        max-width: 100%; /* Permite que ocupe todo el ancho centrado */
    }
    
    .about-text p {
        font-size: 18px; /* Reduce un poco el tamaño del texto en móviles */
    }
}/* Posicionamiento del contenedor dentro del Hero */
.hero {
    position: relative; /* Importante para que los enlaces se peguen a este contenedor */
}

.hero-socials {
    position: absolute;
    bottom: 30px;
    right: 5%; /* Ajusta según el margen de tu diseño */
    display: flex;
    gap: 25px;
}

.hero-socials a {
    color: rgba(255, 255, 255, 0.8); /* Color blanco con transparencia */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.hero-socials a:hover {
    color: #ffffff; /* Se ilumina al pasar el mouse */
}

.view-btn {
    display: inline-block;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 8px 20px;
    border-radius: 8px; /* Bordes ligeramente redondeados, muy modernos */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 15px;
}

.view-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px); /* Pequeño salto hacia arriba */
}
/* Centrado absoluto del Pop-up */
.detail-popup {
    border: none;
    border-radius: 24px; /* Bordes más curvos como en tu imagen */
    padding: 0;
    width: 90%;
    max-width: 550px;
    position: fixed; /* Asegura que se base en la ventana del navegador */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Truco matemático para centrado perfecto */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Ajuste para que el texto respire y no toque los bordes */
.popup-content {
    padding: 40px 50px; /* 40px arriba/abajo y 50px a los lados */
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre el título y la lista */
}

/* Ajuste para la lista de características */
.popup-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estilo de la lista de características */
.popup-content li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 300; /* Fuente ligera para mayor elegancia */
}

/* Botón de cerrar tipo "Píldora" */
.btn-close {
    background: #111111;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
}

/* ======================================
   FOOTER MEJORADO (4 columnas)
   ====================================== */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.footer-logo p {
    color: #aaa;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-links ul li {
    color: #aaa;
}

.contact-info a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px dashed #888;
}

.contact-info a:hover {
    color: #0066cc;
}

/* ======================================
   RESPONSIVE - MENÚ MÓVIL
   ====================================== */
@media (max-width: 900px) {
    .navbar {
        padding: 15px 5%;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        gap: 10px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
        margin: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .services,
    .stats,
    .products,
    .sustainability,
    .contact-section {
        padding: 50px 5%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-socials {
        position: static;
        justify-content: center;
        margin-top: 25px;
    }
}

/* ======================================
   ACCESIBILIDAD: focus visible
   ====================================== */
input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* ======================================
   PÁGINA OPORTUNIDADES LABORALES
   ====================================== */

/* Hero alternativo para empleo (sin imagen de fondo, estilo más corporativo) */
.jobs-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0066cc 100%);
    background-image: linear-gradient(135deg, rgba(26,26,26,0.85), rgba(0,102,204,0.75)), url('img/fondo.jpg');
    background-size: cover;
    background-position: center;
}

/* Enlace activo en navegación */
.nav-links a.active-link {
    color: #000;
    font-weight: 600;
    position: relative;
}
.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0066cc;
}

/* Sección de vacantes */
.jobs-section {
    padding: 40px 10% 80px;
    background: #f9f9f9;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card individual de vacante */
.job-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Header de la card UNIFICADO - Todas en gris oscuro */
.job-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 35px 35px 30px;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

.job-header h3 {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 12px 0 8px;
    letter-spacing: -0.3px;
}

.job-location {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

/* Badge "Vacante Activa" */
.job-badge {
    display: inline-block;
    background: #ffffff;
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cuerpo de la card */
.job-body {
    padding: 30px 35px 35px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.job-block h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid #1a1a1a;
    padding-left: 10px;
}

.job-block p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Lista de habilidades - sin iconos, estilo minimalista */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-list li {
    position: relative;
    padding: 10px 14px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    background: #f4f4f4;
    border-radius: 8px;
    border-left: 3px solid #1a1a1a;
}

/* Sección de postulación (inferior de la card) */
.job-apply {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.apply-email {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    word-break: break-word;
    border-bottom: 1px dashed #1a1a1a;
    display: inline-block;
}

.apply-email:hover {
    text-decoration: underline;
}

.apply-btn {
    display: inline-block;
    text-align: center;
    margin-top: 8px;
    padding: 13px 25px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Select del formulario de postulación */
.contact-form select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: #333;
    font-family: inherit;
    cursor: pointer;
}

/* Responsive para página de empleo */
@media (max-width: 900px) {
    .jobs-section {
        padding: 30px 5% 60px;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .job-header {
        padding: 25px 25px 20px;
    }
    .job-body {
        padding: 25px;
    }
    .job-header h3 {
        font-size: 22px;
    }
}

/* ==========================================================
   OPTIMIZACIÓN MÓVIL AGRESIVA - TODO EL SITIO
   Breakpoints: 768px (tablet), 600px (móvil grande), 400px (móvil)
   ========================================================== */

/* ---------- TABLET / MÓVIL GRANDE (hasta 768px) ---------- */
@media (max-width: 768px) {
    /* Ajustes globales */
    body { font-size: 15px; }

    /* Navegación */
    .logo-text { font-size: 18px; }
    .logo-img { height: 32px; }

    /* Hero */
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 70px 20px;
        margin: 10px;
        border-radius: 20px;
    }
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 15px;
    }
    .btn-main {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Nosotros */
    .about-ghmcr { padding: 50px 5%; }
    .about-text p { font-size: 16px; }

    /* Servicios */
    .services { padding: 40px 5%; }
    .service-card {
        padding: 28px 24px;
    }
    .service-card h3 { font-size: 19px; }

    /* Stats */
    .stat-item h2 {
        font-size: 2.5rem;
    }
    .stats-header p {
        font-size: 20px;
    }

    /* Títulos de sección */
    .section-title { padding: 40px 0 25px; }
    .section-title h2 { font-size: 1.6rem; }
    .section-title span { font-size: 12px; }

    /* Productos */
    .products { padding: 20px 5% 50px; }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-img { height: 220px; }
    .product-info { padding: 20px; }
    .product-info h4 { font-size: 17px; }

    /* Sostenibilidad */
    .sustainability { padding: 40px 5%; }
    .sust-card {
        padding: 35px 28px;
        min-height: 240px;
    }
    .sust-card h3 { font-size: 20px; }

    /* Contacto */
    .contact-section { padding: 50px 5%; }
    .contact-info h3 { font-size: 22px; }
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        font-size: 15px;
    }

    /* Footer */
    footer { padding: 40px 5% 20px; }

    /* Popups */
    .popup-content { padding: 30px 25px; }
    .popup-content li { font-size: 14px; }

    /* WhatsApp flotante */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 11px;
    }

    /* === PÁGINA DE EMPLEO === */
    .jobs-hero {
        min-height: 50vh;
        padding: 60px 20px;
    }
    .jobs-section { padding: 20px 5% 50px; }
    .job-card {
        border-radius: 20px;
    }
    .job-header {
        padding: 25px 22px 20px;
    }
    .job-header h3 {
        font-size: 20px;
    }
    .job-body {
        padding: 22px;
        gap: 18px;
    }
    .job-block h4 {
        font-size: 14px;
    }
    .job-block p,
    .skills-list li {
        font-size: 14px;
    }
    .apply-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    .apply-email {
        font-size: 13px;
    }
}

/* ---------- MÓVIL GRANDE (hasta 600px) ---------- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 14px;
    }
    .btn-main {
        padding: 11px 20px;
        font-size: 13px;
    }

    /* Nav logo un poco más pequeño */
    .logo-text { font-size: 16px; }

    /* Stats: que se apilen elegantemente */
    .stats-container {
        gap: 30px !important;
    }
    .stat-item h2 { font-size: 2.2rem; }

    /* Títulos */
    .section-title h2 { font-size: 1.4rem; }
    .about-text p { font-size: 15px; }

    /* Sustainability 1 columna */
    .sust-container {
        grid-template-columns: 1fr !important;
    }

    /* Contact: campos más compactos */
    .contact-details p {
        font-size: 14px;
        margin: 12px 0;
    }

    /* Popups del catálogo */
    .detail-popup {
        width: 94%;
        max-width: 94%;
    }
    .popup-content {
        padding: 25px 20px;
    }
    .popup-content h3 {
        font-size: 19px;
    }

    /* Job cards más compactas */
    .job-header h3 {
        font-size: 18px;
    }
    .job-location {
        font-size: 12px;
    }
    .apply-email {
        font-size: 12px;
        word-break: break-all;
    }
}

/* ---------- MÓVIL PEQUEÑO (hasta 400px) ---------- */
@media (max-width: 400px) {
    /* Reducir padding general para aprovechar el ancho */
    .navbar { padding: 12px 4%; }
    .hero {
        margin: 6px;
        padding: 55px 15px;
    }
    .hero h1 { font-size: 1.4rem; }

    .services,
    .stats,
    .products,
    .sustainability,
    .contact-section,
    .jobs-section,
    .about-ghmcr {
        padding-left: 4%;
        padding-right: 4%;
    }

    .service-card,
    .sust-card,
    .job-body,
    .job-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* WhatsApp más pequeño */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 10px;
        bottom: 15px;
        right: 15px;
    }

    /* Stats en una columna centrada */
    .stat-item h2 { font-size: 2rem; }

    /* Footer bien apretado */
    footer { padding: 30px 4% 20px; }
    .footer-content { gap: 25px; }
}

/* ---------- EVITAR DESBORDE HORIZONTAL (scroll horizontal) ---------- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img, video {
    max-width: 100%;
    height: auto;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
}