:root{
    --navy:#061b3a;
    --navy-2:#0a2d5f;
    --red:#d71920;
    --red-dark:#b81218;
    --white:#ffffff;
    --light:#f5f7fb;
    --gray:#64748b;
    --dark:#0f172a;
    --border:#e5e7eb;
    --shadow:0 20px 60px rgba(15,23,42,.14);
    --radius:22px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Inter",sans-serif;
    background:var(--white);
    color:var(--dark);
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:min(1120px,90%);
    margin:auto;
}

/* HEADER */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background: transparent;
    z-index:1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.header-container{
    height:100px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.logo {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    max-height: 85px; /* Asegura que nunca sobresalga de los 100px del header */
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 8px;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

.header.scrolled .logo img {
    width: 115px;
    max-height: 75px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.nav{
    display:flex;
    align-items:center;
    gap:34px;
}

.nav a{
    color: #ffffff;
    font-size:.95rem;
    font-weight:800;
    position:relative;
    transition:.3s ease;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.header.scrolled .nav a {
    color: var(--navy);
    text-shadow: none;
}

.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:3px;
    background:var(--red);
    border-radius:10px;
    transition:.3s ease;
}

.nav a:hover{
    color:var(--red);
}

.nav a:hover::after{
    width:100%;
}

.header-cta,
.header-cta:link,
.header-cta:visited {
    background: var(--red) !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 15px rgba(215, 25, 32, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    border: none !important;
}

.header-cta:hover,
.header-cta:active {
    background: var(--red-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(215, 25, 32, 0.35) !important;
    color: #ffffff !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.hamburger{
    display:none;
    border:none;
    background:none;
    color:#ffffff;
    font-size:1.8rem;
    cursor:pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

.header.scrolled .hamburger {
    color: var(--red);
    text-shadow: none;
}

/* HERO */

.hero{
    min-height:100vh;
    padding-top:160px; /* Bajado para dar más aire */
    position:relative;
    display:flex;
    align-items:center;
    overflow:hidden;

    background:
    linear-gradient(
        rgba(6,27,58,.72),
        rgba(6,27,58,.72)
    ),
    url("imagenes/ptoquetzal.jpeg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
    radial-gradient(
        circle at right center,
        rgba(215,25,32,.28),
        transparent 42%
    );
    pointer-events:none;
    z-index:1;
}

.hero::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:160px;
    background:linear-gradient(to top,#ffffff,transparent);
    z-index:1;
}

.hero-container{
    position:relative;
    z-index:2;
}

.hero-content{
    max-width:780px;
    color:white;
    padding-bottom: 100px; /* Previene empalme con el cuadro de datos */
}

.eyebrow{
    display:inline-block;
    padding:12px 22px;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.25);
    backdrop-filter:blur(10px);
    border-radius:999px;
    color:#ffffff;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:25px;
    text-shadow:0 3px 10px rgba(0,0,0,.4);
}

.eyebrow.dark{
    background:rgba(215,25,32,.1);
    color:var(--red);
    border-color:rgba(215,25,32,.2);
    text-shadow:none;
}

.hero h1{
    font-size:clamp(4rem,8vw,7rem);
    font-weight:900;
    line-height:.95;
    text-transform:uppercase;
    margin-bottom:25px;
    color:#ffffff;
    letter-spacing:-.06em;

    text-shadow:
    0 5px 25px rgba(0,0,0,.55),
    0 2px 8px rgba(0,0,0,.4);
}

.hero h1 span{
    color:#ff1c24;
    display:block;

    text-shadow:
    0 5px 25px rgba(0,0,0,.55),
    0 2px 8px rgba(0,0,0,.4);
}

.hero p{
    max-width:720px;
    font-size:1.45rem;
    font-weight:500;
    color:#ffffff;
    line-height:1.7;

    text-shadow:
    0 3px 15px rgba(0,0,0,.6);

    margin-bottom:40px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:42px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:15px 26px;
    border-radius:999px;
    font-weight:900;
    transition:.3s ease;
}

.btn-primary{
    background:#d71920;
    color:#fff;
    font-weight:800;

    box-shadow:
    0 15px 35px rgba(215,25,32,.45);

    transition:.3s ease;
}

.btn-primary:hover{
    transform:translateY(-4px) scale(1.03);
    background:#b90e14;
}

.btn-secondary{
    background:rgba(255,255,255,.12);
    color:#ffffff;
    border:1px solid rgba(255,255,255,.35);
    backdrop-filter:blur(12px);
}

.btn-secondary:hover{
    background:white;
    color:#061b3a;
}


/* HERO STATS - NEW SECTION */
.hero-stats-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Menor traslape */
    padding: 0 20px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 25px 20px; /* Más pequeño para verse uniforme */
    gap: 15px;
}

.hero-stat-card {
    text-align: center;
    border-right: 1px solid var(--border);
    padding: 10px;
}

.hero-stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.8rem; /* Texto más reducido */
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-number .counter {
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.8rem;
    color: var(--red);
}

.hero-stat-card p {
    color: var(--gray);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* GLOBAL UTILS */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ABOUT SECTION */
.about-section { padding: 120px 0 90px; background: white; }
.about-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-images { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; height: 520px; }
.img-large { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: var(--radius); 
    box-shadow: 0 15px 35px rgba(6, 27, 58, 0.12);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}
.img-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.img-small { 
    width: 100%; 
    height: calc(50% - 10px); 
    object-fit: cover; 
    border-radius: var(--radius); 
    box-shadow: 0 12px 28px rgba(6, 27, 58, 0.1);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}
.img-large:hover, .img-small:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 25px 45px rgba(6, 27, 58, 0.22);
    z-index: 5;
}
.section-subtitle { color: var(--navy); font-weight: 800; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.about-content h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 20px; font-weight: 900; letter-spacing: -0.04em; }
.about-content p { color: var(--gray); font-size: 1.05rem; margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-item i { font-size: 2rem; color: var(--gray); }
.stat-item strong { display: block; color: var(--navy); font-size: 1.1rem; }
.stat-item span { color: var(--gray); font-size: 0.9rem; }

/* SERVICES */
.services { padding: 90px 0; background: var(--light); }
.section-header-line { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 50px; }
.section-header-line::before, .section-header-line::after { content: ""; height: 1px; background: var(--red); width: 60px; }
.section-header-line h2 { color: var(--navy); font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px 30px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.service-icon-large i { font-size: 3.5rem; color: var(--navy); margin-bottom: 20px; }
.service-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.service-card ul { list-style: none; padding: 0; color: var(--gray); font-size: 0.95rem; }
.service-card ul li { margin-bottom: 8px; }

/* RUTAS ESTRATÉGICAS */
.rutas-section { background: var(--navy); color: white; position: relative; padding: 90px 0 0 0; }
.rutas-content { max-width: 600px; padding-bottom: 80px; }
.section-subtitle.light { color: var(--red); }
.rutas-content h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; margin: 20px 0; font-weight: 900; letter-spacing: -0.04em; }
.rutas-list { list-style: none; margin-bottom: 40px; }
.rutas-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.rutas-list li i { color: var(--white); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }
.rutas-stats { background: var(--navy-2); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.stats-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.stat-box { display: flex; align-items: center; gap: 15px; }
.stat-box i { font-size: 2.5rem; color: rgba(255,255,255,0.2); }
.stat-box strong { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-box span { font-size: 0.85rem; opacity: 0.8; line-height: 1.2; }

/* CLIENTES */
.clientes-section { padding: 80px 0; background: white; border-bottom: 1px solid var(--border); overflow: hidden; }
.section-title-small { color: var(--navy); font-size: 1.2rem; font-weight: 800; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; }
.clientes-marquee { display: flex; width: 100%; overflow: hidden; }
.marquee-content { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
  }
}

.cliente-logo-wrapper {
  background: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cliente-logo-wrapper img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.cliente-logo-wrapper:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* SECTORES */
.sectores-section { padding: 90px 0; background: var(--light); }
.sectores-container { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.sectores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card { background: white; border-radius: 12px; padding: 30px 10px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.sector-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.sector-card i { font-size: 2.5rem; color: var(--navy); margin-bottom: 15px; }
.sector-card p { color: var(--navy); font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.testimonios-wrapper { padding-left: 30px; border-left: 1px solid var(--border); }
.testimonio-card { margin-top: 30px; }
.quote-icon { font-size: 3rem; color: var(--red); opacity: 0.2; margin-bottom: 15px; }
.testimonio-text { font-size: 1.1rem; color: var(--navy); font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.testimonio-author { font-size: 0.9rem; color: var(--gray); font-weight: 600; }

/* CONTACT */
.contact-section { padding: 90px 0; background: white; }
.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-text h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 15px; font-weight: 900; letter-spacing: -0.04em; }
.contact-text p { color: var(--gray); margin-bottom: 30px; }
.contact-benefits { list-style: none; }
.contact-benefits li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.contact-benefits li i { color: var(--red); font-size: 1.2rem; }
.quote-form { display: flex; flex-direction: column; gap: 20px; }
.quote-form .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-form input, .quote-form select { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: var(--light); transition: 0.3s; }
.quote-form input:focus, .quote-form select:focus { outline: none; border-color: var(--red); background: white; }
.form-submit-row { display: flex; justify-content: flex-end; margin-top: 10px; }

/* FOOTER */
.footer { background: var(--navy); color: white; padding-top: 70px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 50px; background: white; padding: 5px; border-radius: 8px; margin-bottom: 20px; }
.brand-col p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: white; font-size: 1.2rem; transition: 0.3s; }
.footer-socials a:hover { color: var(--red); }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 20px; letter-spacing: 1px; color: white; font-weight: 800; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: 0.3s; }
.footer-col a:hover { color: white; }
.contact-col p { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 12px; }
.contact-col p i { color: var(--red); width: 15px; text-align: center; }
.footer-bottom { background: #041228; text-align: center; padding: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* RESPONSIVE UPDATES */
@media(max-width:1024px){
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero-stat-card { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .hero-stat-card:nth-child(3), .hero-stat-card:nth-child(4) { border-bottom: none; padding-bottom: 0; }
    .about-container, .sectores-container, .contact-container { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonios-wrapper { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 30px; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }

    /* HEADER RESPONSIVE */
    .header-container { height: 84px; }
    .logo { width: 145px; height: 84px; }
    .logo img { height: 68px; width: auto; }
    .header-actions { display: none; }
    .hamburger { display: block; }
    .nav { position: absolute; top: 84px; left: 0; width: 100%; background: white; flex-direction: column; align-items: center; padding: 26px; gap: 22px; display: none; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
    .nav.active { display: flex; }
    .nav a { color: var(--navy) !important; text-shadow: none !important; }
}
@media(max-width:768px){
    .quote-form .form-row { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { flex-direction: column; gap: 30px; }
    .about-images { grid-template-columns: 1fr; height: auto; }
    .img-large { height: 300px; }
    .img-col { flex-direction: row; height: auto; }
    .img-small { height: 150px; }
    .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
}
@media(max-width:480px){
    .hero-stats-grid { grid-template-columns: 1fr; }
    .hero-stat-card:nth-child(3) { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .footer-container { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
}

/* RUTAS MAP - FONDO DIFUMINADO */
.rutas-section {
    overflow: hidden; /* Evita que el mapa sobresalga */
}
.rutas-container-flex { 
    display: block; 
    position: relative; 
    z-index: 1;
}
.rutas-content {
    position: relative;
    z-index: 2;
    max-width: 850px; /* Le damos más espacio al texto */
    padding-bottom: 80px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6); /* Sombra para que las letras resalten sobre el mapa */
}
.rutas-map-img { 
    width: 100%; 
    padding-bottom: 80px; 
}
.rutas-map-img img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}
@media(max-width:768px){
    .rutas-map-img { padding-bottom: 40px; }
}

/* SECCIÓN DE VIDEO */
.video-section { 
    padding: 60px 0; 
    background: var(--light); 
}
.video-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 4px solid white;
    background: #000;
}

.video-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 200%; /* Para 2 videos */
}

.video-slide {
    width: 50%; /* Ocupará 100% de la vista actual (el wrapper) */
    flex-shrink: 0;
}

.video-slide video {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.video-nav:hover {
    background: var(--red);
    color: white;
}

.prev-video { left: 15px; }
.next-video { right: 15px; }

@media(max-width: 768px) {
    .video-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* NUEVAS ACTUALIZACIONES SDS */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* PUERTOS / ADUANAS */
.map-expanded {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%) scale(1.4);
    width: 90%;
    max-width: 1200px;
    mix-blend-mode: screen; 
    opacity: 0.45; /* Difuminado para no molestar lectura */
    z-index: 0; /* Por debajo del texto */
    pointer-events: none; /* No afecta clics en el texto */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}
.puertos-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--red);
}
.puertos-title {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}
.puertos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.puertos-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
}
.puertos-list li i {
    color: var(--red);
    font-size: 0.9rem;
}

/* GALERÍA DE OPERACIONES */
.gallery-section {
    padding: 80px 0;
    background: white;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

/* ESTILO PARA LOGOS DE CLIENTES */

:root{
    --lw-bg: #ffffff;
    --lw-fade: #ffffff;
    --lw-gap: 64px;
    --lw-logo-h: 160px;
    --lw-speed: 30s;
    --lw-text: #6b6f76;
    --lw-accent: #2b2f36;
  }
 
  .lw-section{
    background: var(--lw-bg);
    padding: 56px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    overflow: hidden;
  }
 
  .lw-title{
    margin: 0 0 36px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lw-text);
  }
 
  .lw-viewport{
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  }
 
  .lw-track{
    display: flex;
    align-items: center;
    gap: var(--lw-gap);
    width: max-content;
    animation: lw-scroll var(--lw-speed) linear infinite;
  }
 
  .lw-section.lw-paused-hover .lw-track:hover{
    animation-play-state: paused;
  }
 
  .lw-item{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--lw-logo-h);
  }
 
  .lw-item img{
    height: 100%;
    width: 100%;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }
 
  .lw-item a{
    display: flex;
    align-items: center;
  }
 
  .lw-item img:hover{
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
  }
 
  @keyframes lw-scroll{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
 
  @media (prefers-reduced-motion: reduce){
    .lw-track{
      animation: none;
      flex-wrap: wrap;
      justify-content: center;
    }
    .lw-viewport{
      -webkit-mask-image: none;
      mask-image: none;
    }
  }
 
  @media (max-width: 640px){
    :root{
      --lw-gap: 40px;
      --lw-logo-h: 30px;
    }
    .lw-section{ padding: 40px 32px; }
  }

/* FIN DE ESTILO PARA LOGOS D ECLIENTES */


/* AVISO IMPORTANTE */
.info-importante-section {
    padding: 40px 0 20px 0;
    background: var(--light);
}
.info-importante-wrapper {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-top: 5px solid var(--red);
    display: flex;
    justify-content: center;
}
.info-importante-wrapper img {
    border-radius: 8px;
    max-height: 500px;
    object-fit: contain;
}

/* CONTACTO FOOTER ENLACES */
.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}
.footer-link:hover {
    color: white;
}

.mt-4 { margin-top: 1.5rem !important; }

/* Responsive ajustes para Galería y Puertos */
@media(max-width:768px){
    .puertos-list-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-auto-rows: 150px; }
}

/* DEVELOPMENT BANNER */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navy);
    color: #fff;
    z-index: 99999;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: transform 0.4s ease-in-out;
}
.dev-banner.hidden {
    transform: translateY(-100%);
}
.dev-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    text-align: center;
}
.dev-banner-content i {
    font-size: 1.3rem;
    color: var(--red);
}
.dev-banner-content p {
    margin: 0;
    line-height: 1.5;
}
.dev-banner-content strong {
    font-weight: 800;
    color: var(--red);
}
.close-banner-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.close-banner-btn:hover {
    color: var(--red);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .dev-banner {
        padding: 10px 30px 10px 15px;
    }
    .dev-banner-content p {
        font-size: 0.8rem;
    }
}

@media(max-width: 1200px) {
    .nav {
        gap: 20px;
    }
    .header-actions {
        gap: 8px;
    }
    .header-cta,
    .header-cta:link,
    .header-cta:visited {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }
}
