/* ==================================================
   1. VARIABLES / DESIGN SYSTEM
================================================== */
:root {

  /* ==================================================
     1. COLORES DE MARCA (Más elegantes y profundos)
  ================================================== */

  --primary: #178A96;
  /* Turquesa refinado (menos brillante) */
  --primary-dark: #0F5F68;
  /* Turquesa profundo elegante */
  --primary-light: #3CBAC4;
  /* Turquesa suave para fondos */

  --secondary: #0A1F44;
  /* Azul corporativo profundo */
  --secondary-soft: #132C5B;
  /* Azul para secciones alternas */

  --accent: #178A96;
  /* Toque cálido sutil (confianza / detalle) */


  /* ==================================================
     2. NEUTROS (más premium, menos grises planos)
  ================================================== */

  --dark: #0F172A;
  /* Azul casi negro (más elegante que negro puro) */
  --text: #334155;
  /* Gris profesional moderno */
  --text-light: #64748B;
  /* Texto secundario */
  --light: #FFFFFF;
  --background: #F8FAFC;
  --gray: #F1F5F9;
  /* Fondo general suave */
  --border: #E2E8F0;


  /* ==================================================
     3. UI / ESTÉTICA
  ================================================== */

  --radius: 16px;
  /* Un poco más suave */
  --radius-small: 10px;

  --shadow-soft: 0 10px 35px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 15px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 25px 60px rgba(15, 23, 42, 0.18);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.14);

  --duration-fast: 220ms;
  --duration-medium: 420ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);

}



/* ==================================================
   2. RESET
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: var(--duration-fast) ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Motion primitives for staged reveals */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity var(--duration-medium) var(--ease-standard) var(--reveal-delay),
    transform var(--duration-medium) var(--ease-standard) var(--reveal-delay),
    filter var(--duration-medium) var(--ease-standard) var(--reveal-delay);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ==================================================
   3. LAYOUT
================================================== */
.container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background: var(--gray);
}

.center {
  text-align: center;
}

/* ==================================================
   4. HEADER / NAV
================================================== */
.header {
  background: var(--secondary);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
  height: 55px;
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-list a {
  color: white;
  font-weight: 500;
  position: relative;
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-list a.active {
  color: var(--primary);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.language-selector {
  font-size: 14px;
  opacity: 0.8;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard);
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==================================================
   5. HERO
================================================== */
.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(33, 33, 45, 0.514), rgba(34, 34, 38, 0.678)),
    url('../images/horizontal.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
}

.hero-content>* {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 700ms var(--ease-standard) forwards;
}

.hero-content>*:nth-child(1) {
  animation-delay: 120ms;
}

.hero-content>*:nth-child(2) {
  animation-delay: 240ms;
}

.hero-content>*:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  background: var(--secondary);
  color: white;
  padding: 120px 0;
  text-align: center;
}

/* ==================================================
   FEATURES / DIFERENCIALES
================================================== */

.features {
  background: var(--background);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  text-align: center;
}

.feature-icon svg {
  width: 50px;
  height: 50px;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(31, 166, 182, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary);
  transition: 0.3s ease;
}

.feature-item h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--secondary);
}

.feature-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.feature-item:hover .feature-icon {
  background: var(--primary);
  color: white;
}

/* ==================================================
   SERVICES HIGHLIGHT
================================================== */

.services-highlight {
  padding: 100px 0;
  background: white;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.title-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 50px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.4s ease;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.service-content p {
  font-size: 14px;
  color: var(--text-light);
}

/* ==================================================
   STATS COUNTER
================================================== */

.stats {
  background: var(--secondary);
  padding: 80px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 40px;
}

.stat-item h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
}

/* ================================
   PROJECTS SECTION
================================ */

.projects {
  padding: 100px 0;
  background: #f5f7fa;
}

.projects .container {
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 60px;
  color: #1e293b;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--primary-dark);
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ================================
   CAROUSEL
================================ */

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card {
  flex: 0 0 auto;
  padding: 10px;
  transition: transform var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard),
    filter var(--duration-fast) var(--ease-standard);
  opacity: 0.5;
  transform: scale(0.92);
  filter: saturate(0.75) brightness(0.88);
}

.project-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* TARJETA ACTIVA */
.project-card.active {
  opacity: 1;
  transform: scale(1);
  filter: none;
  z-index: 2;
}

