/*
PALETA DE COLORES

DARK MODE
- Fondo principal:        #020617  (var(--bg))
- Fondo secciones muted:  rgba(15, 23, 42, 0.7)
- Tarjetas / cards:       radial gradient (#0f172a → #020617)
- Borde:                  rgba(148, 163, 184, 0.35)
- Texto principal:        #e5e7eb
- Texto muted:            #94a3b8
- Primario:               #6366f1
- Primario suave:         rgba(99, 102, 241, 0.18)
- Acento:                 #a855f7

LIGHT MODE
- Fondo principal:        #f8fafc  (var(--bg))
- Fondo secciones muted:  #e5edff (tono suave azulado)
- Tarjetas / cards:       #ffffff
- Borde:                  #e2e8f0
- Texto principal:        #0f172a
- Texto muted:            #64748b
- Primario:               #6366f1 (mismo que dark)
- Primario suave:         rgba(99, 102, 241, 0.08)
- Acento:                 #a855f7 (mismo que dark)
*/

:root {
  /* DARK DEFAULT */
  --bg: #020617;
  --bg-muted: rgba(15, 23, 42, 0.7);
  --card: #020617;
  --border: rgba(148, 163, 184, 0.35);
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-soft: rgba(99, 102, 241, 0.18);
  --accent: #a855f7;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
  --transition: 0.25s ease;
}

/* LIGHT THEME OVERRIDES */
body.theme-light {
  --bg: #f8fafc;
  --bg-muted: #e5edff;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary-soft: rgba(99, 102, 241, 0.08);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, var(--bg) 55%, #000 100%);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Fondo en light */
body.theme-light {
  background: radial-gradient(circle at top, #e5e7eb 0, #f8fafc 45%, #e2e8f0 100%);
}

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

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

/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border var(--transition);
}

.btn.small {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

.btn.full {
  width: 100%;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.5);
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.8);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(148, 163, 184, 0.5);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.85);
}

body.theme-light .btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Navbar */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background var(--transition), border-bottom var(--transition),
    backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}


.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

body.theme-light .navbar.scrolled {
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
}

/* Theme toggle */
.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.theme-toggle.mobile {
  width: auto;
  padding: 0.35rem 0.8rem;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0.5rem 0 0.5rem;
}

/* Fix: theme toggle con icono + texto */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* separa el icono del texto */
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Icono siempre alineado */
.theme-toggle .theme-icon {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

/* Texto del toggle */
.theme-toggle .theme-label {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-primary);
}

/* En dark mode que no quede amarillo chillón */
body:not(.theme-light) .theme-toggle .theme-icon {
  filter: brightness(0.85);
}


/* --- Desktop theme toggle con icono + texto --- */
.theme-toggle.desktop {
  width: auto;
  height: auto;
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.theme-toggle.desktop .theme-icon {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.theme-toggle.desktop .theme-label {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-primary);
}
/* Animaciones suaves para el theme toggle */
.theme-toggle {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Opcional: un poquito de glow distinto según el tema */
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(148, 163, 184, 0.4);
}

body:not(.theme-light) .theme-toggle {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.5);
}

/* Icono animado */
.theme-toggle .theme-icon.animate {
  animation: theme-pop 0.45s ease-out;
}

@keyframes theme-pop {
  0% {
    transform: scale(0.8) rotate(-15deg);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.1) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}


.theme-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
  transform: translateY(-1px);
}

body.theme-light .theme-toggle {
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  position: relative;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-open .icon-burger {
  display: none;
}

.mobile-menu-open .icon-close {
  display: inline;
}

.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border);
}

body.theme-light .mobile-menu {
  background: rgba(248, 250, 252, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-menu a:hover {
  color: var(--text);
}

/* Fix botón en el menú mobile */
.mobile-menu .btn {
  width: 100%;
  margin-top: 1rem;
}

.mobile-menu .btn-gradient {
  justify-content: center;
  color: #fff;          /* fuerza texto blanco sobre el gradiente */
  text-align: center;
}


/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden; 
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, #1e293b 0, #020617 40%, #000 100%);
  mix-blend-mode: multiply;
}

body.theme-light .hero-overlay {
  background: radial-gradient(circle at top, #e5e7eb 0, #f8fafc 40%, #cbd5f5 100%);
  mix-blend-mode: normal;
}

.hero-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.9;
  animation: glow 8s ease-in-out infinite alternate;
}

.hero-glow-left {
  top: 18%;
  left: -7rem;
  background: rgba(129, 140, 248, 0.45);
}

.hero-glow-right {
  bottom: 18%;
  right: -7rem;
  background: rgba(192, 132, 252, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

body.theme-light .hero-pill {
  background: rgba(248, 250, 252, 0.9);
}

.hero-kicker {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-kicker span {
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(2.85rem, 6vw, 4.1rem);
  margin-bottom: 0.8rem;
  line-height: 1.05;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 2rem; /* espacio entre botón y flecha */
  display: flex;
  justify-content: center;
  align-items: center;
}

.chevron svg {
  display: block;
  width: 28px;
  height: 28px;
  stroke: rgba(148, 163, 184, 0.7);
  animation: bounce 1.5s ease-in-out infinite;
}

/* Animación suave */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* About */
.about-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  }
}

.about-image {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.about-image-glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 1.5rem;
  background: conic-gradient(
    from 220deg,
    rgba(99, 102, 241, 0.35),
    rgba(168, 85, 247, 0.25),
    transparent 60%
  );
  filter: blur(22px);
}

.about-photo {
  position: relative;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.about-text h2 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 1rem;
}

.experience {
  margin-top: 2rem;
}

.experience h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 0.6rem;
}

body.theme-light .timeline-item {
  background: #ffffff;
  border-color: var(--border);
}

.timeline-year {
  min-width: 6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cards base */
.card-ambient {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}

body.theme-light .card-ambient {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.card-ambient:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 1);
}

body.theme-light .card-ambient:hover {
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 2.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.skills-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.skills-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
}

.skills-tags .card-ambient {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.9rem 0.7rem;
}

/* Soft skills */
.soft-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.soft-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.15rem;
}

