:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #007AFF;
  --accent: #007AFF;
  --border: #e5e7eb;
  --card: #f9fafb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --hero-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1200px, 94%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.logo {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #0a84ff);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}
nav.links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.4rem 0;
}
.links a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: var(--transition);
  border-radius: 1px;
}
.links a:hover:after {
  width: 100%;
}
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 120px;
  z-index: 10;
}
.dropdown-content.show {
  display: block;
}
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}
.dropdown-content a:hover {
  background: #f1f5f9;
  color: var(--brand);
}
.cta {
  background: var(--brand);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transition: var(--transition);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem 5rem;
  background: var(--hero-bg);
  border-radius: 20px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.kicker {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 0.5rem 0;
  font-weight: 800;
  color: var(--text);
}
.lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.1rem;
  margin: 1rem 0;
}
.actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--brand);
  background: #f8fafc;
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}


/* Mobile Drawer mejorado */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 3rem 1.5rem 1rem;
  overflow-y: auto;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.drawer.open {
  right: 0;
}
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.drawer-close:hover {
  background: #f1f5f9;
  color: var(--brand);
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.drawer-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
}
.drawer-links a:hover {
  background: #f8fafc;
  color: var(--brand);
}
.drawer-links a i {
  width: 24px;
  text-align: center;
  font-size: 1.2rem;
}
.drawer-lang {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.drawer-lang strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
}
.drawer-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.lang-selector {
  display: grid;
  gap: 0.5rem;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.lang-option:hover {
  background: #f8fafc;
  color: var(--brand);
}
.lang-option.active {
  background: rgba(0, 122, 255, 0.1);
  color: var(--brand);
}
.lang-option i {
  font-size: 1.1rem;
}
/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Stats */
.statgrid {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}
.stat {
  padding: 1.2rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  flex: 1;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.stat strong {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-weight: 700;
}
.stat span {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 4rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  margin: 0 0 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
}
.section-lead {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 122, 255, 0.1);
}
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 122, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--brand);
  font-size: 1.6rem;
}
.card h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.3rem;
}
.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h4 {
  margin: 1.4rem 0 0.5rem;
  font-weight: 600;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Testimonials */
.testis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.quote {
  padding: 2rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  position: relative;
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.quote:before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 4rem;
  color: rgba(0, 122, 255, 0.08);
  font-family: Georgia, serif;
}
.quote p {
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.quote b {
  color: var(--text);
  font-weight: 600;
}

/* CTA Bar */
.cta-bar {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-bar h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.cta-bar p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Contact */
#contacto {
  margin: 4rem 0;
}
.contact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
checkbox-group input {
  width: auto;
}
.checkbox-group label {
  color: var(--muted);
  font-size: 0.9rem;
}
.submit-btn {
  background: var(--brand);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}
#formMsg {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #f9fafb;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  color: var(--text);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}
.footer-brand p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer-contact h4, .footer-hours h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 2rem;
  }
  .kicker {
    justify-content: center;
  }
  .actions {
    justify-content: center;
  }
  .statgrid {
    justify-content: center;
  }
  .cta-bar {
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0;
  }
  nav.links {
    display: none;
  }
  .lang-dropdown {
    margin-top: 0.5rem;
  }
  .contact-form {
    padding: 2rem 1.5rem;
  }
  .footer-content {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .cards, .steps, .testis {
    grid-template-columns: 1fr;
  }
  .statgrid {
    flex-direction: column;
  }
  .hero {
    margin: 1rem 0;
    border-radius: 16px;
  }
}

/* ========================================= */
/* Mobile Drawer Visibility Controls */
/* ========================================= */

/* Ocultar botón de menú en desktop por defecto */
.mobile-menu-btn {
  display: none;
  background: var(--brand);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Ocultar completamente el drawer y overlay en desktop */
@media (min-width: 769px) {
  .drawer {
    display: none !important;
  }
  
  .overlay {
    display: none !important;
  }
}

/* Mostrar botón de menú y ocultar navegación normal en móviles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  nav.links {
    display: none !important;
  }
  
  .lang-dropdown {
    display: none;
  }
  
  /* Mostrar selector de idiomas en el drawer */
  .drawer .lang-dropdown {
    display: block;
    margin-top: 1.5rem;
  }
  
  /* Ajustes específicos para móviles */
  .nav {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  .brand div:last-child {
    display: none;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .drawer {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Logo rectangular grande */
.logo-rectangular-grande {
  position: relative;
  z-index: 101;
  width: 200px;
  height: 70px;
  transition: all 0.3s ease;
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.logo-rectangular-grande img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto hover (solo en desktop) */
@media (hover: hover) {
  .logo-rectangular-grande:hover img {
    transform: scale(1.03) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  }
}

/* Ajustar contenedor de la marca */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

header {
  position: relative;
  padding: 12px 0;
  overflow: visible;
}

.nav {
  align-items: center;
  justify-content: space-between;
}

/* --- Versión tablet --- */
@media (max-width: 968px) {
  .logo-rectangular-grande {
    width: 160px;
    height: 55px;
  }

  .brand-text div:last-child {
    display: none; /* Ocultar subtítulo */
  }

  .brand {
    gap: 0.5rem;
  }
}

/* --- Versión móvil --- */
@media (max-width: 768px) {
  .logo-rectangular-grande {
    width: 120px;
    height: 40px;
    margin-right: 8px;
  }

  .brand-text {
    border-left: none;
    padding-left: 0;
  }

  .brand-text div:first-child {
    font-size: 0.95rem;
    font-weight: 600;
  }
}

/* --- Extra pequeño (menos de 480px) --- */
@media (max-width: 480px) {
  .logo-rectangular-grande {
    width: 100px;
    height: 34px;
    margin-right: 5px;
  }

  .brand {
    gap: 0.3rem;
  }

  .brand-text div:first-child {
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 👈 logo a la izquierda, menú a la derecha */
  }

  /* Ocultamos los links en mobile (si quieres solo el menú hamburguesa) */
  .nav .links {
    display: none;
  }

  .lang-dropdown {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo izq, botón der */
  }



}