:root {
  --verde-header: #b4c5b4;
  --verde-fondo: #f9f7f3;
  --verde-btn: #587060;
  --verde-btn-hover: #42594b;
  --texto-titulo: #294331;
  --texto-normal: #42594b;
  --blanco: #fff;
}

/* --- Globales --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--verde-fondo);
  color: var(--texto-normal);
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Animaciones */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.in-view {
  animation: fadeUp 0.8s ease forwards;
}

/* --- Header --- */
.header {
  background: var(--verde-header);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 6px rgba(44, 63, 52, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-left: 0;
}

.logo img {
  height: 62px;
  width: auto;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Eliminamos margin-left excesivo */
.logo {
  display: flex;
  align-items: center;
  margin-left: 0;
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--texto-titulo);
  transition: color 0.2s;
}

.nav ul li a:hover {
  color: var(--verde-btn);
}

.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--verde-btn);
}

.nav-parent {
  cursor: pointer;
}

/* --- Submenú --- */
.submenu {
  position: relative;
}

.submenu-items {
  display: none !important;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--blanco);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  min-width: 160px;
  z-index: 200;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.submenu-items li a {
  display: block;
  padding: 8px 16px;
  color: var(--texto-normal);
}

.submenu-items li a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--verde-btn);
}


.submenu:hover > .submenu-items,
.submenu.open > .submenu-items {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.nav-parent .arrow {
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.submenu.open .nav-parent .arrow {
  transform: rotate(180deg);
}

.insta-icon {
  width: 24px;
  height: 24px;
}


/* --- Menú hamburguesa (mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: 4px;
}

.bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--texto-titulo);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  padding: 0 5vw;
  gap: 40px;
  background: var(--verde-fondo);
}

.hero-content {
  flex: 1 1 40%;
  max-width: 600px;
  padding-left: 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: var(--texto-titulo);
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.35rem;
  margin-bottom: 38px;
  color: var(--texto-normal);
}

.whatsapp-btn {
  display: inline-flex;
  width: 270px;
  align-items: center;
  gap: 12px;
  background: var(--verde-btn);
  color: var(--blanco);
  font-size: 1.27rem;
  padding: 18px 36px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(64, 83, 70, 0.09);
  transition: background 0.2s;
  margin-top: 10px;
}

.whatsapp-btn:hover {
  background: var(--verde-btn-hover);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
}

.hero-carousel {
  flex: 1 1 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hero-carousel img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 1px 4px 30px rgba(58, 72, 63, 0.09);
  background: #eee;
  object-fit: cover;
  max-width: 800px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s;
}

.hero-slide.active {
  opacity: 1;
}


/* === Sobre nosotras === */
.about {
  background: var(--blanco);
  padding: 60px 0;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-text {
  flex: 1 1 60%;
}
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--texto-titulo);
  margin-bottom: 16px;
}
.about-text p {
  line-height: 1.6;
  color: var(--texto-normal);
}
.about-img {
  flex: 1 1 40%;
}
.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* === Beneficios === */
.benefits {
  background: var(--blanco);
  padding: 60px 0;
  text-align: center;
}

.benefits h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--texto-titulo);
  margin-bottom: 16px;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.benefit-item {
  flex: 1 1 220px;
  background: var(--verde-fondo);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.benefit-item h3 {
  margin-top: 0;
  color: var(--texto-titulo);
  font-size: 1.2rem;
}

.benefit-item p {
  margin-bottom: 0;
  color: var(--texto-normal);
}

/* === Opiniones === */
.opiniones {
  background: var(--blanco);
  padding: 60px 0;
  text-align: center;
}

.opiniones h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--texto-titulo);
  margin-bottom: 40px;
}

.opiniones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.opinion-item {
  flex: 1 1 250px;
  background: var(--verde-fondo);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.opinion-text {
  font-style: italic;
  margin-bottom: 12px;
}

.opinion-author {
  margin: 0;
  font-weight: 600;
  color: var(--texto-titulo);
}
@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    max-width: 300px;
  }
}
/* === Nuestro equipo === */
.equipo {
  background: #fff;
  padding: 60px 0;
}

.equipo-titulo {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--texto-titulo);
  margin-bottom: 40px;
}


