/* ======================================================
   VARIABLES DE COLOR – IDENTIDAD BOXCR
====================================================== */
:root {
  --primary: #0b5c6b;
  --primary-dark: #050a2a;
  --primary-light: #e6f2f4;

  --accent: #f28c28;
  --accent-hover: #d97718;

  --text-dark: #1f2937;
  --text-muted: #6b7280;

  --bg-light: #f7f9fb;
  --border-light: #e3e8ec;

  --white: #ffffff;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

/* ======================================================
   RESET / BASE
====================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ======================================================
   TOP BAR
====================================================== */
.top-bar {
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 700px) {
  .top-bar { padding: 8px 16px; flex-wrap: wrap; justify-content: center; text-align:center; }
}

/* ======================================================
   BOTONES
====================================================== */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

.btn-full { width: 100%; }

/* ======================================================
   HEADER + MENÚ MOBILE (DRAWER)
====================================================== */
.header{
  background: var(--white);
  padding: 14px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.header img{
    align-items:center;
}

.header-left .logo{
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text-dark);
}

/* Desktop nav */
.nav-desktop{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-desktop a{
  font-weight:500;
  color: var(--text-dark);
}

.nav-desktop a:hover{
  color: var(--primary);
}

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Desktop CTA visible */
.btn-desktop { display:inline-flex; }

/* Botón hamburguesa */
.menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border-light);
  background: var(--white);
  border-radius: 10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  position: relative;
  z-index: 2100; /* encima del header */
}

.menu-btn:hover{
  border-color: rgba(11, 92, 107, 0.35);
}

.menu-icon{
  width:18px;
  height:2px;
  background: var(--primary);
  position: relative;
}

.menu-icon::before,
.menu-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: var(--primary);
}

.menu-icon::before{ top:-6px; }
.menu-icon::after{ top: 6px; }

/* Overlay */
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2050;
}

/* Drawer */
.drawer{
  position: fixed;
  top:0;
  right:0;
  height:100vh;
  width: min(340px, 88vw);
  background: var(--white);
  border-left:1px solid var(--border-light);
  z-index: 2100;
  transform: translateX(105%);
  transition: transform .25s ease;
  display:flex;
  flex-direction: column;
  box-shadow: -18px 0 45px rgba(0,0,0,.12);
}

.drawer.is-open{
  transform: translateX(0);
}

.drawer-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  border-bottom:1px solid var(--border-light);
}

.drawer-title{
  font-weight:800;
  color: var(--text-dark);
}

.drawer-close{
  width:38px;
  height:38px;
  border:1px solid var(--border-light);
  background: var(--white);
  border-radius: 10px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.nav-mobile{
  display:grid;
  padding:12px 16px;
}

.nav-mobile a{
  padding:12px 10px;
  border-radius: 10px;
  color: var(--text-dark);
  font-weight:600;
}

.nav-mobile a:hover{
  background: var(--bg-light);
  color: var(--primary);
}

.drawer-cta{
  margin-top:auto;
  padding:16px;
  border-top:1px solid var(--border-light);
}

.drawer-mini{
  margin-top:12px;
  display:grid;
  gap:8px;
  font-size:13px;
  color: var(--text-muted);
}

.drawer-mini a{ color: var(--text-muted); }
.drawer-mini a:hover{ color: var(--primary); }

/* Responsive header */
@media (max-width: 900px){
  .header { padding: 12px 16px; }
  .nav-desktop{ display:none; }
  .btn-desktop{ display:none; }
  .menu-btn{ display:inline-flex; }
}

/* ======================================================
   HERO CON VIDEO
====================================================== */
.hero-video {
  position: relative;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5, 10, 42, 0.75),
    rgba(5, 10, 42, 0.55)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  color: #e6e9ef;
  margin-bottom: 25px;
}

/* ✅ Permitir video también en móvil */
@media (max-width: 768px) {
  .hero-video {
    min-height: 520px; /* opcional para que no quede muy bajo */
  }

  .hero-video-bg {
    display: block;          /* ✅ ya no lo ocultamos */
  }
}