/* ================================
   BUTTONS
================================ */

.carousel-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(8px, 2vw, 22px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 4;
}

.carousel-buttons.is-hidden {
  display: none;
}

.carousel-buttons button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.carousel-buttons button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.carousel-buttons button:hover {
  background: var(--primary);
  transform: scale(1.06);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
}


/* ==================================================
   6. BUTTONS
================================================== */
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 36px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 25px;
  background: #25D366;
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
}

/* ==================================================
   7. CARDS
================================================== */
.card,
.service-card,
.team-card,
.process-step,
.contact-form,
.contact-info {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid #e5e7eb;
  transition: 0.3s ease;
}

.card:hover,
.service-card:hover,
.team-card:hover,
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* ==================================================
   8. SERVICES
================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  border-top: 4px solid var(--primary);
}

/* ==================================================
   9. PROCESS
================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* ==================================================
   10. GALLERY
================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* ==================================================
   10.1 BEFORE / AFTER
================================================== */
.before-after-container {
  max-width: 980px;
  margin: 30px auto 0;
}

.before-after-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.images-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.before,
.after {
  position: absolute;
  inset: 0;
}

.before {
  z-index: 2;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.after {
  width: 100%;
}

.after .label {
  left: auto;
  right: 16px;
}

.before img,
.after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slider {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  width: auto;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

/* ==================================================
   11. FILTER BUTTONS
================================================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.filter-buttons button {
  padding: 12px 25px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: white;
  transition: 0.3s;
}

.filter-buttons button:hover {
  background: var(--primary);
}

.active-filter {
  background: var(--primary) !important;
}

.gallery-item.is-hidden {
  display: none !important;
}

/* ==================================================
   11.1 PROJECTS PAGE (ES/proyectos)
================================================== */
.project-intro {
  max-width: 900px;
  margin: 0 auto 34px;
  color: var(--text-light);
}

.project-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.project-company-card {
  padding: 34px;
  border-top: 4px solid var(--primary);
}

.project-company-name {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 138, 150, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.7px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.project-company-card h3 {
  color: var(--secondary);
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.project-company-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.project-company-focus {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text-light) !important;
}

.project-showcase .container>h2 {
  margin-bottom: 10px;
}

.project-filters {
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.project-gallery {
  align-items: stretch;
}

.project-entry {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.project-entry:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.project-entry img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.project-entry:hover img {
  transform: scale(1.04);
}

.project-entry-content {
  padding: 18px 20px 22px;
}

.project-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--secondary);
  color: white;
  font-size: 11px;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.project-entry h3 {
  margin: 12px 0 10px;
  color: var(--secondary);
  font-size: 21px;
  line-height: 1.25;
}

.project-entry p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.project-meta {
  margin-top: 13px;
  color: var(--text-light) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.project-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-soft));
  color: white;
}

.project-cta h2 {
  color: white;
}

.project-cta p {
  max-width: 780px;
  margin: 0 auto;
  color: #e2e8f0;
}

.project-cta .btn-primary {
  margin-top: 28px;
}


/* =========================================
   COMPROMISO
========================================= */

.commitment {
  background: linear-gradient(90deg,
      var(--secondary),
      var(--secondary-soft));
  padding: 55px 0;
}

.commitment-tag {
  display: inline-block;
  border: 1px solid white;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: var(--light);
}

.commitment h2 {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--light);
}

.commitment h2 span {
  color: var(--accent);
}

.commitment p {
  max-width: 900px;
  margin: 15px auto;
  font-size: 18px;
  line-height: 1.8;
  color: #e2e8f0;
}

.commitment .container {
  max-width: 900px;
  /* controla el ancho del texto */
}

/* ==================================================
   13. CONTACT
================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* ==================================================
   14. WHATSAPP FLOAT
================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ================================
   CTA HERO
================================ */
.cta-hero {
  position: relative;
  background:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.9) 25%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 70%),
    url('../images/gradiente2.webp') 70% center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 50px;
}

.cta-hero .container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* contenido */
.cta-hero__content {
  max-width: 550px;
  text-align: left;
  /* ← IMPORTANTE */
  margin-left: 0;
  /* ← evita centrado */
}

.cta-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary-dark);
}

.cta-hero h2 {
  font-size: 36px;
  margin: 18px 0;
  color: var(--primary-dark);
}

.cta-hero p {
  color: var(--text-light);
  max-width: 520px;
}

