/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 110px;
}

/* Final container override: reduce lateral margins on very wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px !important;
        padding: 0 24px !important;
    }
}

@media (min-width: 1900px) {
    .container {
        max-width: 1800px !important;
        padding: 0 28px !important;
    }
}

/* Final overrides to ensure large-screen Empresa sizes take effect */
@media (min-width: 1900px) {
    .container {
        max-width: 1600px !important;
        padding: 0 40px !important;
    }
    .empresa-imagen {
        flex: 0 0 900px !important;
        max-width: 900px !important;
        width: 900px !important;
    }
    .empresa-info {
        flex: 1 1 calc(100% - 940px) !important;
        min-width: 300px !important;
    }
}

/* Extra final overrides: increase Empresa image further on very large screens */
@media (min-width: 1600px) {
    .container { max-width: 1500px !important; }
    .empresa-imagen { flex: 0 0 850px !important; max-width: 850px !important; width: 850px !important; }
    .empresa-info p,
    .empresa p { font-size: var(--description-size-desktop) !important; }
}

@media (min-width: 1900px) {
    .container { max-width: 1700px !important; }
    .empresa-imagen { flex: 0 0 1050px !important; max-width: 1050px !important; width: 1050px !important; }
    .empresa-info { flex: 1 1 calc(100% - 1090px) !important; }
    .empresa-info p,
    .empresa p { font-size: var(--description-size-desktop) !important; }
}

/* Overrides: tighten Empresa spacing and force image width */
.empresa-grid {
    gap: 12px !important;
}
.empresa-info {
    padding-right: 12px;
}
.empresa-imagen {
    flex: 0 0 320px !important;
    max-width: 320px !important;
}

/* Capacidades: tarjetas principales y detalles por producto */
.capacidades-intro {
    max-width: 760px;
    margin: 8px 0 24px;
    color: #475569;
    line-height: 1.75;
    font-size: 1.2rem;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.producto-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    position: relative;
}
.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}
.producto-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}
.producto-card-content {
    padding: 18px 18px 20px;
}
.producto-card-content h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 700;
}
.producto-card-content p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.98rem;
    margin: 0;
}
.producto-page {
    padding: 140px 0 60px;
}
.producto-page h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
}
.producto-page p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}
.producto-page ul {
    margin: 16px 0 0 18px;
    color: #334155;
    line-height: 1.7;
}

/* ================= GALERÍA ================= */

.producto-page-gallery{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:16px;
    margin-top:32px;
    align-items: stretch;
}

.producto-page--detalle .producto-intro {
    display: grid;
    gap: 14px;
    padding: 20px 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.producto-page--detalle .producto-eyebrow {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2563eb;
}

.producto-page--detalle .producto-intro h1 {
    margin: 0 0 8px;
    font-size: 2.1rem;
    color: #0f172a;
}

.producto-page--detalle .producto-lead {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.75;
    color: #475569;
    max-width: 820px;
}

.producto-page--detalle .producto-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.producto-page--detalle .producto-summary > div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.producto-page--detalle .producto-summary span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 3px;
}

.producto-page--detalle .producto-summary strong {
    font-size: 1rem;
    color: #0f172a;
}

.producto-page--detalle .producto-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.producto-page--detalle .producto-text-block {
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.producto-page--detalle .producto-text-block h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #0f172a;
}