/* ======================================================
   SECCIONES GENERALES
====================================================== */
section { padding: 80px 40px; }
section h2 { text-align: center; margin-bottom: 14px; }
.section-subtitle {
  text-align:center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 45px;
}

@media (max-width: 700px) {
  section { padding: 65px 16px; }
}

/* ======================================================
   COBERTURA INTERNACIONAL (banderas flag-icons)
====================================================== */
.coverage {
  background: var(--white);
}

.coverage-container {
  max-width: 1100px;
  margin: auto;
}

.coverage-header {
  text-align: center;
  margin-bottom: 50px;
}

.coverage-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: auto;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.country-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.flag-circle {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CLAVE: esto es lo que faltaba */
.flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ✅ llena el círculo */
  display: block;
}

/* =========================================
   FIX DEFINITIVO FLAG-ICONS EN CÍRCULOS
========================================= */

.country-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
@media (max-width: 600px) {
  .flag-circle {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 1000px) {
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .country-card {
    max-width: 380px;
    margin: 0 auto;
    padding: 38px 26px;
  }

  .country-card h3 {
    font-size: 17px;
    margin-top: 14px;
  }
}
/* ======================================================
   SERVICIOS MEJORADOS (icono + título + texto + animación)
====================================================== */
.services {
  background: var(--bg-light);
}

.services-container {
  max-width: 1100px;
  margin: auto;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

/* Animación base (sutil y corporativa) */
.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-6deg) scale(1.1);
}

.service-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   FOOTER (como tu referencia)
====================================================== */
.footer {
  background: linear-gradient(180deg, #020024 0%, #050a2a 100%);
  color: #cfd6df;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 16px;
  position: relative;
}

.footer h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #1fa4b7;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer ul li:hover {
  color: #1fa4b7;
}

/* Redes */
.socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  color: #cfd6df;
  border: 1px solid #2c335c;
  padding: 6px 10px;
}

.socials a:hover {
  background: #1fa4b7;
  color: white;
}

/* Contacto */
.contact li {
  padding-left: 20px;
  position: relative;
}

.contact li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1fa4b7;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid #1c2350;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #9aa4b2;
}

/* Scroll to top */
.scroll-top {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #1fa4b7;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 10px;
}

.scroll-top:hover {
  background: #148fa1;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; text-align:center; }
  .footer h4::after { left: 50%; transform: translateX(-50%); }
  .contact li { padding-left: 0; }
}

/* ======================================================
   MENÚ FULL SCREEN (BAJA DESDE ARRIBA)
   Pegar al final del style.css para override
====================================================== */

/* Overlay (fondo oscuro detrás del menú) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2050;
}

/* Drawer ahora es FULL SCREEN desde arriba */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: 100vw;
  height: 100vh;

  background: var(--white);
  z-index: 2100;

  /* Entra desde arriba */
  transform: translateY(-105%);
  transition: transform .28s ease;

  /* Layout interno */
  display: flex;
  flex-direction: column;

  /* Scroll si hay mucho contenido */
  overflow: auto;

  /* Quita estilos de drawer lateral */
  border-left: none;
  box-shadow: none;
}

/* Estado abierto */
.drawer.is-open {
  transform: translateY(0);
}

