/* =============================================
   COOL DYNAMICS — DEV stylesheet
   Fuente: DM Sans (Google Fonts)
   Canvas base: 1920px
   ============================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1F394C;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ---------- Contenedor global ---------- */
.header-contenedor,
.hero-contenedor,
.servicios-contenedor,
.empresa-contenedor,
.stats-contenedor,
.cta-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* =============================================
   HEADER  #fila-header
   ============================================= */
#fila-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
}

.header-contenedor {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 0;
  padding-right: 60px;
  padding-left: 60px;
  padding-bottom: 0;
}

.header-logo {
  display: flex;
  align-items: flex-start;
}

.header-logo-img {
  width: 130px;
  height: auto;
  display: block;
}

.boton-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 24px;
  background: #1F394C;
  border: none;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}

.boton-nav::before {
  content: '→';
}

.boton-nav:hover {
  background: #113A75;
}


/* =============================================
   HERO  #fila-hero
   ============================================= */
#fila-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-fondo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-filtro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-contenedor {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 160px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-texto {
  flex: 1;
  max-width: 540px;
}

.hero-titulo {
  font-size: 58px;
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-descripcion {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
}

.boton-principal {
  display: inline-block;
  padding: 12px 28px;
  background: #2FCFEC;
  color: #1F394C;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  transition: opacity 0.2s;
}

.boton-principal:hover {
  opacity: 0.85;
}

/* Formulario card */
.hero-formulario {
  flex-shrink: 0;
  width: 380px;
}

.formulario-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.formulario-titulo {
  font-size: 22px;
  font-weight: 700;
  color: #1F394C;
  margin-bottom: 6px;
  text-align: center;
}

.formulario-subtitulo {
  font-size: 13px;
  color: #6b7e8d;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

/* CF7: grid de 2 columnas dentro del <p> que genera CF7 */
#fila-hero .wpcf7-form > p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

#fila-hero .wpcf7-form > p > br {
  display: none;
}

/* Textarea y submit: full width */
#fila-hero .wpcf7-form-control-wrap[data-name="mensaje"],
#fila-hero .wpcf7-form > p > input[type="submit"],
#fila-hero .wpcf7-form > p > .wpcf7-spinner {
  grid-column: 1 / -1;
}

/* Inputs dentro de los spans: full width */
#fila-hero .wpcf7-form-control-wrap {
  display: block;
}

.campo-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dde4ea;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1F394C;
  outline: none;
  transition: border-color 0.2s;
}

.campo-input:focus {
  border-color: #2FCFEC;
}

.campo-input::placeholder {
  color: #a0b0bc;
}

.campo-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dde4ea;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1F394C;
  resize: vertical;
  height: 100px;
  min-height: 80px;
  outline: none;
  margin-bottom: 0;
  transition: border-color 0.2s;
}

.campo-textarea:focus {
  border-color: #2FCFEC;
}

.campo-textarea::placeholder {
  color: #a0b0bc;
}

.boton-enviar {
  display: block;
  margin: 0 auto;
  padding: 13px 48px;
  background: #2FCFEC;
  color: #1F394C;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.boton-enviar:hover {
  opacity: 0.85;
}

/* WhatsApp flotante */
.boton-wsp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.2s;
}

.boton-wsp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boton-wsp:hover {
  transform: scale(1.08);
}


/* =============================================
   SERVICIOS  #fila-servicios
   ============================================= */
#fila-servicios {
  padding: 72px 0;
  background: #fff;
}

.servicios-contenedor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 0 40px;
}

.tarjeta-servicio {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 12px;
}

.servicio-cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
}

.servicio-icono {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.servicio-foto {
  margin-top: 0;
  border-radius: 10px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.servicio-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #2FCFEC;
  text-transform: uppercase;
}

.servicio-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #1F394C;
  line-height: 1.3;
}

.servicio-descripcion {
  font-size: 13px;
  color: #5a6e7c;
  line-height: 1.65;
}



/* =============================================
   EMPRESA  #fila-empresa
   ============================================= */