.producto-page--detalle .producto-text-block p,
.producto-page--detalle .producto-text-block li {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.producto-page--detalle .producto-list {
    margin: 12px 0 0 18px;
    padding: 0;
}

@media (min-width: 1900px) {
    .producto-page--detalle .producto-eyebrow {
        font-size: 0.95rem;
    }

    .producto-page--detalle .producto-intro h1 {
        font-size: 2.4rem;
    }

    .producto-page--detalle .producto-lead,
    .producto-page--detalle .producto-text-block p,
    .producto-page--detalle .producto-text-block li {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .producto-page--detalle .producto-summary span {
        font-size: 0.9rem;
    }

    .producto-page--detalle .producto-summary strong {
        font-size: 1.1rem;
    }

    .producto-page--detalle .producto-text-block h2 {
        font-size: 1.3rem;
    }
}

.gallery-item{
    overflow:hidden;
    border-radius:6px;
    box-shadow:0 10px 30px rgba(0,0,0,.16);
    background:#fff;
    margin:0;
    display:flex;
    flex-direction:column;
}

.gallery-item img{
    width:100%;
    aspect-ratio: 4 / 3;
    max-height: 700px;
    min-height: 280px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.gallery-item figcaption{
    padding: 10px 12px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    text-align: center;
    line-height: 1.4;
}

.gallery-item:hover img{
    transform:scale(1.02);
}
.volver-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.volver-link:hover {
    text-decoration: underline;
}

.producto-page--detalle .producto-page-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1300px;
    margin: 28px auto 0;
}

.producto-page--detalle .gallery-item {
    border-radius: 6px;
    padding: 0;
    background: transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.producto-page--detalle .gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 760px;
    min-height: 320px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px 6px 0 0;
}

.producto-page--detalle .gallery-item figcaption {
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    padding: 12px 14px 14px;
    font-size: 0.98rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .producto-page-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .producto-page--detalle .producto-page-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .producto-page-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto-page--detalle .producto-page-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .producto-page--detalle .producto-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .producto-page-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .producto-page--detalle .producto-page-gallery {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .producto-page--detalle .producto-details {
        grid-template-columns: 1fr;
    }

    .producto-page--detalle .producto-summary {
        grid-template-columns: 1fr;
    }

    .producto-page--detalle .gallery-item img {
        max-height: 340px;
    }
}
.producto-detalle-header h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #0f172a;
}
.producto-detalle-header p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.producto-detalle ul {
    list-style: disc;
    margin: 12px 0 0 18px;
    color: #334155;
    line-height: 1.75;
    font-size: 1.1rem;
}
.capability-images {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 6px;
    align-items: start;
}
.capability-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 110px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}
.capability-images img:first-child {
    grid-column: 1 / span 3;
    height: 140px;
}

@media (max-width: 900px) {
    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    .capability-images {
        grid-template-columns: 1fr;
    }
    .capability-images img:first-child {
        grid-column: 1;
        height: 160px;
    }
    .capability-images img {
        height: 110px;
    }
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 3000;
}
.lightbox.open {
    display: flex;
}
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
    color: #0f172a;
}
.capability-images img:first-child {
    grid-column: 1 / span 3;
    height: 150px;
}

@media (max-width: 1100px) {
    .capability-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    .capability-images {
        flex: 1 1 100%;
        width: 100%;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .capability-images {
        grid-template-columns: 1fr;
    }
    .capability-images img:first-child {
        grid-column: 1;
        height: 180px;
    }
    .capability-images img {
        height: 120px;
    }
}

@media (max-width: 900px) {
    .empresa-grid {
        gap: 14px !important;
    }
    .empresa-imagen {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: -1;
    }
    .empresa-info {
        padding-right: 0;
    }
}

/* Ajustes para pantallas muy anchas (p. ej. 1920x1080) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px; /* dar más espacio en pantallas muy anchas */
    }
    .empresa-grid {
        gap: 32px;
    }
    .empresa-imagen {
        flex: 0 0 700px;
        max-width: 700px;
    }
    .empresa-info p,
    .empresa p {
        font-size: var(--description-size-desktop);
    }
    .section h3,
    .empresa-datos h4 {
        font-size: var(--title-size-desktop);
    }
}

/* Ajustes extra para 1920px y pantallas muy anchas */
@media (min-width: 1900px) {
    .container {
        max-width: 1600px;
    }
    .empresa-grid {
        gap: 36px;
    }
    .empresa-imagen {
        flex: 0 0 900px;
        max-width: 900px;
    }
    .empresa-info {
        flex: 1 1 calc(100% - 920px);
    }
    .empresa-info p,
    .empresa p {
        font-size: var(--description-size-desktop);
    }
}