.cta-hero__buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn-secondary {
  border: 1px solid var(--primary);
  padding: 14px 30px;
  border-radius: 40px;
  color: var(--primary);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: white;
}

/* ==================================================
   15. FOOTER
================================================== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 50px 0;
  text-align: center;
}

/* ==================================================
   16. RESPONSIVE
================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card img {
    height: 360px;
  }

  .project-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(92vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 31, 68, 0.98);
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration-fast) var(--ease-standard),
      opacity var(--duration-fast) var(--ease-standard);
  }

  .nav-list.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .language-selector {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {

  .cta-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .cta-text h2 {
    font-size: 30px;
  }

  .cta-image {
    height: 320px;
  }

  .cta-ready__wrap {
    grid-template-columns: 1fr 1fr;
  }

  .cta-ready__image {
    height: 320px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tablet Vertical */
@media (max-width: 768px) {

  .hero {
    height: auto;
    min-height: 76vh;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.15;
  }

  .hero p {
    font-size: 17px;
  }

  .features-grid,
  .services-grid,
  .stats-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 300px;
  }

  .project-company-grid {
    grid-template-columns: 1fr;
  }

  .project-company-card {
    padding: 26px;
  }

  .project-entry img {
    height: 210px;
  }

  .project-entry-content {
    padding: 16px;
  }

  .project-filters {
    gap: 12px;
  }

  .project-filters button {
    padding: 10px 18px;
  }

  .carousel-buttons {
    padding: 0 8px;
  }

  .carousel-buttons button {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .equipo-btn {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .equipo-carousel {
    padding: 8px 48px;
  }

  .cta-hero {
    padding: 32px 20px;
    background-position: 78% center;
  }

  .cta-hero h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .cta-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-text {
    margin-bottom: 20px;
  }

  .cta-text h2 {
    font-size: 26px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .cta-image {
    height: 260px;
  }

  .cta-ready__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-ready__buttons {
    justify-content: center;
  }

  .cta-ready__image {
    height: 260px;
  }

  .slider {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {

  .cta-split {
    padding: 60px 0;
  }

  .equipo-carousel {
    padding: 6px 42px;
  }

  .cta-text h2 {
    font-size: 22px;
  }

  .cta-text p {
    font-size: 14px;
  }

  .cta-image {
    height: 200px;
    border-radius: 12px;
  }


  .cta-ready {
    padding: 60px 0;
  }

  .cta-ready__content h2 {
    font-size: 24px;
  }

  .cta-ready__image {
    height: 200px;
  }
}

/* Mobile Small */
@media (max-width: 360px) {

  .cta-text h2 {
    font-size: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

}


/* ==========================================================
   REFORMAS KAROLIN — EMPRESA PAGE PREMIUM
   Compatible con empresa.html actual
========================================================== */

.page-hero2 {
  color: white;
  padding: 120px 0;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/imagen\ 20.jpg") center/cover no-repeat;
}

.page-hero2 p {
  font-size: 18px;
  color: #e2e8f0;
}

.page-hero2 h1 {
  font-size: clamp(28px, 6vw, 50px);
  letter-spacing: -1px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.section p {
  font-size: 18px;
  line-height: 1.8;
}

/* ==========================================================
   HERO (usa .page-hero existente)
========================================================== */

.page-hero {
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-soft));
  color: white;
}

.page-hero h1 {
  font-size: 46px;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 18px;
  color: #e2e8f0;
}

/* ==========================================================
   HISTORIA
========================================================== */

.empresa-historia {
  padding: 100px 0;
}

.empresa-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.historia-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.historia-text p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.historia-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Timeline */

.historia-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.timeline-item .year {
  font-weight: bold;
  color: var(--primary);
  font-size: 18px;
  min-width: 60px;
}

/* ==========================================================
   STATS
========================================================== */

.empresa-stats {
  padding: 90px 0;
  background: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-card {
  background: white;
  padding: 50px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.stat-card h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-light);
}

/* ==========================================================
   EXPERIENCIA (section bg-light)
========================================================== */

.section.bg-light {
  padding: 100px 0;
}

.section.bg-light h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 25px;
  color: var(--secondary);
}

.section.bg-light p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
}

/* ==========================================================
   VALORES
========================================================== */

.empresa-valores {
  padding: 100px 0;
}

.empresa-title-center {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  color: var(--secondary);
  position: relative;
}

.empresa-title-center::after {
  content: "";
  width: 70px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin: 18px auto 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.valor-card {
  background: white;
  padding: 50px 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: 0.35s ease;
  border-top: 5px solid var(--primary);
}

.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.valor-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.icono {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: #1392ab;
  /* tu color favorito */
}

/* ==========================================================
   EQUIPO
========================================================== */

.empresa-equipo {
  padding: 100px 0;
  background: var(--background);
}

.equipo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 8px 58px;
  touch-action: pan-y;
}

.equipo-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}



.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.team-card {
  flex: 0 0 auto;
  padding: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard);
  opacity: 0.76;
}