.equipo-tarjeta img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.equipo-tarjeta h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--texto-titulo);
}

.especialidad {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--verde-btn);
  margin: 8px 0;
}

.descripcion {
  font-size: 0.9rem;
  color: var(--texto-normal);
}





.footer-contenido {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-frase {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-wpp {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--verde-btn);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-wpp:hover {
  color: var(--verde-btn-hover);
}

.footer-copy {
  font-size: 0.85rem;
  color: #333;
  opacity: 0.7;
}

/* === Instagram === */
.instagram-section {
  background: var(--blanco);
  padding: 60px 0;
  text-align: center;
}

.instagram-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--texto-titulo);
  margin-bottom: 24px;
}

.instagram-feed {
  display: flex;
  justify-content: center;
}

.instagram-feed .snapwidget-rpf,
.instagram-feed .snapwidget-widget {
  width: 100%;
  max-width: 860px;
  border: none;
  border-radius: 12px;
}

/* Floating WhatsApp */
.floating-wpp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--verde-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.floating-wpp.show {
  opacity: 1;
  visibility: visible;
}

.floating-wpp img {
  width: 32px;
  height: 32px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-carousel img {
    width: 350px;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    gap: 38px;
    min-height: unset;
    padding: 32px 4vw 24px 4vw;
    text-align: center;
  }
  .hero-content {
    padding-left: 0;
    align-items: center;
    max-width: 100%;
  }
  .hero-carousel {
    margin: 0 auto;
    min-width: 180px;
  }
  .hero-carousel img {
    width: 300px;
    border-radius: 14px;
  }
}

@media (max-width: 700px) {
  .header-container {
    height: 62px;
  }
  .logo img {
    height: 44px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .nav ul {
    flex-direction: column;
    background: var(--verde-header);
    position: absolute;
    top: 62px;
    left: 0;
    width: 100vw;
    padding: 24px 0;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(56,80,62,0.08);
    display: none;
  }
  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }
  .nav.nav-open ul {
    display: flex;
  }
  .submenu-items {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .submenu.open > .submenu-items {
    display: block !important;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 16px;
  }
  .subtitle {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  .whatsapp-btn {
    font-size: 1rem;
    padding: 13px 17px;
  }
  .hero-carousel img {
    width: 200px;
    border-radius: 10px;
  }
  .hero {
    gap: 18px;
    padding: 20px 2vw 16px 2vw;
  }
}
/* === Carrusel con flechas === */
.equipo-carrusel-wrapper {
  position: relative;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--verde-btn);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.carrusel-btn:hover {
  background: var(--verde-btn-hover);
}

.carrusel-btn.izq {
  left: -10px;
}

.carrusel-btn.der {
  right: -10px;
}

.equipo-carrusel {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 0 24px;
  scroll-behavior: smooth; /* ✅ movimiento animado */
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.equipo-carrusel::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome */
}
.equipo-tarjeta {
  flex: 0 0 280px;
  background: var(--verde-fondo);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  position: relative;
}

.equipo-tarjeta:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 5;
}
.footer {
  background-color: var(--verde-header);
  background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url("elecho.jpg");
  background-size: cover;
  background-position: center;
  color: var(--texto-titulo);
  padding: 60px 0 30px;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 60px;
}

/* === Contacto === */
.contacto {
  background: #fff;
  padding: 60px 0;
}

.contacto h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--texto-titulo);
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  padding: 14px 24px;
  background: var(--verde-btn);
  color: var(--blanco);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--verde-btn-hover);
}

.success-message {
  color: var(--texto-titulo);
  text-align: center;
  margin-top: 16px;
}

/* --- Blog --- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.blog-post h2 {
  margin-bottom: 8px;
  color: var(--texto-titulo);
}

.blog-date {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--texto-normal);
}

/* --- Cursos --- */
.cursos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.curso-item {
  flex: 1 1 280px;
  background: var(--verde-fondo);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.curso-item img {
  border-radius: 8px;
  margin-bottom: 12px;
}

.curso-item h3 {
  margin-top: 0;
  color: var(--texto-titulo);
}

.curso-item .precio,
.curso-item .duracion {
  font-weight: 600;
  color: var(--texto-titulo);
  margin-bottom: 4px;
}