/* Final: reduce Empresa image sizes to reasonable values */
@media (min-width: 1600px) {
    .container { max-width: 1300px !important; }
    .empresa-imagen { flex: 0 0 480px !important; max-width: 480px !important; width: 480px !important; }
}

@media (min-width: 1900px) {
    .container { max-width: 1400px !important; }
    .empresa-imagen { flex: 0 0 600px !important; max-width: 600px !important; width: 600px !important; }
}

/* Final aggressive overrides to reduce lateral margins on very wide screens */
@media (min-width: 1600px) {
    .container { max-width: none !important; padding: 0 24px !important; }
    .nav { padding: 0 24px !important; }
    .footer .container { padding: 0 24px !important; }
    .empresa-info { padding-right: 12px !important; }
}

@media (min-width: 1900px) {
    .container { max-width: none !important; padding: 0 28px !important; }
    .nav { padding: 0 28px !important; }
    .footer .container { padding: 0 28px !important; }
    /* keep empresa image reasonable */
    .empresa-imagen { flex: 0 0 560px !important; max-width: 560px !important; width: 560px !important; }
    .empresa-info { padding-right: 12px !important; }
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-blend-mode: overlay;
    background-color: #fcfbfb;

}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HEADER ================= */

/*.header {
    background-color: #0f172a;
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}*/
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    transition: padding 0.3s ease;
    z-index: 1000;
}

/* Ensure header content aligns with page margins */
.nav {
    padding: 0 20px;
}
header.scrolled .logo {
    height: 60px;
}
.nav-toggle {
    display: none;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Cuando el header está scrolleado, mostramos el botón */
header.scrolled .nav-toggle {
    display: block;
}

/* Ocultamos el menú cuando está en modo scroll */
header.scrolled nav {
    display: none;
}

/* Cuando el menú está abierto */
nav.open {
    display: flex !important;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: 100%;
    right: 20px; /* Se alinea con el botón de hamburguesa */
    min-width: 200px;
    width: auto;
    border-radius: 8px;
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 1002;
}


.nav {
    width: 100%;
    max-width: auto;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
    height: 72px;
    transition: 0.3s ease;
    
}

nav a {
    color: rgb(247, 246, 246);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: 0.3s;
    opacity: 1;
}

@keyframes navLinkFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/*.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav a:hover {
    color: #3b82f6;
}
*/
/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 20px 90px;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.55) 45%, rgba(2, 6, 23, 0.28) 100%);
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    background-color: #e2e8f0;
    animation: heroFade 32s infinite;
}

.hero-slider img:nth-child(2) {
    animation-delay: 5.333s;
}

.hero-slider img:nth-child(3) {
    animation-delay: 10.666s;
}

.hero-slider img:nth-child(4) {
    animation-delay: 16s;
}

.hero-slider img:nth-child(5) {
    animation-delay: 21.333s;
}

.hero-slider img:nth-child(6) {
    animation-delay: 26.666s;
}

@keyframes heroFade {
    0%, 100% {
        opacity: 0;
        transform: scale(1.03);
    }
    6% {
        opacity: 1;
    }
    18% {
        opacity: 1;
    }
    24% {
        opacity: 0;
        transform: scale(1.08);
    }
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    display: inline-block;
    width: fit-content;
    max-width: min(720px, 100%);
    padding: clamp(28px, 3.8vw, 40px);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Estados explícitos para mostrar/ocultar el card del hero */
.hero-content.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(28px);
}
.hero-content.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #dbeafe;
}

.hero h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
    line-height: 1.15;
}

.hero-text {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    margin: 0 0 24px;
    color: rgba(255,255,255,0.92);
    line-height: 1.75;
    max-width: 640px;
}

.hero-buttons {
    z-index: 2;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
}

.hero-buttons .btn-primary {
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border: 1px solid rgba(96, 165, 250, 0.7);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-color: rgba(191, 219, 254, 0.9);
}

.hero-buttons .btn-tertiary {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.hero-buttons .btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
}

.hero-buttons .btn-secondary {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #0f172a;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.hero-buttons .btn-secondary:hover {
    background: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.8);
    color: #0f172a;
}

/* ================= BOTONES ================= */

