#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #005c92; /* Puedes cambiar color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gif-loader {
    width: 180px; /* Ajusta el tamaño del GIF */
}

html, body {
    overflow-x: hidden;
}


/* NAV FIJO CON TRANSICIÓN */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 801;
    background: rgba(255, 255, 255, 0);
    padding: 19px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}


.main-header.scrolled {
    background: rgba(255, 255, 255, 1);
    padding: 28px 0; /* más pequeño al bajar */
    
}

.logo {
    position: relative;
    height: 60px;
    width: 140px; /* ajusta si ocupa más */
}

.logo img {
    position: absolute;
    top: 0;
    left: 0;
    height: 86px;
    transition: opacity 0.3s ease;
}

.logo-default {
    opacity: 1;
}

.logo-scrolled {
    opacity: 0;
}

.main-header.scrolled .logo-default {
    opacity: 0;
}

.main-header.scrolled .logo-scrolled {
    opacity: 1;
}


.nav a {
    color: white;
    transition: color 0.3s ease;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
}

.main-header.scrolled .nav a {
    color: black;
}

.main-header.scrolled .hamburger span { 
    background: #111 !important; 
}


/* Contenedor nav */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Banner que cubre todo */
.hero-banner {
    width: 100%;
    height: 100vh; 
    background: url('../img/mundoBien.gif') center/cover no-repeat;
    margin-top: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Capa oscura encima del fondo, debajo del contenido */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;                 /* atajo para top:0; right:0; bottom:0; left:0; */
    /* Si prefieres escribir explícito usa top/left/width/height */
    background: rgba(0, 54, 96, 0.17);
    z-index: 1;
    pointer-events: none;     /* que no bloquee clicks */
    /* mix-blend-mode: multiply;  opcional para otro efecto */
}

/* Para que el texto o imagen queden por encima */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;          /* evita que el texto toque bordes en pantallas pequeñas */
    max-width: 1100px;
    font-size: 24px;
}

/* Tipografía */
.hero-title {
    font-size: 3.6rem;        /* ajusta según necesites */
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.05;
     font-family: "Playfair Display", serif;
   
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 12px;
    letter-spacing: 1px;
    margin-bottom: 0;
     font-family: "Inter", sans-serif;
}

/* Responsivo: ajustar tamaños en pantallas pequeñas */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-banner { height: 70vh; }
    
    .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;          /* evita que el texto toque bordes en pantallas pequeñas */
    max-width: 1100px;
    font-size: 25px;
}
}
/* Animación de entrada suave */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Puedes agregar delays si quieres que entren uno por uno */
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}


.hero-bannerA {
    width: 100%;
    height: 69vh; 
    background: url('../img/TransporteMar.jpg') center/cover no-repeat;
    margin-top: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

/* Capa oscura encima del fondo, debajo del contenido */
.hero-bannerA::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* ajusta la opacidad aquí */
    z-index: 1;
}

.hero-bannerE {
    width: 100%;
    height: 69vh; 
    background: url('../img/ocean-.png') center/cover no-repeat;
    margin-top: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

/* Capa oscura encima del fondo, debajo del contenido */
.hero-bannerE::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.42); /* ajusta la opacidad aquí */
    z-index: 1;
}



/* Logo dentro del banner */
.hero-logo {
    width: 49%;          /* ajusta el tamaño del logo */
    max-width: 350px;    /* límite para pantallas grandes */
    height: auto;
    object-fit: contain;
    margin-top: 20px;
}


.hero-bannerC {
    width: 100%;
    height: 69vh; 
    background: url('../img/planeight.jpg') center/cover no-repeat;
    margin-top: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
}

/* Capa oscura encima del fondo, debajo del contenido */
.hero-bannerC::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); /* ajusta la opacidad aquí */
    z-index: 1;
}

/* Para que el banner suba debajo del nav */
body {
    margin: 0;
    padding: 0;
}
    


/* --- Navegación desktop --- */
.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: 0.3s;
}

.nav ul li a:hover {
    color: #ff8000;
}