#fila-empresa {
  background: linear-gradient(135deg, #113A75 0%, #1F394C 60%, #0d2035 100%);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Copo decorativo de fondo */
#fila-empresa::before {
  content: '';
  position: absolute;
  bottom: 80px;
  left: 4%;
  width: 420px;
  height: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='0.12'%3E%3Cpath d='M50 5v90'/%3E%3Cpath d='M5 50h90'/%3E%3Cpath d='M19 19l62 62'/%3E%3Cpath d='M81 19L19 81'/%3E%3Cpath d='M50 15l-6 -6M50 15l6 -6M50 85l-6 6M50 85l6 6'/%3E%3Cpath d='M15 50l-6 -6M15 50l-6 6M85 50l6 -6M85 50l6 6'/%3E%3Cpath d='M25 25l-8 -2M25 25l-2 -8M75 25l8 -2M75 25l2 -8M25 75l-8 2M25 75l-2 8M75 75l8 2M75 75l2 8'/%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
}


.empresa-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Grupo de fotos compuesto */
.empresa-fotos {
  display: flex;
  align-items: center;
}

.empresa-grupo-fotos {
  width: 100%;
  height: auto;
  display: block;
}

/* Texto empresa */
.empresa-marca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.empresa-marca-logo {
  height: 28px;
  width: auto;
}

.empresa-marca-nombre {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #2FCFEC;
  text-transform: uppercase;
}

.empresa-titulo {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.empresa-descripcion {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 14px;
}

.empresa-lista {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empresa-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.empresa-item::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: url('img/icono check.svg') center/contain no-repeat;
}

.boton-empresa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 32px;
  background: #0d2035;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}

.boton-empresa:hover {
  background: #1F394C;
  transform: translateY(-1px);
}

/* Barra de stats inferior empresa */
.empresa-stats-barra {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  margin: 0 60px 48px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-barra-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-barra-item::before {
  content: '✓';
  font-size: 11px;
  color: #2FCFEC;
  font-weight: 700;
}


/* =============================================
   STATS  #fila-stats
   ============================================= */
#fila-stats {
  padding: 64px 0;
  background: #FAFBFB;
  border-bottom: 1px solid #e8edf2;
}

.stats-contenedor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  padding: 0 20px;
}

.stat-numero {
  font-size: 36px;
  font-weight: 700;
  color: #1F394C;
  line-height: 1.2;
  margin-bottom: 10px;
}

.stat-descripcion {
  font-size: 14px;
  font-weight: 400;
  color: #6b7e8d;
  line-height: 1.5;
}


/* =============================================
   CTA  #fila-cta
   ============================================= */
#fila-cta {
  background: linear-gradient(135deg, #1F394C 0%, #113A75 100%);
}

.cta-contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.cta-texto {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  max-width: 580px;
}

.cta-destacado {
  color: #2FCFEC;
  font-weight: 700;
}

.boton-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 36px;
  background: #2FCFEC;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #1F394C;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.boton-cta:hover {
  background: #5dddf5;
  transform: translateY(-1px);
}

.pie-pagina {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 40px;
  text-align: center;
}

.pie-pagina p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}


/* =============================================
   RESPONSIVE — Mobile first
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero-titulo {
    font-size: 38px;
  }

  .hero-contenedor {
    gap: 36px;
  }

  .hero-formulario {
    width: 320px;
  }

  .empresa-titulo {
    font-size: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-contenedor,
  .hero-contenedor,
  .servicios-contenedor,
  .empresa-contenedor,
  .stats-contenedor,
  .cta-contenedor {
    padding: 0 20px;
  }

  /* Header */
  #fila-header {
    padding: 16px 0;
  }

  .header-nombre {
    font-size: 12px;
  }

  .boton-nav {
    font-size: 12px;
    padding: 8px 16px;
  }

  /* Hero */
  .hero-contenedor {
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .hero-titulo {
    font-size: 30px;
  }

  .hero-formulario {
    width: 100%;
  }

  .formulario-fila {
    flex-direction: column;
  }

  /* Servicios */
  .servicios-contenedor {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 48px;
  }

  .tarjeta-servicio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-row: auto;
  }

  /* Empresa */
  .empresa-contenedor {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .empresa-fotos {
    height: 280px;
  }

  .empresa-titulo {
    font-size: 26px;
  }

  .empresa-stats-barra {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  /* Stats */
  .stats-contenedor {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* CTA */
  .cta-contenedor {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .cta-texto {
    font-size: 18px;
  }
}