.team-card.active {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-info {
  padding: 25px;
}

.team-info h4 {
  font-family: "Archivo Black", sans-serif;
  margin-bottom: 5px;
}

.team-info span {
  color: var(--text-light);
  font-size: 14px;
}


.equipo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  font-size: 22px;
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.equipo-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
}

.equipo-btn:disabled,
.equipo-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.equipo-btn.prev {
  left: 10px;
}

.equipo-btn.next {
  right: 10px;
}

/* ==========================================================
   PROCESO
========================================================== */

.empresa-proceso {
  padding: 100px 0;
  background-color: var(--secondary);
}

.empresa-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px auto;
}

.empresa-title {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--light);
}

.empresa-subtitle {
  color: var(--text-light);
}

.empresa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.empresa-card {
  padding: 50px 35px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: 0.35s ease;
}

.empresa-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.empresa-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}


.proceso-icono {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(19, 146, 171, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proceso-icono svg {
  width: 30px;
  height: 30px;
  color: #1392ab;
}

/* Número tipo badge PRO */
.numero {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #1392ab;
  color: white;
  font-size: 11px;
  padding: 5px 7px;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   CTA FINAL
========================================================== */

.empresa-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-soft));
  color: white;
  text-align: center;
  padding: 120px 0;
}

.empresa-cta-title {
  font-size: 38px;
  margin-bottom: 20px;
}

.empresa-cta-text {
  max-width: 700px;
  margin: 0 auto 35px auto;
  color: #e2e8f0;
}

.empresa-btn {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.35s ease;
}

.empresa-btn:hover {
  transform: translateY(-6px);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
  .historia-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .empresa-cta-title {
    font-size: 28px;
  }

}

/* ==================================================
   17. NAV DROPDOWN (SERVICIOS)
================================================== */
.nav-item--dropdown {
  position: relative;
}

.nav-item--dropdown>.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-item--dropdown>.dropdown-trigger::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-item--dropdown:hover>.dropdown-trigger::before,
.nav-item--dropdown.open>.dropdown-trigger::before,
.nav-item--dropdown:focus-within>.dropdown-trigger::before {
  transform: rotate(-135deg) translateY(-1px);
}

.services-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, 78vw);
  list-style: none;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 31, 68, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-medium);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  z-index: 1200;
}

.nav-item--dropdown:hover .services-dropdown,
.nav-item--dropdown:focus-within .services-dropdown,
.nav-item--dropdown.open .services-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.services-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.35;
  background: transparent;
}

.services-dropdown a:hover {
  background: rgba(23, 138, 150, 0.22);
  color: #fff;
}

.services-dropdown a::after {
  display: none !important;
}

@media (min-width: 901px) {
  .nav-item--dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: min(360px, 78vw);
    height: 18px;
  }
}

/* ==================================================
   18. SERVICIOS (ES) PAGE UPGRADE
================================================== */
.servicios-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 138, 150, 0.35), transparent 42%),
    linear-gradient(120deg, rgba(10, 31, 68, 0.94), rgba(19, 44, 91, 0.88)),
    url("../images/imagen 4.jpg") center/cover no-repeat;
}

.servicios-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.servicios-hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 1.1px;
}

.servicios-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.servicios-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #dbe7ff;
  font-size: 18px;
}