/* --- Botón hamburguesa --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    
    
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    display: block;
    border-radius: 5px;
    transition: 0.3s;
 
}

/* Animación del botón al abrir */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    /* Ocultar nav */
    .nav {
        position: absolute;
        top: 80px;
        right: 0;
        background: #ffffff;
        width: 230px;
        padding: 20px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        display: none;
        animation: slide 0.3s ease forwards;
        text-align: center;
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav.active {
        display: block;
    }
    .nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    transition: 0.3s;
}
    /* Logo dentro del banner */
.hero-logo {
    width: 61%;          /* ajusta el tamaño del logo */
    max-width: 350px;    /* límite para pantallas grandes */
    height: auto;
    object-fit: contain;
}
    
    .hero-title {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 1px;
}

}

/* Animación slide */
@keyframes slide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Overlay (fondo oscuro) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 50;
}

/* Mostrar overlay cuando está activo */
.overlay.active {
    display: block;
}

/* MINI SECCIÓN FLOTANTE ENTRE EL HERO Y LA SIGUIENTE SECCIÓN */
.mini-floating-box {
    width: 29%;
    max-width: 850px;
    background: #ffffff;
    padding: 41px 45px;
    border-radius: 4px;
    box-shadow: 0 10px 35px rgba(0, 54, 96, 0.29);
    position: relative;
    margin: -104px auto 40px auto;   /* ESTE NEGATIVO HACE QUE SE META ENTRE LAS DOS SECCIONES */
    z-index: 10;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    margin-left: 89px;
     font-family: "Inter", sans-serif;
}

/* Titulo */
.mini-floating-box h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 12px;
}

/* Texto */
.mini-floating-box p {
    font-size: 1.12rem;
    color: #000000;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .mini-floating-box {
        width: 63%;
        padding: 22px;
        margin-top: -80px;
        margin-left: auto;
    }
    .mini-floating-box h3 {
        font-size: 1.5rem; }
}



/* */
.creative-section {
    background: linear-gradient(135deg, #ffffff, #ffffff);
    padding: 1px 15px;
    font-family: "Poppins", sans-serif;
    color: #000000;
    position: relative;
    overflow: hidden;
     
    
}

.creative-section {
    margin-top: calc(-104px + 40px);
     overflow-x: hidden;
}



.creative-section::after {
    width: 450px;
    height: 450px;
    background: #ffb100;
    bottom: -120px;
   
}

.creative-container {
    max-width: 1168px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: -10px;
    position: relative;
    z-index: 2;
}

.creative-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: #ff9400;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.creative-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #000000;
}

.creative-image img {
    width: 100%;
    border-radius: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .creative-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .creative-section {
    margin-top: calc(-54px + 40px);
}

}


/* ===== SECCIÓN CREATIVA M/V/V ===== */

.mv-creative {
    background: linear-gradient(135deg, #0d1b2a, #20354a);
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    color: aliceblue;
}

/* Luces de fondo */
.mv-creative::before,
.mv-creative::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}
.mv-creative::before {
    width: 350px;
    height: 350px;
    background: #4cc9f0;
    top: -50px;
    left: -100px;
}
.mv-creative::after {
    width: 450px;
    height: 450px;
    background: #f72585;
    bottom: -120px;
    right: -150px;
}

.mv-header {
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.mv-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
}

.mv-header p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Contenedor de tarjetas */
.mv-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
    z-index: 2;
}

/* Tarjetas */
.mv-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Efecto glow al hover */
.mv-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 168, 0, 0.24);
    box-shadow: 0 15px 40px rgba(204, 130, 26, 0.35);
}

/* Iconos */
.mv-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(255,255,255,0.3);
   text-align: center;
}

/* Titulos */
.mv-item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    color: #ff9400;
}

/* Texto */
.mv-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
    .mv-cards {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la sección de servicios */
.servicios {
  position: relative;
  padding: 112px 25px;
  text-align: center;
  background: url('../img/banner_servicios.jpg') center/cover no-repeat;
  overflow: hidden;
    font-family: "Poppins", sans-serif;
    margin-top: 38px;
}

/* Capa oscura encima del fondo */
.servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.61);
  z-index: 1; /*  Muy importante */
}

/* Contenido por encima del oscuro */
.servicios h2,
.servicios-container,
.servicio {
  position: relative;
  z-index: 2; /*  El contenido se ve arriba */
}

.servicios h2 {
  font-size: 41px;
  margin-bottom: 76px;
  color: #fff;
  font-weight: 700;
    margin-top: -57px;
}

