/* ===== MAPA DE UBICACIÓN ===== */
.map-iframe {
  height: 255px;
  width: 100%;
  max-width: 600px;
  border: 0;
  border-radius: var(--radius);
  display: block;
  margin: auto;
  margin-bottom: 1rem;
}

/* ===== ESTILOS SELECT FORMULARIO ===== */
.program-select {
  background-color: var(--slate-800);
  border: 1px solid var(--primary);
  color: var(--background-light);
  font-size: 1rem;
  font-family: "Lora", serif;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.program-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.program-select option {
  background: var(--background-light);
  color: var(--slate-900);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", serif;
}

p {
  font-family: "Lora", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0096d6;
  --background-light: #f5f7f8;
  --background-dark: #0f1d23;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --black: #000000;
  --radius: 1rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-light);
  font-family: "Public Sans", sans-serif;
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.text-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.text-white {
  color: var(--white);
}

.font-black {
  font-weight: 900;
}

.font-bold {
  font-weight: 700;
}

.font-light {
  font-weight: 300;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-\[1\.1\] {
  line-height: 1.1;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.z-\[100\] {
  z-index: 100;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.bottom-4 {
  bottom: 1rem;
}

.bottom-8 {
  bottom: 2rem;
}

.left-0 {
  left: 0;
}

.left-4 {
  left: 1rem;
}

.right-0 {
  right: 0;
}

.right-8 {
  right: 2rem;
}

.top-12 {
  top: 3rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-0\.5 {
  height: 2px;
}

.h-20 {
  height: 5rem;
}

.h-64 {
  height: 16rem;
}

.h-\[600px\] {
  height: 600px;
}

.min-h-\[85vh\] {
  min-height: 85vh;
}

.object-cover {
  object-fit: cover;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.border {
  border: 1px solid;
}

.border-b {
  border-bottom: 1px solid;
}

.border-t {
  border-top: 1px solid;
}

.border-slate-200 {
  border-color: var(--slate-200);
}

.border-slate-800 {
  border-color: var(--slate-800);
}

.border-slate-100 {
  border-color: var(--slate-100);
}

.border-4 {
  border-width: 4px;
  border-style: solid;
}

.border-primary {
  border-color: var(--primary);
}

.border-none {
  border: none;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-24 {
  padding-top: 6rem;
}

.pb-12 {
  padding-bottom: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.grayscale {
  filter: grayscale(100%);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* ===== FLEXBOX ===== */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.gap-20 {
  gap: 5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-rows-2 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* ===== SIZES ===== */
.size-8 {
  width: 2rem;
  height: 2rem;
}

.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}

.size-14 {
  width: 3.5rem;
  height: 3.5rem;
}

.size-24 {
  width: 6rem;
  height: 6rem;
}

/* ===== ASPECT RATIOS ===== */
.aspect-square {
  aspect-ratio: 1;
}

.aspect-video {
  aspect-ratio: 16/9;
}

.aspect-\[16\/10\] {
  aspect-ratio: 16/10;
}

/* ===== BACKGROUNDS ===== */
.bg-white {
  background-color: var(--white);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/30 {
  background-color: rgba(255, 255, 255, 0.3);
}

.bg-black\/20 {
  background-color: rgba(0, 0, 0, 0.2);
}

.bg-background-light {
  background-color: var(--background-light);
}

.bg-background-dark {
  background-color: var(--background-dark);
}

.bg-slate-800 {
  background-color: var(--slate-800);
}

.bg-slate-900 {
  background-color: var(--slate-900);
}

.bg-\[\#25D366\] {
  background-color: #25d366;
}

.bg-primary\/10 {
  background-color: rgba(0, 150, 214, 0.1);
}

.bg-white\/90 {
  background-color: rgba(255, 255, 255, 0.9);
}

.bg-background-dark\/90 {
  background-color: rgba(15, 29, 35, 0.9);
}

.bg-background-dark\/50 {
  background-color: rgba(15, 29, 35, 0.5);
}

.bg-background-dark\/80 {
  background-color: rgba(15, 29, 35, 0.8);
}

/* ===== GRADIENTS ===== */
.bg-gradient-to-r {
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.2)
  );
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ===== TEXT COLORS ===== */
.text-slate-400 {
  color: var(--slate-400);
}

.text-slate-500 {
  color: var(--slate-500);
}

.text-slate-600 {
  color: #475569;
}

.text-slate-900 {
  color: var(--slate-900);
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== TRANSITIONS ===== */
.transition-all {
  transition: all 0.2s ease;
}

.transition-colors {
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.transition-shadow {
  transition: box-shadow 0.2s ease;
}

.transition-transform {
  transition: transform 0.2s ease;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

/* ===== HOVER STATES ===== */
.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:bg-primary\/20:hover {
  background-color: rgba(0, 150, 214, 0.2);
}

.hover\:bg-primary\/10:hover {
  background-color: rgba(0, 150, 214, 0.1);
}

.hover\:bg-primary:hover {
  background-color: var(--primary);
}

.hover\:bg-white\/30:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.hover\:bg-black\/40:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-primary\/30:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 150, 214, 0.3);
}

.hover\:shadow-primary\/20:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 150, 214, 0.2);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

.hover\:gap-2:hover {
  gap: 0.5rem;
}

.hover\:border-primary\/50:hover {
  border-color: rgba(0, 150, 214, 0.5);
}

.hover\:text-white:hover {
  color: var(--white);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:grayscale-0:hover {
  filter: grayscale(0);
}

.active\:scale-95:active {
  transform: scale(0.95);
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:gap-2 {
  gap: 0.5rem;
}

.group:hover .group-hover\:text-primary {
  color: var(--primary);
}

.group:hover .group-hover\:bg-black\/40 {
  background-color: rgba(0, 0, 0, 0.4);
}

/* ===== FOCUS STATES ===== */
.focus\:ring-2:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

/* ===== BORDER STYLES ===== */
.border-white\/30 {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

header .header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 5rem;
  gap: 2rem;
}

a:hover {
  text-decoration: underline;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--primary);
}

/* NAV DESKTOP — visible solo en pantallas grandes */
nav:not(.mobile-nav) {
  display: none;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  nav:not(.mobile-nav) {
    display: flex;
  }
}

nav:not(.mobile-nav) a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 3px;
  text-decoration: none;
}

nav:not(.mobile-nav) a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

nav:not(.mobile-nav) a:hover {
  color: var(--primary);
  text-decoration: none;
}

nav:not(.mobile-nav) a:hover::after {
  width: 100%;
}

.icon-btn {
  padding: 0.5rem;
  background-color: rgba(0, 150, 214, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background-color: rgba(0, 150, 214, 0.2);
}

.btn-call {
  display: none;
  background-color: var(--primary);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.btn-call:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 150, 214, 0.3);
}

@media (min-width: 1024px) {
  .btn-call {
    display: block;
  }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: flex;
  }
}

.hamburger-btn:hover {
  background-color: rgba(0, 150, 214, 0.1);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--slate-900);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE DROPDOWN MENU ===== */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.5rem 1rem 1rem;
  z-index: 49;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 767px) {
  .mobile-nav.open {
    display: flex;
  }
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  display: block;
  padding: 0.875rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.2s;
  text-decoration: none;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ─── MAIN ─── */
main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.page-header p {
  color: var(--primary);
  font-weight: 500;
}

/* ─── STICKY TAB NAV ─── */
.tab-nav {
  top: 73px;
  background: var(--bg-light);
  z-index: 40;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 150, 214, 0.2);
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav a {
  white-space: nowrap;
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  color: var(--slate-500);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.tab-nav a.active,
.tab-nav a:first-child {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-nav a:hover {
  color: var(--primary);
}

/* ─── SECTIONS ─── */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

section {
  scroll-margin-top: 8rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.875rem;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 1rem;
}

.info-box {
  background: rgba(0, 150, 214, 0.05);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 150, 214, 0.1);
  margin-top: 2rem;
}

.info-box h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-box li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-box li .material-symbols-outlined {
  font-size: 0.875rem;
  color: var(--primary);
}

/* Privacy cards */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

.privacy-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.privacy-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.privacy-card p {
  font-size: 1rem;
}

.italic-note {
  font-style: italic;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

.italic-note a {
  color: var(--primary);
  text-decoration: none;
}

.italic-note a:hover {
  text-decoration: underline;
}

/* Cookies table */
.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

thead {
  background: rgba(0, 150, 214, 0.1);
}

th {
  padding: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 150, 214, 0.2);
}

tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 1rem;
}

td:first-child {
  font-weight: 500;
}

td:last-child {
  font-size: 0.875rem;
}

.cookies-note {
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--slate-900);
  color: white;
  padding: 6rem 1rem 3rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 5rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-grid h2 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

form input,
form textarea {
  width: 100%;
  background-color: var(--slate-800);
  border: none;
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

form textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.btn-submit:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 150, 214, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item p {
  color: var(--slate-400);
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  filter: grayscale(100%);
  transition: filter 700ms;
  height: 16rem;
  background-color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder:hover {
  filter: grayscale(0);
}

.map-placeholder .map-inner {
  text-align: center;
}

.map-placeholder p {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo .icon {
}

.footer-logo .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  width: 4rem;
  height: 4rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo span.name {
  font-weight: 700;
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--slate-400);
  transition: color 0.2s;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: white;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  color: white;
}

.social-btn:hover {
  background-color: var(--primary);
}

.footer-copy {
  text-align: center;
  color: var(--slate-100);
  font-size: 0.75rem;
  margin-top: 4.3rem;
}

/* ── RESPONSIVE ─── */
@media (max-width: 768px) {
  header .header-row {
    padding: 0 0.75rem;
    height: auto;
    min-height: 4rem;
  }

  .logo-wrap {
    gap: 0.75rem;
    height: auto;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-icon {
    width: 3rem;
    height: 3rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .page-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .tab-nav {
    gap: 1.25rem;
  }

  .content-area {
    gap: 3.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .prose {
    font-size: 1rem;
  }

  section {
    padding: 0;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .privacy-content {
    max-width: 100%;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-grid > div {
    grid-column: 1;
  }

  footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contact-item {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .map-placeholder {
    height: 14rem;
  }

  .footer-bottom {
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .whatsapp-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 480px) {
  header .header-row {
    padding: 0 0.5rem;
    min-height: 3.5rem;
  }

  .logo-wrap {
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  main {
    padding: 1.5rem 0.75rem;
  }

  .page-header h1 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  .tab-nav {
    gap: 1rem;
  }

  .tab-nav a {
    font-size: 0.8rem;
  }

  .content-area {
    gap: 2.5rem;
  }

  .section-title h2 {
    font-size: 1.25rem;
  }

  .prose {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .privacy-content {
    max-width: 100%;
  }

  .privacy-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .privacy-content p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  .privacy-content ul,
  .privacy-content ol {
    margin: 1rem 0 1rem 1.5rem;
  }

  .privacy-content li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-grid > div {
    grid-column: 1;
  }

  form .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  form input,
  form textarea,
  .program-select {
    font-size: 16px;
    padding: 0.75rem;
  }

  form label {
    font-size: 0.8rem;
  }

  .btn-submit {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .contact-item {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .contact-item p {
    color: var(--slate-300);
  }

  .map-placeholder {
    height: 12rem;
  }

  footer {
    padding: 1.5rem 0.75rem 1rem;
  }

  .footer-bottom {
    gap: 0.75rem;
  }

  .footer-links {
    gap: 0.75rem;
    font-size: 0.65rem;
  }

  .footer-logo {
    gap: 0.5rem;
  }

  .footer-logo .icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* .footer-copy responsive override removed for uniformity */

  .social-btn {
    width: 2rem;
    height: 2rem;
  }

  .whatsapp-fab {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    padding: 0.75rem;
    font-size: 1.2rem;
  }
}

/* Prevenir overflow horizontal */
html,
body {
  overflow-x: hidden;
}
