/* Tipografía base */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #222;
  /*background-image: url("../img/txtx3.png"),url('../img/txtx4.png');
  background-position: left center, right center;*/ /* una a la izquierda, otra a la derecha */
  /*background-repeat: repeat-y, repeat-y;*/          /* se repiten verticalmente */
  /*background-size: auto, auto;*/                    /* tamaño original, puedes cambiarlo */
  line-height: 1.6;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid #ddd;
  border-top: 4px solid #0c7ae0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* HEADER Y NAVEGACIÓN */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /*background-color: #0a1e3f;*/
  color: #fff;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav a {
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #f9b233;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f9b233;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Contenedor HERO: redondeado y recorte correcto */
/* HERO: una sola definición */
.hero {
  /* tus medidas actuales se quedan igual */
  margin-top: 2rem;
  position: relative;
  height: 60vh;       /* o lo que ya tienes */
  width: 100%;
  border-radius: 80px;
  overflow: hidden;

  /* 👇 solo esto hace que la imagen se ESTIRE al contenedor */
  background-image: url('../img/portada.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 105% 105%;   /* fuerza ancho y alto exactos */
}

/* Oscurecedor opcional */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.05));
  z-index: 1;
  pointer-events: none;
}

/* Contenido por encima */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* (resto de tus estilos igual) */
.hero-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.hero-nav a { color:#fff; text-decoration:none; font-weight:700; }
.hero-content { text-align:center; color:#fff; margin-top:clamp(12px,3vw,24px); }

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-logo {
  font-size: 2rem;
  font-weight: 800;
}

.hero-nav {
  background-color: rgba(255, 255, 255, 0.15); /* Transparente blanco */
  backdrop-filter: blur(8px); /* efecto glass */
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-nav a:hover,
.hero-nav a.active {
  background-color: #00d9ff;
  color: #000;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.hero-content h1 span {
  font-size: 3rem;
  font-weight: 600;
  display: block;
}

.hero-content h2 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: white;
  color: black;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background: #00d9ff;
  color: white;
}

/* SECCION ABOUT*/
.about {
  padding: 4rem 2rem;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.about-title h2 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  color: #000;
}

.about-text {
  background-color: #0077cc;
  padding: 2rem;
  color: white;
  font-size: 1.1rem;
  border-radius: 60px;
  max-width: 600px;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

.about-text strong {
  font-weight: 700;
}

/* SECCIONES GENERALES */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.servicios {
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Montserrat Alternates', sans-serif;
  background-image: url("../img/textura-fondo.png");
  background-repeat: no-repeat;     /* ❌ evita que se repita */
  background-position: right center; /* 👉 pegada a la derecha y centrada verticalmente */
  background-size: contain;         /* ajusta la imagen completa */
}

.servicios h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 1rem;
}

.servicios .subtitulo {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 960px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.card-servicio {
  background-color: #0077cc;
  color: #fff;
  text-align: left;
  padding: 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
}

.card-servicio h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.contacto-lista {
  list-style: none;       /* quitamos el bullet por defecto */
  padding-left: 0;
  margin: 1rem 0;
}

.contacto-lista li {
  position: relative;
  padding-left: 2rem;     /* espacio para el círculo */
  margin-bottom: 0.8rem;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.contacto-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;    /* 👈 tamaño del círculo */
  height: 14px;   /* 👈 tamaño del círculo */
  border-radius: 50%;
  background-color: #fff; /* color del círculo */
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  color: #0a1e3f;
}

.flotilla {
  position: relative;
  background-color: #3f3f3f;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  padding: 4rem 2rem;
  color: white;
  text-align: center;
  overflow: hidden;
}

.flotilla::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/fondoFlotilla.png') center/cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.flotilla > * {
  position: relative;
  z-index: 1;
}

.flotilla h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.flotilla-subtitle {
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.flotilla-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.flotilla-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: #0077cc;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: left;
}

.flotilla-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.flotilla-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.flotilla-text p {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.4;
  font-weight: 700;
}

.flotilla-cta {
  text-align: center;
  margin-top: 3rem;
}



.faq h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.faq-group h3 {
  font-size: 1rem;
  color: #003366;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: bold;
  border-bottom: 2px solid #003366;
  padding-bottom: 0.5rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item.blue .faq-question {
  background-color: #003366;
  color: white;
}

.faq-item.cyan .faq-question {
  background-color: #00bcd4;
  color: white;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 0.95rem;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle {
  font-size: 1.2rem;
  background: white;
  color: #003366;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 1rem;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  color: #333;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.contacto {
  background-color: #0077cc;
  color: #fff;
  border-radius: 40px;
  padding: 4rem 2rem;
  margin: 3rem auto;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-left h2,
.contact-right h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-right h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.contact-options {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-options label {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.contact-options input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row.full {
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  background-color: #f9b233;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
  background-color: #000;
  color: #fff;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #0a1e3f;
  color: #fff;
  font-size: 0.9rem;
}

.faq {
  /*padding: 4rem 2rem;
  max-width: 960px;
  margin: auto;*/
  /*font-family: 'Montserrat', sans-serif;
  background-image: url("../img/textura2j.png");
  background-repeat: no-repeat;
  /*background-position: bottom center; /* asegura que se alinee abajo */
  /*background-position: center calc(100% + 100px); /* ⬇️ mueve la imagen 50px debajo del borde */
  /*background-size: 100%;         /* llena ancho, altura proporcional */
  /*position: relative;
  z-index: 1;*/

  font-family: 'Montserrat', sans-serif;
    background-image: url("../img/textura2j.png");
    background-repeat: no-repeat;
    background-position: center calc(100% + 100px);
    background-size: 100%;
    position: relative;
    z-index: 1; /* ahora va por encima */
}

.clientes-section {
  /*background: rgba(0, 0, 0, 0.9);*/
  /*color: white;
  padding: 2rem 2rem;
  border-bottom-left-radius: 180px;
  border-bottom-right-radius: 180px;
  position: relative;
  overflow: hidden;
  z-index: 2; /* encima */
  /*opacity: 0.7; /* para que se vea el de atrás */
  color: white;
    padding: 2rem 2rem;
    border-bottom-left-radius: 180px;
    border-bottom-right-radius: 180px;
    position: relative;
    overflow: hidden;
    z-index: 2; /* debajo */
}

/* El fondo que se “asoma” hacia abajo */
.faq::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -100px;           /* cuánto se mete sobre la siguiente sección */
  height: 240px;            /* altura del “saliente” */
  background-image: url("../img/textura2j.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;   /* expandida horizontalmente */
  pointer-events: none;     /* no bloquea clics */
  z-index: 4;               /* encima de todo dentro/abajo */
}

/*.clientes-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: url('https://i0.wp.com/imgs.hipertextual.com/wp-content/uploads/2021/04/kumiko-shimizu-1suwecgz5ks-unsplash-scaled.jpeg?fit=1200%2C800&quality=70&strip=all&ssl=1') center/cover no-repeat;
  z-index: 0;
}*/


.clientes-contenedor {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: auto;
  gap: 1rem;
  flex-wrap: nowrap;
  position: relative;
}

.clientes-texto {
 /*AQUI CAMBIAR COLOR*/
  background-color: #0077cc;
  padding: 1rem;
  /*border-radius: 100px;*/
  border-top-right-radius: 40px;   /* esquina superior derecha */
  border-bottom-right-radius: 40px; /* esquina inferior derecha */
  border-top-left-radius: 0;       /* esquina superior izquierda recta */
  border-bottom-left-radius: 0;    /* esquina inferior izquierda recta */
  width: 320px;
  flex-shrink: 0;
}

.clientes-titulo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.clientes-descripcion {
  font-size: 0.9rem;
  line-height: 1.5;
}

.clientes-carrusel-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.clientes-carrusel {
  display: flex;
  animation: scrollClientes 40s linear infinite;
  gap: 2rem;
}

.cliente-logo {
  width: 140px;
  height: 100px;
  background: rgba(255, 255, 255, 255);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  padding: 10px;

}

.cliente-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

@keyframes scrollClientes {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clientes-flecha {
  position: absolute;
  background: #3f3f3f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  z-index: 5;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.clientes-flecha.izquierda {
  left: 320px;
}

.clientes-flecha.derecha {
  right: 10px;
}