/* Contenedor de tarjetas */
.servicios-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Tarjeta servicio */
.servicio {
  width: calc(33.33% - 20px);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  transition: transform .3s ease;
  overflow: visible; 
  position: relative;
  z-index: 2;
     
}

/* Efecto levitar */
.servicio:hover {
  transform: translateY(-61px);
}

/* Imagen */
.servicio-imagen {
   height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.servicio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

/* Zoom imagen */
.servicio:hover .servicio-imagen img {
  transform: scale(1.2);
}

/* Info */
.servicio-info {
  padding: 20px;
  text-align: center;
}

.servicio-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #003366;
}

.servicio-info p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #444;
}

/* Botón */
.servicio-info a {
  background-color: #0074D9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.servicio-info a:hover {
  background-color: #005EA8;
}

/*  Responsivo */
@media (max-width: 768px) {
  .servicios-container {
    flex-direction: column;
    align-items: center;
  }
  .servicio {
    width: 100%;
    max-width: 380px;
  }
}



/* Fondo azul tipo hero */
.logos-hero {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: flex-start;
    align-items: center;
    
}

.logos-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 86, 255, 0.4); 
    
}

.logos-hero * {
    position: relative;
    z-index: 2;
}

/* Título */
.logos-hero h2 {
    font-size: 41px;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
   
}

/* Grid de logos */
.logos-container {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    
    
}

/* Contenedor de cada logo */
.logo-item {
    position: relative;
    width: 160px;
    height: 160px;
    cursor: pointer;
    align-items: center;
    
   
    
}

/* Imagenes */
.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .4s ease;
    position: absolute;
    align-content: center;
   
}

.logo-color {
    opacity: 0;
}

.logo-item:hover .logo-color {
    opacity: 1;
}

.logo-item:hover .logo-blanco {
    opacity: 0;
}

/* Reveal */
.reveal {
    opacity: 4;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax en escritorio */
/* PARALLAX DESKTOP */
.parallax {
    position: relative;
    background-image: url('../img/planeight.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
}

/* PARALLAX MÓVIL  */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        overflow: visible; /* CLAVE para que no corte tu contenido */
    }
}


/* En móviles → 2 columnas */
@media (max-width: 480px) {
    .logos-container {
        display: grid;
        grid-template-columns: repeat(2, 0fr);
        gap: 9px;
        width: 100%;
      
      
       
    }

    .logo-item img {
        width: 100%;
        max-width: 166px; /* ajusta si quieres más chico/grande */
        margin: 0 auto;
       
    }
}

/* SECCIÓN DE MIS CONTENEDORES*/
.catalogo-contenedores {
  padding: 71px;
  padding-bottom: 120px;
  position: relative;
  text-align: center;
  font-family: "Poppins", sans-serif;
  z-index: 2;
  overflow: visible !important;
  margin-top: -57px;
}

/* Fondo flotante */
.catalogo-contenedores::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
  z-index: 0;
  bottom: -24px;
  right: 0;
  width: 250px;
  height: 250px;
  animation-delay: 13s;
}

@keyframes floaty {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Títulos */
.titulo-catalogo {
  font-size: 40px;
  margin: 50px 0 46px;
  font-weight: 700;
  color: #ff9400;
}

.categoria h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #003660;
}

/* GRID */
.contenedores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
}

/* ---------------------------------------- */
/* TARJETA FLIP                             */
/* ---------------------------------------- */

.contenedor-card {
  width: 340px;
  height: 292px;
  perspective: 1000px;
  position: relative;
}

.card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s ease;
  position: relative;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Caras */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  top: 0;
  left: 0;
}

/* FRONT */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front span {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9400;
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  z-index: 5;
}

/* BACK */
.card-back {
  transform: rotateY(180deg);
  position: relative;
  padding: -47px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
    backface-visibility: hidden;
}

/* Imagen del BACK (misma que en el FRONT) */
.card-back img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.71; 
  z-index: 1;
}

/* Contenido encima de la imagen */
.card-back h3,
.card-back a,
.card-back .back-btn {
  position: relative;
  z-index: 3;
}

.card-back h3{
    color: #ffffff;
}

/* Contenedor de los links */
.card-back .links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: -16px;
}