.servicios-hero__highlights {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.servicios-hero__highlights span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.servicios-intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.servicios-intro {
  background:
    radial-gradient(circle at 90% 8%, rgba(23, 138, 150, 0.12), transparent 46%),
    linear-gradient(180deg, var(--light) 0%, var(--background) 100%);
}

.servicios-nav-section {
  background:
    radial-gradient(circle at 6% 50%, rgba(10, 31, 68, 0.08), transparent 42%),
    linear-gradient(180deg, var(--background) 0%, var(--gray) 100%);
}

.servicios-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.servicios-kpis article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.servicios-kpis strong {
  display: block;
  font-size: 30px;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.servicios-kpis span {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.services-anchor-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.services-anchor-grid a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--secondary);
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

.services-anchor-grid a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.service-detail {
  --section-accent: var(--primary-dark);
  --section-tag-bg: rgba(23, 138, 150, 0.12);
  --section-ring: rgba(23, 138, 150, 0.18);
  scroll-margin-top: 120px;
  position: relative;
  background: linear-gradient(180deg, var(--light) 0%, #f8fbfd 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.service-detail--soft {
  background: linear-gradient(180deg, #f5fafc 0%, #ebf3f8 100%);
}

.service-detail--reverse {
  background: linear-gradient(180deg, #fafdff 0%, #eff5f9 100%);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 30px;
  align-items: center;
}

.service-detail--reverse .service-detail__copy {
  order: 2;
}

.service-detail--reverse .service-mini-carousel {
  order: 1;
}

.service-detail__tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--section-tag-bg);
  color: var(--section-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.service-detail__copy h2 {
  color: var(--secondary);
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 12px;
}

.service-detail__copy p {
  color: var(--text);
  margin-bottom: 16px;
}

.service-detail__list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.service-detail__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-light);
  font-size: 15px;
}

.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--section-accent);
  box-shadow: 0 0 0 4px var(--section-ring);
}

.service-mini-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 340px;
  background: #0f172a;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--section-ring);
}

.mini-slides {
  position: relative;
  min-height: 340px;
}

.mini-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 500ms var(--ease-standard),
    transform 800ms var(--ease-standard);
}

.mini-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.mini-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  animation: mini-pan 8s ease-in-out infinite alternate;
}

.mini-slide:not(.is-active) img {
  animation-play-state: paused;
}

.mini-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: 70%;
  background: rgba(10, 31, 68, 0.72);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.mini-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}

.mini-btn:hover {
  background: var(--section-accent);
}

.mini-btn.prev {
  left: 12px;
}

.mini-btn.next {
  right: 12px;
}

.mini-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.mini-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.mini-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 3px var(--section-ring);
}

.servicios-proceso__grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.servicios-proceso .process-step {
  background: #fff;
  border-left: 4px solid var(--primary);
}

.servicios-proceso .process-step h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.servicios-cta-split__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.servicios-cta-split__media {
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(10, 31, 68, 0.22), rgba(10, 31, 68, 0.5)),
    url("../images/imagen 6.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-medium);
  min-height: 260px;
}

@keyframes mini-pan {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.09);
  }
}

@media (max-width: 1024px) {
  .servicios-intro__grid,
  .servicios-cta-split__grid,
  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .servicios-proceso__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail--reverse .service-detail__copy,
  .service-detail--reverse .service-mini-carousel {
    order: initial;
  }
}

@media (max-width: 900px) {
  .nav-item--dropdown {
    width: 100%;
  }

  .nav-item--dropdown::after {
    content: none;
  }

  .nav-item--dropdown>.dropdown-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .services-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-fast) var(--ease-standard);
  }

  .nav-item--dropdown.open .services-dropdown {
    max-height: 560px;
    pointer-events: auto;
  }

  .services-dropdown a {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .servicios-hero__highlights {
    justify-content: flex-start;
  }

  .servicios-kpis,
  .servicios-proceso__grid {
    grid-template-columns: 1fr;
  }

  .service-mini-carousel,
  .mini-slides {
    min-height: 270px;
  }

  .mini-slide img {
    height: 270px;
  }

  .mini-slide figcaption {
    max-width: 86%;
    font-size: 12px;
  }
}

/* ==================================================
   19. CONTACTO PAGE UPGRADE (ES)
================================================== */
.contacto-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 138, 150, 0.34), transparent 44%),
    linear-gradient(125deg, rgba(10, 31, 68, 0.96), rgba(19, 44, 91, 0.88)),
    url("../images/imagen 2.jpg") center/cover no-repeat;
}

.contacto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.contacto-hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.contacto-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 18px;
}

.contacto-hero__content h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.contacto-hero__content p {
  max-width: 760px;
  margin: 0 auto;
  color: #dbe7ff;
  font-size: 18px;
}