.btn {
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary,
.btn-tertiary {
    background-color: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
}

.btn-primary:hover,
.btn-tertiary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0f172a;
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: all 0.3s ease;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= SECCIONES ================= */

.section {
    padding: 80px 0;
}

.section h3 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ================= EMPRESA ================= */
/*
.empresa p {
    max-width: 800px;
    margin-bottom: 40px;
}

.empresa-datos {
    display: flex;
    gap: 40px;
}

.empresa-datos h4 {
    font-size: 36px;
    color: #2563eb;
}
*/
.empresa-grid {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* mantener elementos juntos en pantallas anchas */
    gap: 20px; /* reducido para acercar texto e imagen */
}
.empresa-datos {
    display: flex;
    gap: 40px;
}

.empresa-datos h4 {
    font-size: 36px;
    color: #2563eb;
}

.empresa-info {
    flex: 1 1 60%;
    min-width: 0;
}

.empresa-imagen {
    flex: 0 0 35%; /* ancho fijo relativo */
    max-width: 420px;
    display: flex;
    justify-content: center;
}


.empresa-imagen img {
    width: 100%;
    border-radius: 10px;
}




/* ================= GRID ================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Make images fluid and ensure they fit their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0 !important;
}

/* Ensure empresa grid wraps and uses full width */
.empresa-grid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px; /* mantener consistente */
    flex-wrap: wrap;
}

.empresa-info {
    flex: 1 1 60%;
    min-width: 0; /* permite que el contenido se encoja sin provocar overflow */
}
.empresa-imagen {
    flex: 1 1 40%;
    max-width: 420px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Contact section: keep the same stacked composition in all breakpoints */
.contacto .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 28px;
}

.contact-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.contact-details {
    display: grid;
    gap: 12px;
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
}

.dato-item {
    width: 100%;
    padding: 12px 14px;
}

/* General spacing and readability tweaks */
.section p {
    max-width: 900px;
}

/* Increase card padding on larger screens */
@media (min-width: 900px) {
    .card,
    .proyecto-card {
        padding: 36px;
    }
}

/* Footer container ensure centered content */
.footer .container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* ================= CARDS ================= */

.card,
.proyecto-card {
    background-color: #f1f5f9;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.card:hover,
.proyecto-card:hover {
    transform: translateY(-5px);
}

.proyecto-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, border-radius 0.25s ease, scale 0.25s ease;
}

.proyecto-card:hover img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

@media (min-width: 1600px) {
    .proyecto-card img {
        aspect-ratio: 1 / 1;
        max-height: 320px;
    }
}

.proyecto-card-body {
    padding: 20px 22px 24px;
}

.card h4,
.proyecto-card h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.proyecto-card p {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.6;
}

/* Product card specific styles */
.product-card img {
    width: 100%;
    display: block;
}
.product-card h4 {
    margin-top: 12px;
    font-size: 18px;
}
.product-card p {
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
}
.productos-grid .card {
    padding: 0; /* image fills top; card body controlled by inner spacing */
}
.productos-grid .product-card .card-body {
    padding: 16px;
}

/* ================= INFRAESTRUCTURA ================= */

.infraestructura {
    background-color: #f8fafc;
}

.infraestructura .square-img {
    width: 100%;
    max-width: 92%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 16px auto 0;
}

/* ================= CALIDAD ================= */

.calidad {
    background-color: #e2e8f0;
}

/* ================= CONTACTO ================= */
:root {
  --bg: #0d0d10;
  --panel: #121217;
  --line: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --muted: #b6b6bf;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.14);
  --radius: 18px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

.contact-panel {
  background: var(--bg);
  padding: 96px 0;
}

.contact-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}

.contact-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--text);
}

.contact-copy h2 span {
  color: #60a5fa;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 24px 0 0;
}

.section-kicker {
  margin: 0;
  color: #7cc7ff;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.contact-data a {
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-social {
  margin-top: 22px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(96, 165, 250, 0.12);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #d7d7df;
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0f;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666873;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#form-status {
    min-height: 24px;
    color: #bfdbfe;
    font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background:  rgba(37, 99, 235, 0.8);
  color: #fff;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }
}

/* Footer override must stay last so it wins over earlier generic image rules. */
.footer .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Final footer rules: keep the credit text and mark together. */
.footer .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Footer layout must remain stable across hosting/browser defaults. */
.footer .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-height: 48px;
}