/* Estilos de cada link */
.card-back .links-grid a {
    background: #003660;
    color: #fff;
    padding: 6px 4px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    display: block; /* Para que ocupe toda su celda */
    font-size: 13px;
}


.card-back a:hover {
  background: #00528f;
}


/* Botón regresar */
.back-btn {
  margin-top: auto;
  background: #ff9400;
  padding: 8px 12px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
     bottom: 7px;
  
}

/* Ocultar FRONT completo cuando está volteada */
.card.flipped .card-front {
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ---------------------------------------- */
/* RESPONSIVE MÓVIL                          */
/* ---------------------------------------- */
@media (max-width: 768px) {

.contenedores-grid {
    display: none;
  }

.swiper {
    display: block !important;
    padding: 0 !important;
    height: auto;
  }

.contenedor-card {
    width: 100%;
    height: 330px;
    margin: 0 auto !important;
  }
.card-front,
.card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back {
  pointer-events: auto !important;
  z-index: 2;
}

.card-front {
  z-index: 1;
}

    
.card-back img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;   /* menos opacidad para que el texto se vea mejor en móvil */
  z-index: 1;
}
.card-back > * {
  position: relative;
  z-index: 3;
}

.swiper-button-next,
.swiper-button-prev {
    top: 50% !important;
    transform: translateY(-50%) scale(0.9);
    z-index: 50 !important;
    color: #ff9400 !important;
  }

  .swiper-button-next { right: 5px !important; }
  .swiper-button-prev { left: 5px !important; }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    color: #ffffff !important;
    font-size: 30px !important;
  }
    
    /* Botón regresar */
.back-btn {
     bottom: 30px;
  
}
    
    .card-front span {
  bottom: 30px;
 
}

}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.53);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn .25s ease forwards;
}

.modal.show { display: flex !important; }

/* TARJETA ULTRA-COMPACTA */
.modal-content {
  background: rgba(70,70,70,.45);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  padding: 10px 14px;          /* súper compacto */
  border-radius: 10px;
  width: 90%;
  max-width: 240px;            /* más delgado */
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: slideModal .25s ease forwards;
  position: relative;
}

/* BOTÓN CERRAR MINI */
.close-modal {
  background: linear-gradient(135deg,#1c6ded,#0b3fae);
  padding: 3px 8px;           /*  más pequeño */
  font-size: 11px;
  border-radius: 6px;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  margin-bottom: 6px;         /* reduce altura */
}

.close-modal:hover {
  transform: scale(1.06);
}

/* IMAGEN SUPER MINI */
.modal-content img {
  width: 100%;
  max-height: 140px;           /*  de 100px → 70px */
  object-fit: contain;
  margin: 6px auto 8px;       /*  menos espacio */
  display: block;
}

/* TIPOGRAFÍA ULTRA MINI */
.modal-content h3 {
  font-size: 14px;           
  margin-bottom: 4px;         
  color: #a7d4ff;
}

/* TEXTO MÁS APRETADO */
.modal-content p,
.modal-content tr th ul li{
  font-size: 15.8px;         
  line-height: 1.15;         
  margin: 2px 0;              
}

/* LISTA MÁS COMPACTA */
.modal-content td {
  padding-left: -12px;
    font-size: 14px;
  margin: 0 0 4px;
}

/* RESPONSIVE */
@media (max-width: 420px) {
  .modal-content {
    max-width: 210px;
    padding: 9px 12px;
  }

  .modal-content img {
    max-height: 60px;
  }
}


/* SECCIÓN NUESTRS COMPAÑIA */
.compania4 {
    padding: 100px 40px;
    background: #f5f9fc;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
    position: relative;
}

/* Línea animada detrás */
.compania4::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 91, 146, 0.10), rgba(0, 91, 146, 0));
    animation: slideBg 10s linear infinite;
    z-index: 0;
}