.contacto-hero__chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contacto-hero__chips span {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.contacto-hub {
  background:
    radial-gradient(circle at 95% 8%, rgba(23, 138, 150, 0.14), transparent 45%),
    linear-gradient(180deg, #f6fbff 0%, #edf4fa 100%);
}

.contacto-hub__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: start;
}

.contacto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.contacto-card__lead {
  margin-bottom: 22px;
  color: var(--text-light);
}

.contacto-card h2 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.contacto-card .form-group {
  margin-bottom: 16px;
}

.contacto-card .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-weight: 600;
}

.contacto-card input,
.contacto-card textarea,
.contacto-card select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.contacto-card textarea {
  resize: vertical;
  min-height: 130px;
}

.contacto-card input:focus,
.contacto-card textarea:focus,
.contacto-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 138, 150, 0.14);
  outline: none;
}

.contacto-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 18px;
}

.contacto-form__consent input {
  margin-top: 4px;
  width: auto;
}

.contacto-form__consent label {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.45;
}

.contacto-card .btn-primary {
  margin-top: 0;
}

.contacto-data-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.contacto-data-list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbfe;
  padding: 14px;
  display: grid;
  gap: 5px;
}

.contacto-data-list span {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.contacto-data-list a,
.contacto-data-list strong {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
}

.contacto-data-list a:hover {
  color: var(--primary-dark);
}

.contacto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacto-actions .btn-secondary,
.contacto-actions .btn-whatsapp {
  margin-top: 0;
}

.contacto-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.contacto-map-section {
  background:
    radial-gradient(circle at 7% 85%, rgba(10, 31, 68, 0.1), transparent 42%),
    linear-gradient(180deg, #eef5fb 0%, #e4edf7 100%);
}

.contacto-map-section__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: center;
}

.contacto-map-section__copy h2 {
  color: var(--secondary);
  margin-bottom: 12px;
}

.contacto-map-section__copy p {
  margin-bottom: 16px;
}

.contacto-zone-list {
  margin: 0 0 22px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contacto-zone-list li {
  border-radius: 10px;
  border: 1px solid rgba(23, 138, 150, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 8px 10px;
}

.contacto-map-embed {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.18);
  box-shadow: var(--shadow-medium);
  min-height: 360px;
}

.contacto-map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contacto-faq-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(23, 138, 150, 0.15), transparent 45%),
    linear-gradient(180deg, #f8fcff 0%, #edf4fb 100%);
}

.contacto-faq-list {
  list-style: none;
  margin: 22px auto 0;
  max-width: 920px;
  display: grid;
  gap: 12px;
}

.contacto-faq-item details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  will-change: height;
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.contacto-faq-item details[open] {
  border-color: rgba(23, 138, 150, 0.32);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.contacto-faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 56px 18px 20px;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.contacto-faq-item summary::-webkit-details-marker {
  display: none;
}

.contacto-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--secondary);
  background: rgba(23, 138, 150, 0.12);
  transition: transform var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard);
}

.contacto-faq-item details[open] summary::after {
  content: "-";
  transform: translateY(-50%) rotate(180deg) scale(1.05);
  background: rgba(10, 31, 68, 0.12);
}

.contacto-faq-answer {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 240ms var(--ease-standard),
    transform 240ms var(--ease-standard);
}

.contacto-faq-item details[open] .contacto-faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.contacto-faq-item details p {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 14px 20px 18px;
  font-size: 15px;
  color: var(--text);
}

.contacto-faq-item summary:hover {
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .contacto-hub__grid,
  .contacto-map-section__grid {
    grid-template-columns: 1fr;
  }

  .contacto-map-embed,
  .contacto-map-embed iframe {
    min-height: 320px;
  }

}

@media (max-width: 768px) {
  .contacto-card {
    padding: 24px;
  }

  .contacto-hero__chips {
    justify-content: flex-start;
  }

  .contacto-zone-list {
    grid-template-columns: 1fr;
  }

  .contacto-actions {
    flex-direction: column;
  }

  .contacto-actions .btn-secondary,
  .contacto-actions .btn-whatsapp,
  .contacto-card .btn-primary {
    width: 100%;
    text-align: center;
  }

}

/* Form backend readiness (no visual redesign) */
.form-anti-spam {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 1.2em;
}

.form-status.is-success {
  color: #1f8f4b;
}

.form-status.is-error {
  color: #b3261e;
}
