@import url('https://fonts.googleapis.com/css2?family=Francois+One&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(215, 30%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 30%, 15%);
  --primary: hsl(213, 55%, 25%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(40, 60%, 50%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(210, 15%, 93%);
  --muted-foreground: hsl(215, 15%, 45%);
  --accent: hsl(213, 45%, 92%);
  --accent-foreground: hsl(213, 55%, 25%);
  --border: hsl(214, 20%, 88%);
  --gold: hsl(40, 60%, 50%);
  --gold-light: hsl(40, 70%, 65%);
  --radius: 0.75rem;
  --font-display: 'Francois One', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --container-max: 1400px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 108%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin-top: 0;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen { min-height: 100vh; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(213, 55%, 25%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-header .logo-text { display: none; }

.site-header .logo-text p {
  margin: 0;
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-header .logo-text .subtitle {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-desktop a:hover { color: var(--gold-light); }

.btn-admision {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-admision:hover { background: #b91c1c; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--primary-foreground);
  cursor: pointer;
}

.menu-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  background: var(--primary);
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  padding: 0 1rem 1rem;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--gold-light); }

.nav-mobile .btn-admision {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-header .logo-text { display: block; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero home */
.hero-home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-home .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-home h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  max-width: 48rem;
  padding: 0 1rem;
}

/* Page hero */
.page-hero {
  position: relative;
  background: var(--primary);
  padding: 6rem 1rem 4rem;
  overflow: hidden;
  text-align: center;
}

.page-hero.has-bg-image img.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-hero.page-hero-photo {
  background: transparent;
}

.page-hero.page-hero-photo img.bg-image {
  opacity: 1;
}

.page-hero.page-hero-photo .hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
}

.page-hero .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary), hsla(213, 55%, 25%, 0.9), hsla(213, 55%, 25%, 0.7));
}

.page-hero .hero-content { position: relative; }

.page-hero .eyebrow {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  color: var(--primary-foreground);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-hero .subtitle {
  margin-top: 1.5rem;
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 1.125rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .subtitle.italic { font-style: italic; }

.page-hero .author {
  margin-top: 0.5rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.page-hero .hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section { padding: 4.5rem 0; }

.section-muted { background: hsla(210, 15%, 93%, 0.5); }

.section-primary { background: var(--primary); color: var(--primary-foreground); }

.section-bg-muted { background: var(--muted); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .eyebrow {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header .eyebrow.light { color: #ffffff; font-weight: 700; }

.section-header h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section-header h2.light { color: var(--primary-foreground); }

/* Cards grid */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2-md { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
  .grid-3-lg { grid-template-columns: repeat(3, 1fr); }
}

/* Nivel card */
.nivel-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.nivel-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

.nivel-card .card-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
}

.nivel-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.nivel-card:hover .card-image img { transform: scale(1.05); }

.nivel-card .card-image .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(213, 55%, 25%, 0.6), transparent);
}

.nivel-card .card-image h3 {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--primary-foreground);
  font-size: 1.5rem;
  font-weight: 700;
}

.nivel-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nivel-card .card-body p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.feature-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

.nivel-card .card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  text-align: center;
}

.btn-round-red {
  display: inline-block;
  border-radius: 9999px;
  background: #dc2626;
  color: #fff;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.btn-round-red:hover { background: #b91c1c; }

/* Stats */
.stats-section {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
}

.stats-section .stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary), hsla(213, 55%, 25%, 0.95), var(--secondary));
}

.stats-section .stats-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 25% 25%, white 1px, transparent 1px);
  background-size: 20px 20px;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.stat-item { text-align: center; }

.stat-item .number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.stat-item .label {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Bandas divider */
.bandas-divider { overflow: hidden; }

.bandas-divider .banda { height: 12px; }

.bandas-divider .banda-celeste { background: hsl(200, 80%, 65%); }

.bandas-divider .banda-blanca { background: #fff; }

.wave-divider { width: 100%; display: block; }

.wave-divider svg { width: 100%; height: 48px; display: block; }

@media (min-width: 768px) {
  .wave-divider svg { height: 64px; }
}

/* Propuesta cards */
.propuesta-card {
  background: hsla(0, 0%, 100%, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.3s;
}

.propuesta-card:hover { background: hsla(0, 0%, 100%, 0.1); }

.propuesta-card .icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.propuesta-card h3 {
  color: var(--primary-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.propuesta-card p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Novedades */
.novedad-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.novedad-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

.novedad-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-foreground);
  background: var(--primary);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.novedad-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.novedad-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  flex: 1;
  margin-bottom: 1rem;
}

.novedad-card .date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-top: auto;
}

.novedad-card .date svg { width: 16px; height: 16px; }

/* Institucional */
.institucional-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .institucional-grid { grid-template-columns: 1fr 1fr; }
}

.stats-inline {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stats-inline .value {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.stats-inline .label {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.image-frame {
  position: relative;
}

.image-frame .glow {
  position: absolute;
  inset: -12px;
  background: linear-gradient(to bottom right, hsla(40, 60%, 50%, 0.3), hsla(213, 55%, 25%, 0.2), hsla(40, 60%, 50%, 0.3));
  border-radius: 1rem;
  filter: blur(4px);
}

.image-frame .border-accent {
  position: absolute;
  inset: -4px;
  border: 2px solid hsla(40, 60%, 50%, 0.2);
  border-radius: 1rem;
}

.image-frame .main-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.image-frame .main-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.image-frame .overlay-warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(213, 55%, 25%, 0.4), transparent, hsla(40, 60%, 50%, 0.1));
  mix-blend-mode: multiply;
}

.image-frame .vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.3);
  border-radius: 1rem;
}

.escudo-float {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: var(--background);
  border-radius: 50%;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid hsla(40, 60%, 50%, 0.3);
}

.escudo-float img { width: 48px; height: 48px; object-fit: contain; }

.badge-a88 {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  text-align: center;
}

.badge-a88 .number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.badge-a88 .text {
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.8);
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon-box svg {
  width: 20px;
  height: 20px;
  color: var(--primary-foreground);
}

.contact-item .title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.contact-item .value {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 2rem;
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-card .intro {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsla(213, 55%, 25%, 0.3);
}

.form-textarea { resize: none; }

.btn-primary-full {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-primary-full:hover { filter: brightness(1.1); }

.map-container {
  margin-top: 3rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* Footer */
.site-footer {
  position: relative;
  background-color: #fff;
  width: 100%;
  overflow: hidden;
}

.footer-bg-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer-bg-waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 2rem 1.5rem 2rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-top-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-shield-container {
  flex-shrink: 0;
  width: 112px; /* reduced 10% from ~125px */
}

.footer-shield-container img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  text-align: center;
}

.footer-title-primary {
  font-family: var(--font-display);
  font-size: 17px; /* reduced 1px from 18px (increased 1px relative to previous) */
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.15rem 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-title-secondary {
  font-family: var(--font-display);
  font-size: 25px; /* reduced 1px from 26px (increased 1px relative to previous) */
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.15rem 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-title-sub {
  font-size: 15px; /* reduced 1px from 16px (increased 1px relative to previous) */
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.footer-column-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 132px; /* starts after the shield */
  align-items: flex-start;
}

.footer-column-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 4rem; /* breathing room from the right edge */
  align-items: flex-end;
}

.footer-column-right .footer-info-item {
  flex-direction: row-reverse;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 14px; /* reduced 1px from 15px (increased 1px relative to previous) */
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-info-item:hover {
  opacity: 0.85;
}

.footer-info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 1.5rem 1rem 1.5rem 1rem;
    min-height: auto;
    gap: 1.5rem;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
    text-align: center;
  }
  .footer-shield-container {
    width: 90px;
    margin: 0 auto;
  }
  .footer-title-container {
    margin: 0 auto;
    text-align: center;
  }
  .footer-title-primary {
    font-size: 16px;
  }
  .footer-title-secondary {
    font-size: 22px;
  }
  .footer-title-sub {
    font-size: 14px;
  }
  .footer-bottom-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 0;
  }
  .footer-column-left,
  .footer-column-right {
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }
  .footer-column-right .footer-info-item {
    flex-direction: row; /* reset to normal on mobile */
  }
  .footer-info-item {
    margin: 0 auto;
  }
}

/* WhatsApp button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.whatsapp-btn:hover { transform: scale(1.1); }

.whatsapp-btn img { width: 100%; height: 100%; object-fit: contain; }

/* Popup inscripción */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.popup-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  animation: scaleIn 0.3s ease;
}

.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.popup-close:hover { background: #b91c1c; }

.popup-close svg { width: 20px; height: 20px; }

.popup-content img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Generic cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.card-lg { padding: 2rem; }

.card-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.card-with-icon {
  display: flex;
  gap: 1rem;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsla(40, 60%, 50%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.icon-circle-sm {
  width: 40px;
  height: 40px;
}

.icon-circle-sm svg { width: 20px; height: 20px; }

.icon-circle-primary {
  background: hsla(213, 55%, 25%, 0.1);
}

.icon-circle-primary svg { color: var(--primary); }

.card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

.card-primary p { color: hsla(0, 0%, 100%, 0.85); }

.card-center { text-align: center; }

.card-center .icon-circle { margin: 0 auto 1rem; }

/* Content layouts */
.content-narrow { max-width: 48rem; margin: 0 auto; }

.content-medium { max-width: 64rem; margin: 0 auto; }

.text-muted { color: var(--muted-foreground); }

.text-lg { font-size: 1.125rem; }

.text-center { text-align: center; }

.leading-relaxed { line-height: 1.75; }

.space-y-4 > * + * { margin-top: 1rem; }

.space-y-5 > * + * { margin-top: 1.25rem; }

.space-y-6 > * + * { margin-top: 1.5rem; }

/* Historia layout */
.historia-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .historia-grid { grid-template-columns: 2fr 1fr; }
}

.historia-aside {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
}

/* Blockquote */
.blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.blockquote p {
  font-style: italic;
  margin: 0;
  line-height: 1.75;
}

.blockquote footer {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

/* Mapa casas */
.mapa-casas-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Casa links */
.casa-link {
  background: hsl(213, 75%, 32%);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.casa-link:hover {
  background: hsl(199, 85%, 55%);
  color: #fff;
  transform: scale(1.04);
}

/* Download item */
.download-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 1.25rem 1.5rem;
  transition: background 0.2s, transform 0.2s;
}

.download-item:hover {
  background: hsla(40, 60%, 50%, 0.1);
  transform: scale(1.02);
}

.download-item .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Image card */
.image-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.image-card .body { padding: 1.5rem; }

/* Split section */
.split-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .split-section { grid-template-columns: 1fr 1fr; }
}

.rounded-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid var(--border);
}

.rounded-image img { width: 100%; object-fit: cover; }

/* 404 */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  text-align: center;
}

.page-404 h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.page-404 a {
  color: var(--primary);
  text-decoration: underline;
}

.page-404 a:hover { opacity: 0.9; }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(40px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Utility */
.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; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.flex-center { display: flex; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 1rem; }
.inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; }
.w-full { width: 100%; }
.list-item-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--card);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 1.25rem;
}

.list-item-card .dot-lg {
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}