@keyframes slideBg {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* HEADER */
.compania4-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.compania4-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #ff9400;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}

.compania4-header p {
    font-size: 20px;
    color: #005c92;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.2s;
}

/* CUERPO DIVIDIDO */
.compania4-body {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: start;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.c4-left,
.c4-right {
    width: 50%;
    font-size: 18px;
    line-height: 1.7;
    color: #003660;
    opacity: 0;
}

.c4-left {
    animation: fadeLeft 1s ease forwards;
}
.c4-right {
    animation: fadeRight 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeLeft {
    from { transform: translateX(-80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeRight {
    from { transform: translateX(80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* FRANJA FINAL */
.compania4-franja {
    background: #003660;
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    font-size: 20px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .compania4-body {
        flex-direction: column;
    }
    .c4-left, .c4-right {
        width: 100%;
    }
}




/* ============================== */
/*      SECCIÓN VENTAJAS GOLD     */
/* ============================== */

.ventajas {
    padding: 100px 0;
    background: #fafafa;
    font-family: "Poppins", sans-serif;
}

.ventajas .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 25px;
}

/* ------------------------------ */
/*            HEADER              */
/* ------------------------------ */
.ventajas-header {
    text-align: center;
    margin-bottom: 70px;
}

.ventajas-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.ventajas-header h2::after {
    content: "";
    width: 65px;
    height: 3px;
    background: #ff9400; /* DORADO */
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.ventajas-header p {
    font-size: 18px;
    color: #525866;
    margin-top: 25px;
}

/* ------------------------------ */
/*              CARDS             */
/* ------------------------------ */
.ventajas-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.v-card {
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #ececec;
    text-align: left;
    transition: all .3s ease;
    position: relative;
}

/* Línea dorada lateral */
.v-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    height: calc(100% - 40px);
    width: 4px;
    background: #ff9400;
    border-radius: 0 4px 4px 0;
    transition: height .3s ease;
}

/* Hover: elegante */
.v-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    border-color: #e7e7e7;
}

.v-card:hover::before {
    height: calc(100% - 20px);
}

/* Iconos */
.v-icon {
    font-size: 38px;
    color: #ff9400;
    margin-bottom: 18px;
    display: block;
}

/* Títulos */
.v-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 8px;
}

/* Texto */
.v-card p {
    font-size: 15px;
    color: #5b616e;
    line-height: 1.55;
}


/* ============================== */
/*     ESTILO DIFERENTE MÓVIL     */
/* ============================== */

@media (max-width: 600px) {

    .ventajas {
        padding: 60px 0;
        background: #ffffff;
    }

    .ventajas-header h2 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .ventajas-header p {
        font-size: 16px;
        margin-top: 12px;
    }

    /* Cambia el grid → lista vertical */
    .ventajas-cards {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* Estilo móvil tipo “tarjeta horizontal” */
    .v-card {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 18px;
        border-radius: 12px;
        background: #f7f7f7;
        border: none;
        box-shadow: none;
        position: relative;
    }

    /* Quitar línea dorada lateral */
    .v-card::before {
        display: none;
    }

    /* Icono a la izquierda */
    .v-icon {
        font-size: 32px;
        min-width: 32px;
        color: #ff9400;
        margin: 0;
    }

    /* Contenido a la derecha */
    .v-card h3 {
        font-size: 18px;
        margin-bottom: 4px;
        color: #1a1f36;
    }

    .v-card p {
        font-size: 14px;
        color: #58606e;
        margin: 0;
        line-height: 1.4;
    }

    /* Hover no aplica en móvil */
    .v-card:hover {
        transform: none;
        box-shadow: none;
    }
}




/* ==== SECCIÓN 2x2 ==== */
.servicios-2x2 {
  padding: 85px 0;
  background: #ffffff;
  color: #fff;
}

.title-2x2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

/* GRID 2x2 */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ==== CARD ==== */
.card-2x2 {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 270px;
  cursor: pointer;
  display: flex;
  align-items: end;
}

.card-2x2 img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(65%);
  transition: 0.45s ease;
}

/* Overlay glass + diagonal */
.overlay-2x2 {
  position: absolute;
  width: 100%;
  height: 60%;
  bottom: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  clip-path: polygon(0 25%, 100% 0%, 100% 100%, 0 100%);
  transition: 0.45s ease;
}

/* contenido */
.content-2x2 {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.content-2x2 h3 {
  font-size: 1.25rem;
  margin-top: 6px;
  margin-bottom: 5px;
  font-weight: 600;
}

.content-2x2 p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Icono */
.icon-2x2 {
  font-size: 1.9rem;
  padding: 8px 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  display: inline-block;
}

/* Hover animación */
.card-2x2:hover img {
  transform: scale(1.12);
  filter: brightness(85%) saturate(120%);
}

.card-2x2:hover .overlay-2x2 {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
}



/*secion de servicios*/
.section-interactiva {
    position: relative; /* Necesario para el ::before */
  display: flex;
  gap: 43px;
  max-width: 1100px;
  margin: 178px auto 0;
  align-items: center;
  padding: 87px 55px; 
  min-height: 350px; 
  background: url('../img/principales.jpg') center/cover no-repeat;
  z-index: 2;
       margin-top: 5%;
    flex-direction: column; 
  }

.section-interactiva::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.67);
  z-index: 1; 
}


.section-interactiva * {
  position: relative;
  z-index: 2; /* Asegura que el contenido vaya encima del overlay */
}

.section-interactiva h2 {
  color: #ffffff;
}
.section-interactiva h2 {
  order: -1;   /* Manda el h2 al inicio SOLO en desktop */
}

.contenido-servicios {
    display: flex;
    gap: 43px;
    width: 100%;
}

  /* Columna izquierda */
  .options {
    flex: 1;
    
  }
  .option {
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
    background: #003660;
    border-radius: 6px;
   font-family: fredoka;
  }
  .option:hover,
  .option.active {
    border-color: #0077b6;
    background: #c5ebff;
    color: #003660;
    font-weight: bold;
   
  }

  /* Columna derecha */
  .display {
    flex: 1.5;
    position: relative;
    min-height: 360px;
      
  }
  .item {
    position: absolute;
    top: 10px; left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    gap: 20px;
    align-items: center;
      backdrop-filter: blur(18px);  
  }


  .item img {
    width: 45%;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .item .info {
    flex: 1;
  }
  .item .info h3 {
    margin-bottom: 10px;
    color: #0077b6;
  }
  .item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
  }

  /* Responsivo */
  @media (max-width: 768px) {
    .section-interactiva {
        flex-direction: column;
        padding: 262px 30px;
        margin-top: 17%;
    }

    .contenido-servicios {
        flex-direction: column;  
        gap: 20px;
    }
      .section-interactiva h2 {
      flex-direction: column;
      margin-top: -57%;
          margin-bottom: 5px;
          color: #ffffff;
        
    }
    .options, .display {
      width: 100%;
    }
    .item {
      flex-direction: column;
      text-align: center;
    }
    .item img {
      width: 100%;
      margin-bottom: 15px;
    }
  .options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
    gap: 12px;
    margin-top: 38px;
  }

  .option {
    margin-bottom: 0;  /* quita espacio extra */
    text-align: center;
    font-size: 1rem;   /* un poco más compacto en móvil */
  }
}





.section-interactiva2 {
  position: relative; /* Necesario para el ::before */
  display: flex;
  gap: 43px;
  max-width: 1100px;
  margin: 178px auto 0;
  align-items: center;
  padding: 87px 55px; 
  min-height: 350px; 
  background: url('../img/complementarios.png') center/cover no-repeat;
  z-index: 2;
     margin-top: 5%;
    flex-direction: column;
}

.section-interactiva2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.76);
  z-index: 1; 
}


.section-interactiva2 * {
  position: relative;
  z-index: 2; /* Asegura que el contenido vaya encima del overlay */
}


.section-interactiva2 h2 {
  color: #ffffff;
}

  /* Columna izquierda */
  .options {
    flex: 1;
    
  }
  .option {
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
    background: #003660;
    border-radius: 6px;
   font-family: fredoka;
      margin-top: 7px;
  }
  .option:hover,
  .option.active {
    border-color: #0077b6;
    background: #c5ebff;
    color: #003660;
    font-weight: bold;
   
  }

  /* Columna derecha */
  .display {
    flex: 1.5;
    position: relative;
    min-height: 360px;
      
  }
  .item {
    position: absolute;
    top: 10px; left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    gap: 20px;
    align-items: center;
      backdrop-filter: blur(18px);
  }


  .item img {
    width: 45%;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .item .info {
    flex: 1;
  }
  .item .info h3 {
    margin-bottom: 10px;
    color: #0077b6;
  }
  .item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
  }

  /* Responsivo */
  @media (max-width: 768px) {
    .section-interactiva2 {
      flex-direction: column;
      margin-top: 20%;
        padding: 234px 55px; 
        
    }
      .section-interactiva2 h2 {
      flex-direction: column;
      margin-top: -57%;
          margin-bottom: 5px;
          color: #ffffff;
        
    }
    .options, .display {
      width: 100%;
    }
    .item {
      flex-direction: column;
      text-align: center;
    }
    .item img {
      width: 100%;
      margin-bottom: 15px;
    }
  .options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
    gap: 12px;
    margin-top: 38px;
  }

  .option {
    margin-bottom: 0;  /* quita espacio extra */
    text-align: center;
    font-size: 1rem;   /* un poco más compacto en móvil */
  }
      .item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
          margin-left: -23px;
  }
      
    
}