.footer p {
    flex: 0 0 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
}

/* ================= TIPOGRAFÍA UNIFICADA ================= */
:root {
    --title-size-desktop: 2rem;
    --title-size-mobile: 1.7rem;
    --description-size-desktop: 1.1rem;
    --description-size-mobile: 1rem;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

.hero h2,
.section h3,
.producto-page h1,
.producto-page--detalle .producto-intro h1,
.producto-page--detalle .producto-text-block h2,
.producto-detalle-header h4,
.producto-card-content h4,
.card h4,
.proyecto-card h4,
.product-card h4,
.empresa-datos h4 {
    font-size: var(--title-size-desktop);
    font-weight: 600;
    color: #0f172a;
}

.hero h2 {
    color: #ffffff;
}

.hero p,
.section p,
.capacidades-intro,
.producto-page p,
.producto-page--detalle .producto-lead,
.producto-page--detalle .producto-text-block p,
.producto-page--detalle .producto-text-block li,
.producto-detalle-header p,
.producto-detalle ul,
.product-card p,
.empresa-info p,
.empresa p {
    font-size: var(--description-size-desktop);
    line-height: 1.8;
    color: #475569;
}

@media (min-width: 1600px) {
    :root {
        --title-size-desktop: 2.15rem;
        --description-size-desktop: 1.2rem;
    }
}

@media (min-width: 1900px) {
    :root {
        --title-size-desktop: 2.1rem;
        --description-size-desktop: 1.15rem;
    }
}

@media (max-width: 900px) {
    :root {
        --title-size-desktop: 1.7rem;
        --description-size-desktop: 1rem;
    }
}

@media (max-width: 600px) {
    :root {
        --title-size-desktop: 1.5rem;
        --description-size-desktop: 0.95rem;
    }
}

/* ================= FOOTER ================= */

.footer {
    background-color: #020617;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}

.footer .container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.footer p {
    margin: 0;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #64748b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
    background-color: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.footer-credit:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    /* Ajustes del hero */
    .hero h2 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Empresa */
    .empresa-datos {
        flex-direction: column;
    }

    .empresa-grid {
        flex-direction: column;
    }

    /* HEADER RESPONSIVE */
    /* Ocultamos el menú normal en móvil */
    header nav {
        display: none;
    }

    /* Mostramos el botón hamburguesa */
    .nav-toggle {
        display: block;
        font-size: 28px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Menú desplegado */
    nav.open {
        display: flex !important;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 20px;
        gap: 20px;
    }

    nav a {
        font-size: 18px;
        padding: 10px 0;
    }

    /* Alineación del header en móvil */
    .nav {
        padding: 0 20px;
        width: 100%;
        justify-content: space-between;
    }
}
:root {
  --bg: #0d0d10;
  --panel: #121217;
  --line: rgba(255,255,255,0.08);
  --text: #f5f5f7;
  --muted: #b6b6bf;
  --primary: rgba(37, 99, 235, 0.8);
  --primary-soft: rgba(37, 99, 235, 0.14);
  --radius: 18px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

.contact-panel {
  background: var(--bg);
  padding: 96px 0;
}

.contact-layout {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}

.contact-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: var(--text);
}

.contact-copy h2 span {
  color: rgba(37, 99, 235, 0.8);
}

.contact-copy > p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 24px 0 0;
}

.section-kicker {
  margin: 0;
  color: rgba(37, 99, 235, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.contact-data a {
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #d7d7df;
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0f;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666873;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background:  #2563eb;
  color: #fff;
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }
}

/* Final footer cascade override. */
.footer .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
}

/* Keep the copyright and design credit on separate lines. */
.footer .container {
    display: block !important;
    text-align: center !important;
}

.footer .container > p {
    display: block !important;
    margin: 0 0 8px !important;
}

