/* ===== Variables ===== */
:root {
  /* Colores principales */
  --azul: #4A5BE8;          /* fondo hero, secciones destacadas */
  --azul-hover: #3A4BD8;    /* hover de botones azules */
  --lima: #C9F26A;          /* botones, acentos, texto highlight */
  --lima-hover: #B8E055;    /* hover de botones lima */
  
  /* Neutros */
  --blanco: #FFFFFF;
  --crema: #F5F1EC;         /* fondos secundarios */
  --tinta: #1A1A1A;         /* texto principal */
  --tinta-soft: #4A4A4A;    /* texto secundario */
  
  /* Acento decorativo */
  --rosa: #F2D9DD;          /* badges, detalles */

  /* Typography */
  --font-display: 'Permanent Marker', cursive;
  --font-body: 'Quicksand', sans-serif;
  
  /* Radii */
  --arch-radius: 50% 50% 12px 12px / 40% 40% 12px 12px;
  --card-radius: 20px;
  --btn-radius: 50px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===== Resets ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--tinta);
  background-color: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Typography Utilities ===== */
.text-sage { color: var(--azul); }
.italic { font-style: italic; }
.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--tinta-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3rem;
}

/* ===== Layout Utilities ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-cream {
  background-color: var(--crema);
  padding: 6rem 0;
}

.section-sage {
  background-color: var(--azul);
  color: var(--blanco);
  padding: 6rem 0;
}

.section-sage .section-title {
  color: var(--blanco);
}

.section-dark-sage {
  background-color: var(--azul-hover);
  color: var(--blanco);
  padding: 6rem 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--btn-radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--lima);
  color: var(--tinta);
}

.btn-primary:hover {
  background-color: var(--lima-hover);
  color: var(--tinta);
}

.btn-secondary {
  background-color: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn-secondary:hover {
  background-color: var(--blanco);
  color: var(--azul);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--tinta);
  border: 2px solid var(--tinta);
}

.btn-secondary-outline:hover {
  background-color: var(--tinta);
  color: var(--blanco);
}

.btn-secondary-outline.white-outline {
  color: var(--blanco);
  border-color: var(--blanco);
}

.btn-secondary-outline.white-outline:hover {
  background-color: var(--blanco);
  color: var(--azul);
}

.btn-whatsapp {
  background-color: #25D366; /* WhatsApp color */
  color: #fff;
}
.btn-whatsapp:hover {
  background-color: #1ebe58;
}

/* ===== Image Utilities ===== */
.arch-image {
  border-radius: var(--arch-radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--azul), var(--rosa));
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== 1. Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 241, 236, 0.85); /* crema with opacity */
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--tinta);
}

.nav-links {
  display: none; /* hidden on mobile */
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--tinta);
  cursor: pointer;
  display: block;
}

/* ===== 2. Hero ===== */
.hero {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.circled-text {
  position: relative;
  display: inline-block;
}

.circle-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  color: var(--lima);
  pointer-events: none;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.separator-white {
  width: 60px;
  height: 4px;
  background-color: var(--blanco);
  border: none;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image {
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

/* ===== 3. Marquee Animado ===== */
.marquee-container {
  background-color: var(--blanco);
  color: var(--tinta);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--tinta);
  border-bottom: 1px solid var(--tinta);
  font-weight: 700;
  letter-spacing: 2px;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Marcas ===== */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
  min-height: 100px; /* Evita saltos mientras cargan */
}

.brand-logo {
  height: 40px; /* Altura fija para mayor consistencia */
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== 4. Sobre mí ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 4/5;
  max-width: 450px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.values-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--azul);
}

.values-list li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
}
.values-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--lima);
}

/* ===== 5. Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--blanco);
  color: var(--tinta);
  padding: 2.5rem;
  border-radius: var(--card-radius);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--azul);
  opacity: 0.8;
  display: block;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-link {
  font-weight: 700;
  color: var(--azul);
}

.service-link:hover {
  color: var(--azul-hover);
}

/* ===== 6. Cursos ===== */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.course-card {
  background-color: var(--blanco);
  border-radius: var(--card-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(26,26,26,0.1);
}

.course-badge {
  background-color: var(--rosa);
  color: var(--tinta);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
  letter-spacing: 1px;
}

.course-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.course-content p {
  margin-bottom: 1rem;
}

.course-meta {
  font-size: 0.9rem;
  color: var(--tinta-soft);
  display: flex;
  gap: 0.5rem;
}

.course-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.course-price {
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===== 7. Portafolio ===== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--azul-hover);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 91, 232, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay span {
  transform: translateY(0);
}

.portfolio-action {
  margin-top: 3rem;
  text-align: center;
}

/* ===== 8. Testimonios ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: #fff;
  border-radius: var(--card-radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
}

.quote-icon {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--rosa);
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.testimonial-author h4 {
  font-weight: 700;
  color: var(--azul-hover);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--tinta-soft);
}

/* ===== 9. CTA ===== */
.cta-contact {
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: var(--blanco);
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-links a:hover {
  background-color: var(--blanco);
  color: var(--azul-hover);
}

/* ===== 10. Footer ===== */
.footer {
  background-color: var(--tinta);
  color: var(--crema);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  color: var(--crema);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 236, 0.1);
  padding-top: 2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.8;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== Media Queries ===== */
@media (min-width: 768px) {
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-buttons {
    flex-direction: row;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Courses */
  .course-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .course-badge {
    align-self: center;
  }
  .course-action {
    align-items: flex-end;
    margin-top: 0;
    min-width: 200px;
  }
  
  /* Portfolio */
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* CTA */
  .cta-buttons {
    flex-direction: row;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-links {
    flex-direction: row;
    gap: 2rem;
  }
  .footer-bottom {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.5rem;
  }
  
  .hero-title {
    font-size: 5.5rem;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  .nav-links a {
    font-weight: 600;
  }
  .nav-links a:hover {
    color: var(--azul);
  }
  .btn-nav {
    background-color: var(--lima);
    color: var(--tinta) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
  }
  .btn-nav:hover {
    background-color: var(--lima-hover);
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu Active State */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--crema);
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  text-align: center;
  gap: 1.5rem;
}