/*  CONTENEDOR PRINCIPAL */
.contacto-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    padding: 60px 25px;
    background: #f9fafc;
}

/*  TARJETA IZQUIERDA - Profesional */
.contacto-card {
    flex: 1;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid rgba(0, 55, 115, 0.15);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: "Inter", Arial, sans-serif;
}

.contacto-card h4,
.contacto-card p,
.contacto-card li {
    color: #002744;
}

/*  FRASE DERECHA - Profesional */
.contacto-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-family: "Inter", Arial, sans-serif;
 
    
}

/* Título */
.contacto-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    background-color: #0077b6;
    border-radius: 17px;
    padding: 66px 10px 57px;
    text-align: center;
}



/* Descripción */
.contacto-desc {
    font-size: 1.18rem;
    line-height: 1.55;
    color: #19344A;
    max-width: 350px;
    margin-bottom: 25px;
    font-weight: 400;
}

/*  Imagen */
.contacto-cot img {
    width: 575px;
    opacity: 0.85;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.08));
    margin-top: 62px;
     border-radius: 20px;
    margin-left: 124px;
   
}

/*  RESPONSIVO */
@media (max-width: 768px) {
    .contacto-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contacto-right {
        align-items: center;
        text-align: center;
    }

    .contacto-desc {
        max-width: 450px;
    }

    .contacto-cot img {
        width: 365px;
        margin-top: 51px;
        margin-left: 1px;
    }
}