.soft-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.soft-card span {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Work filters */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  margin-top: 2.2rem;
}

.filter-btn {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition), border var(--transition);
}

body.theme-light .filter-btn {
  background: #ffffff;
  border-color: var(--border);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.7);
  transform: translateY(-1px);
}

/* Overrides solo para LIGHT MODE */
body.theme-light .filter-btn {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-muted);
}

body.theme-light .filter-btn.active {
  background: #ecebff; /* lavanda suave */
  border-color: #a5b4fc; /* morado pastel */
  color: #3730a3; /* indigo-800 */
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.35);
}


/* Projects grid */
.projects-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.project-card {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.project-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.1rem 1rem 1.15rem;
}

.project-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.project-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 2.4rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
}

body.theme-light .project-tags span {
  background: #f1f5f9;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

body.theme-light .modal-backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.6rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

body.theme-light .modal {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  border-radius: 999px;
  border: none;
  width: 2rem;
  height: 2rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

body.theme-light .modal-close {
  background: #e5e7eb;
  color: #475569;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--text);
}

body.theme-light .modal-close:hover {
  background: #cbd5f5;
  color: #0f172a;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.15rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.modal-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  font-weight: 500;
}

.modal-body {
  margin-top: 1.6rem;
}

.modal-image-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 1.4rem;
}

.modal-image-wrapper img {
  width: 100%;
  display: block;
}

.modal-section {
  margin-bottom: 1.35rem;
}

.modal-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.modal-section p,
.modal-section ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-section ul {
  padding-left: 1.25rem;
}

.modal-section li {
  margin-bottom: 0.25rem;
}

.modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Contact */
.contact-container {
  max-width: 680px;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.contact-icon.email {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.contact-icon.linkedin {
  background: rgba(37, 99, 235, 0.16);
  color: #4f46e5;
}

.contact-icon.behance {
  background: rgba(139, 92, 246, 0.16);
  color: #a855f7;
}

.contact-icon.whatsapp {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-cta {
  margin-top: 2.2rem;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 3rem;
}

body.theme-light .footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding: 0 1.5rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

.footer h3 {
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

.footer-links li + li {
  margin-top: 0.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 1.5rem 1.3rem;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.heart {
  color: var(--primary);
}

/* Animaciones de entrada */
.anim-fade,
.anim-fade-up,
.anim-scale {
  opacity: 0;
  transform-origin: center center;
}

.anim-fade {
  transform: translateY(0);
}

.anim-fade-up {
  transform: translateY(22px);
}

.anim-scale {
  transform: scale(0.94);
}

.in-view {
  opacity: 1 !important;
  transform: none !important;
  transition:
    opacity 0.65s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* Animaciones keyframes */
@keyframes glow {
  from {
    transform: scale(0.95);
    opacity: 0.6;
  }
  to {
    transform: scale(1.05);
    opacity: 0.95;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

@keyframes pulse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(6px);
    opacity: 0.3;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}


.logo img,
.logo-img {
  height: 50px; /* ajusta a tu gusto */
  width: auto;
  display: block;
}



/* 1) Deja de “empujar” todo el hero con transform */
.hero .hero-content {
  transform: none !important;
  text-align: center;
  display: grid;             /* si ya era grid, no pasa nada */
  justify-items: center;     /* centra TODO horizontalmente */
  row-gap: 1.25rem;          /* espacio base entre título, chip y CTA */
}

/* 2) Controla el espacio con gap (no con margin) */
@media (min-width: 768px){
  .hero .hero-content { row-gap: 1.75rem; } /* sube/baja a gusto */
}

/* 3) Botón: centrado y con aire */
.hero .hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero .hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;            /* por si hereda algo raro */
  min-width: 260px;          /* opcional: para que no “salte” */
}

/* 4) Chevron debajo del botón y centrado */
.scroll-indicator {
  position: static !important;   /* si antes estaba absolute/bottom */
  margin-top: 2.25rem;           /* separa flecha del botón */
  display: flex;
  justify-content: center;
}

.chevron svg {
  width: 28px; height: 28px;
  stroke: rgba(148,163,184,.7);
  animation: hero-bounce 1.5s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}