/* Header del menú más “app-like” */
.drawer-head {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* Nav ocupa mejor el espacio */
.nav-mobile {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.nav-mobile a {
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-dark);
}

.nav-mobile a:hover {
  background: rgba(11, 92, 107, 0.10);
  color: var(--primary);
}

/* CTA al final */
.drawer-cta {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

/* En móvil: asegúrate que el botón hamburguesa se vea */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-desktop { display: none; }
  .btn-desktop { display: none; }
}
``

body.menu-open .menu-icon {
  background: transparent;
-open .menu-icon::before {}
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu-icon::before,
.menu-icon::after {
  transition: transform .2s ease, top .2s ease;
}
/* ======================================================
   RESET Y BASE
====================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

img {
  display: inline-block;
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ======================================================
   VARIABLES
====================================================== */
:root {
  --primary: #0b5c6b;
  --accent: #1fa4b7;
  --footer-bg: linear-gradient(180deg, #020024 0%, #050a2a 100%);
  --footer-text: #cfd6df;
}

/* ======================================================
   FOOTER
====================================================== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* CONTENEDOR PRINCIPAL */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

/* =======================
   COLUMNA MARCA
======================= */
.footer-col.brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  max-width: 150px;
}

.footer-text {
  font-size: 14px;
  max-width: 320px;
}

/* =======================
   REDES SOCIALES
======================= */
.socials {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}

.socials img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =======================
   TITULOS FOOTER
======================= */
.footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 14px;
  position: relative;
}

.footer h4::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: -6px;
}

/* =======================
   LISTAS
======================= */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  font-size: 14px;
  margin-bottom: 10px;
}

/* =======================
   CONTACTO
======================= */
.footer .contact li::before {
  content: none;
}

/* =======================
   FOOTER BOTTOM
======================= */
.footer-bottom {
  border-top: 1px solid #1c2350;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #9aa4b2;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 600px) {

  .footer-container {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 40px;
    text-align: center;
  }

  .footer-col.brand {
    align-items: center;
  }

  .footer-text {
    max-width: 100%;
  }

  .socials {
    justify-content: center;
  }

  /* Servicios + BoxCR en 2 columnas */
  .footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    text-align: left;
  }

  .footer-services-grid h4 {
    text-align: center;
  }

  .footer-services-grid h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Contacto destacado */
  .footer-col.contact-highlight {
    background: rgba(31, 164, 183, 0.08);
    border-radius: 12px;
    padding: 24px 18px;
  }
}

/* ======================================================
   COBERTURA – MOBILE VISUAL (2 columnas + centro final)
====================================================== */

@media (max-width: 600px) {

  .coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    justify-items: center;
  }

  /* Tarjeta limpia, sin caja */
  .country-card {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    text-align: center;
  }

  /* Círculo grande */
  .flag-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
    margin: 0 auto;
  }

  .flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Texto más discreto */
  .country-card h3 {
    margin-top: 10px;
    font-size: 14px;
  }
/* ======================================================
 REGISTER PAGE – LAYOUT MODERNO
====================================================== */

.register-page {
 min-height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;

 /* Fondo alineado a tu identidad */
 background: linear-gradient(
 rgba(11, 92, 107, 0.95),
 rgba(11, 92, 107, 0.95)
 );
}

/* CARD */
.register-card {
 width: 100%;
 max-width: 420px;

 background: #ffffff;
 border-radius: 12px;

 padding: 40px 30px;

 box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* TITLE */
.register-title {
 text-align: center;
 margin-bottom: 30px;

 font-size: 20px;
 font-weight: 600;

 color: #2c2c2c;
}

/* FORM */
.register-form {
 display: flex;
 flex-direction: column;
 gap: 18px;
}

/* INPUT GROUP */
.form-group {
 position: relative;
}

/* INPUT */
.form-group input {
 width: 100%;
 height: 45px;

 padding: 0 12px;
 padding-right: 40px;

 border-radius: 6px;
 border: 1px solid #ddd;

 background: #f7f7f7;

 font-size: 14px;
}

/* FOCUS */
.form-group input:focus {
 outline: none;
 border-color: #1fa4b7;
 background: #fff;
}

/* ICON */
.input-icon {
 position: absolute;
 right: 10px;
 top: 50%;

 transform: translateY(-50%);
 font-size: 14px;
 opacity: 0.6;
}

/* BOTÓN */
.register-btn {
 margin-top: 10px;
 height: 42px;

 background: #1fa4b7;
 border-radius: 6px;

 font-size: 14px;
 font-weight: 600;
}

.register-btn:hover {
 background: #148fa1;
}