/*  Botón flotante WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp img {
    width: 32px;
    height: 32px;
}

.btn-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}




.footer {
    position: relative;
    background: url('../img/TransporteMar.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 40px 20px 28px; 
    font-family: 'Poppins', sans-serif;
    margin-top: 80px;
    z-index: 10;
   
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 27, 53, 0.78);
    z-index: 1;
}

.footer .container,
.footer-content,
.footer-bottom {
    position: relative;
    z-index: 2;
}

/* *******************************
    DESKTOP – UNA SOLA LÍNEA
*********************************/
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: nowrap;  
}

/* Logo */
.footer-logo-img img {
    width: 150px; /* un poco más pequeño */
    height: auto;
}

/* Texto */
.footer-logo p {
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Listado */
.footer-contact ul li {
    margin-bottom: 14px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.22);
    margin-top: 25px;  /* más compacto */
    padding-top: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #caddf5;
}

/*  TODO EN UNA SOLA COLUMNA EN MÓVIL */
@media (max-width: 900px) {

    /*  El contenedor principal también en columna */
    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
    }

    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 25px;
    }

    .footer-logo,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 380px;  
        margin: 0 auto;
    }

    .footer-contact ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 0;
        margin: 0;
    }

    .footer-contact li {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .footer-logo-img img {
        margin: 0 auto;
    }

    .footer-bottom {
        text-align: center;
        width: 100%;
    }
}



/* Animación para cundo bajo */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px); /* Solo mover hacia abajo */
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}




.incoterms-section{
    padding:60px 0;
    background:#f7f9fc;
}
.incoterms-container{
    display:flex;
    gap:40px;
    max-width:1200px;
    margin:auto;
}

.incoterms-section h2{
    color: #ff9400;
    text-align: center;
}
.incoterms-tabs{
    display:flex;
    gap:10px;
    height:260px;
    align-items:flex-end;
}
.incoterms-tabs .tab{
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    background:#0a1c3a;
    color:white;
    padding:44px 12px;
    cursor:pointer;
    border-radius:8px;
    font-size:18px;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
}
.incoterms-tabs .tab:nth-child(even){
    background:#1d2a4d;
}
.incoterms-tabs .tab:hover{
    background:#ff9400;
}
.incoterms-content{
    background:rgba(255, 255, 255, 0.56);
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 20px rgba(0,0,0,0.1);
    flex:1;
    margin-left: -29px;
   
}
.content-box{
    margin-top:20px;
    line-height:1.7;
}

/* ====== RESPONSIVE ====== */
@media(max-width: 992px){
.incoterms-container{
flex-direction: column;
}
.incoterms-tabs{
height: auto;
justify-content: flex-start;
overflow-x: auto;
padding-bottom: 15px;
}
.incoterms-tabs .tab{
height: 260px;
width: 70px;
font-size: 14px;
}
}

@media(max-width: 600px){
.incoterms-tabs{
gap: 10px;
    margin-left: 16px;
}
.incoterms-tabs .tab{
height: 177px;
width: 60px;
padding: 15px;
font-size: 12px;
  
}
.incoterms-content{
padding:32px;
   margin-left: 20px;
    margin-right: 20px;
    
   
}
}

/* active tab style */
.incoterms-tabs .tab.active{ box-shadow: 0 6px 18px rgba(23,59,119,0.25); transform: translateY(-8px); background: #2b6fb0 !important; }



.cotizacion-form {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: "Poppins", sans-serif;
}

.cotizacion-form h2 {
    margin-bottom: 5px;
    color: #003660;
}

.cotizacion-form p {
    margin-bottom: 20px;
    color: #444;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.cotizacion-form input,
.cotizacion-form select,
.cotizacion-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cfd5e1;
    border-radius: 8px;
    outline: none;
    transition: .3s;
    font-size: 15px;
}

.cotizacion-form textarea {
    height: 120px;
    resize: none;
}

.cotizacion-form input:focus,
.cotizacion-form select:focus,
.cotizacion-form textarea:focus {
    border-color: #003660;
    box-shadow: 0 0 5px rgba(0, 54, 96, 0.2);
}

.btn-enviar {
    width: 100%;
    padding: 14px;
    background: #ff9400;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.btn-enviar:hover {
    background: #003660;
}





/* BOTÓN FLOTANTE */
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #003660;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  z-index: 9999;
}

#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 81px;
  width: 300px;
  height: 500px; 
  background: white;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex; 
  flex-direction: column; 
  z-index: 99999;
  font-family: sans-serif;
}

#chat-widget {
  display: none;
}

#chat-widget.open {
  display: flex !important;
}


#chat-header {
  background: #003660;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between; 
}

/* TÍTULO */
.chat-title {
  font-size: 16px;
  font-weight: bold;
}

 
/* CUERPO DEL CHAT */
#chat-body {
  flex: 1; 
  padding: 14px;
  overflow-y: auto; 
  overflow-x: hidden;
}


/* BURBUJAS — BOT */
#chat-body .bot {
  max-width: 85%;
  background: #e5f1ff;
  padding: 10px 10px;
  border-radius: 12px;
  color: #003660;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  font-size: 14px;
  line-height: 1.1em;
	  margin-bottom: 17px;
}

/* BURBUJAS — USER */
#chat-body .user {
  max-width: 9%;
  background: #003660;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  margin-left: 195px;
  border-bottom-right-radius: 3px;
  font-size: 14px;
  line-height: 1.6em;
	 margin-bottom: 17px;
}

#chat-input-box {
  padding: 6px;
  border-top: 1px solid #eee;
  background: #fff;
}


#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

#send-btn {
  background: #ff9400;
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
	
}


/* ICONOS A LA DERECHA */
.chat-actions {
  display: flex;
  gap: 8px;
}

/* BOTONES */
.chat-actions button {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.chat-actions button:hover {
  background: rgba(255,255,255,0.2);
}



.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 320px;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.25s ease;
}

.modal-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #003660;
}

.modal-box p {
  font-size: 14px;
  color: #555;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#cancel-close {
  background: #eee;
  color: #333;
}

#confirm-close {
  background: #003660;
  color: #fff;
}

#confirm-close:hover {
  background: #00284a;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}




