/*NAV*/
/* RESET BÁSICO */
.header {
  position: fixed;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

/* NAV PILL */
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 12px 24px;
  border-radius: 999px;

  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);

  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.3);

  width: 90%;
  max-width: 1100px;
}

/* LEFT */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 40px;
}

/* BRAND */
.brand-container {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

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

.sub-brand {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  z-index: 999;
}

.nav-pill {
  position: relative;
  z-index: 1000;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  position: relative;
  transition: 0.3s;
}

/* hover elegante */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: linear-gradient(90deg, #ff3c3c, #ff7a00);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* BOTÓN */
.btn-agenda {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3c3c, #ff7a00);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;

  transition: 0.3s;
}

.btn-agenda:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 80, 0, 0.3);
}

/* BOTÓN HAMBURGUESA */


.nav-links.active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: -1;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 30px 20px;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all 0.35s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

}

.nav-links {
  transition: all 0.35s ease;
}

.nav-links a {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: rgba(255, 122, 0, 0.08);
}

/*HERO*/
.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 120px 20px 60px;

  background: url("img/ilse-1.png") center 60%/cover no-repeat;
}

/* ========================= */
/* MENU MOBILE*/
/* ========================= */

/* oculto en desktop */
.btn-agenda.mobile {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {

  .btn-agenda.mobile {
    display: block;
    width: 90%;
    text-align: center;
    margin-top: 10px;
    padding: 12px;

    font-size: 0.95rem;
  }

}

@media (max-width: 768px) {

  .nav-links {
    justify-content: flex-start;
  }

  .btn-agenda.mobile {
    margin-top: 20px;
  }

}

.btn-agenda.mobile {
  background: linear-gradient(135deg, #ff5a1f, #ff7a3d);
  color: white;
  border-radius: 12px;
}

/* BOTÓN */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* ANIMACIÓN X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 30px 20px;

    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all 0.3s ease;

    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-right {
    display: none;
  }
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65),
    rgba(255, 80, 0, 0.3)
  );

  backdrop-filter: blur(4px); /* 🔥 este es el efecto que querías */
}

.hero-text h1 {
  text-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

body {
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CONTENIDO */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  text-align: center;
  color: white;
  max-width: 700px;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-text p {
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.9;
}

/* BOTONES */
.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(90deg, #ff3c3c, #ff7a00);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid white;
  color: white;
}

@media (max-width: 768px) {

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

}

/*CONEXION*/
.conexion {
  padding: 100px 20px;
  text-align: center;
}

.conexion-container {
  max-width: 1100px;
  margin: auto;
}

.conexion h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.conexion-sub {
  color: #666;
  margin-bottom: 40px;
}

/* CARDS */
.conexion-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.conexion-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  width: 280px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.conexion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* FINAL */
.conexion-final {
  margin-top: 50px;
}

.conexion-highlight {
  color: #ff5a2f;
  font-weight: 500;
  margin-bottom: 10px;
}

@media (max-width: 768px) {

  .conexion h2 {
    font-size: 1.8rem;
  }

  .conexion-card {
    width: 100%;
  }

}

.conexion-card:hover {
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.08),
    0 0 20px rgba(255, 80, 0, 0.15);
}

/*SOBRE ELLA*/
.about {
  padding: 100px 20px;
}

.about {
  background: #f9fafb;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 90, 47, 0.08),
    transparent 60%
  );
}

.about-container {
  max-width: 1100px;
  margin: auto;

  display: flex;
  align-items: center;
  gap: 50px;
}

/* IMAGEN */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img-wrapper {
  border-radius: 30px;
  overflow: hidden;

  box-shadow: 
    0 20px 50px rgba(0,0,0,0.1),
    0 0 50px rgba(255, 80, 0, 0.1);
}

.about-img-wrapper img {
  width: 100%;
  max-width: 400px;
  display: block;
}

/* TEXTO */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.about-highlight {
  color: #ff5a2f;
  font-weight: 500;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 12px;
  color: #555;
}

.about-closing {
  font-weight: 500;
  margin-top: 10px;
}



@media (max-width: 768px) {

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img-wrapper img {
    max-width: 280px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

}

.about-img-wrapper {
  transform: rotate(-1.5deg);
}

.about-img-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
  transition: 0.3s;
}

/*METODO*/
.metodo {
  padding: 100px 20px;
  background: #fafafa;
  text-align: center;
}

.metodo-container {
  max-width: 1100px;
  margin: auto;
}

.metodo h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.metodo-sub {
  color: #666;
  margin-bottom: 50px;
}

/* GRID PRO */
.metodo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* CARD */
.metodo-card {
  background: white;
  padding: 30px;
  border-radius: 25px;
  text-align: left;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* EFECTO GRADIENTE OCULTO */
.metodo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #ff3c3c, #ff7a00);
  opacity: 0;
  transition: 0.3s;
}

/* HOVER */
.metodo-card:hover::before {
  opacity: 0.05;
}

.metodo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* ICON */
.metodo-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.metodo-card h3 {
  margin-bottom: 8px;
}

.metodo-card p {
  color: #555;
  font-size: 0.95rem;
}

@media (max-width: 768px) {

  .metodo-cards {
    grid-template-columns: 1fr;
  }

  .metodo h2 {
    font-size: 1.8rem;
  }

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

}

.metodo-card {
  border-left: 3px solid transparent;
}

.metodo-card:hover {
  border-left: 3px solid #ff5a2f;
}

/*SERVICIOS*/
.servicios {
  padding: 120px 20px;
  text-align: center;
    background: linear-gradient(to bottom, #fff, #fff7f3);
}

.servicios-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.servicios-sub {
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* GRID */
.servicios-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.servicio-card {
  background: white;
  padding: 35px 25px;
  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;

  position: relative;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* DESTACADO */
.servicio-card.destacado {
  border: 2px solid #ff5a1f;
  transform: scale(1.05);
}

.servicio-card.destacado:hover {
  transform: scale(1.05) translateY(-10px);
}

.tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);

  background: #ff5a1f;
  color: white;

  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* TEXTO */
.servicio-card h3 {
  margin-bottom: 10px;
}

.servicio-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

/* LISTA */
.servicio-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.servicio-card li {
  margin-bottom: 10px;
  color: #444;
}

.servicio-card .btn-primary {
  display: inline-block;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .servicios-cards {
    grid-template-columns: 1fr;
  }

  .servicio-card.destacado {
    transform: none;
  }
}

@media (max-width: 768px) {

  .servicio-card {
    width: 100%;
    text-align: center;
  }

  .destacado {
    transform: none;
  }

}

.mini-note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #888;
}

.servicio-card:hover {
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.08),
    0 0 25px rgba(255, 80, 0, 0.15);
}

/*ESPECIALIDADES*/
/* ===== SECCIÓN ===== */
.especialidades {
  padding: 100px 20px;
  background: #f9fafb;
}

.especialidades-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.especialidades h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.especialidades-sub {
  color: #666;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ===== GRID ===== */
.especialidades-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===== CARD ===== */
.especialidad-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.35s ease;
}

/* ✨ HOVER PRO */
.especialidad-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* ===== LOTTIE ===== */
.lottie-icon {
  width: 300px;
  height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}

/* ===== TEXTOS ===== */
.especialidad-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.especialidad-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .especialidades-cards {
    grid-template-columns: 1fr;
  }

  .lottie-icon {
    width: 200px;
    height: 200px;
  }
}

/*PACIENTES Y FRASES*/
.social-proof {
  padding: 100px 20px;
  text-align: center;
  background: #fafafa;
}

.social-container {
  max-width: 800px;
  margin: auto;
}

.social-proof h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.social-sub {
  color: #666;
  margin-bottom: 25px;
}

/* FRASES */
.frases-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: italic;
  color: #555;
  margin-bottom: 25px;
}

/* TRANSICIÓN */
.social-transition {
  font-weight: 500;
  margin-bottom: 40px;
}

/* SLIDER */
.testimonios-slider {
  position: relative;
  overflow: hidden;
}

/* TESTIMONIO */
.testimonio {
  display: none;
  background: white;
  padding: 30px;
  border-radius: 25px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.05);

  transition: 0.4s;
}

.testimonio.active {
  display: block;
}

.testimonio p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
}

.testimonio span {
  font-size: 0.85rem;
  color: #888;
}

/* DOTS */
.slider-controls {
  margin-top: 20px;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: linear-gradient(90deg, #ff3c3c, #ff7a00);
  transform: scale(1.2);
}

.testimonio {
  opacity: 0;
  transform: translateY(10px);
}

.testimonio.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonio.active {
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.05),
    0 0 25px rgba(255, 80, 0, 0.15);
}

/*CTA*/
.cta h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.cta-sub {
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta h2,
.cta p {
  color: #1a1a1a;
}

.cta small,
.cta span {
  color: #444;
}

/* BOTÓN CTA PRINCIPAL */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ff5a1f, #ff7a3d);
  color: white;

  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;

  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.3);
}

/* INFO */
.cta-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  font-size: 0.9rem;
  opacity: 0.9;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  color: white;
}

/* 📸 IMAGEN */
.cta-bg {
  position: absolute;
  inset: 0;
  background: url("img/fondo-ilse.png") center/cover no-repeat;
  z-index: 0;
}

/* 🎨 OVERLAY (tu rojo elegante) */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 72, 0, 0.85),
    rgba(255, 120, 0, 0.85)
  );
  z-index: 1;
}

/* CONTENIDO */
.cta-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta-sub {
    font-size: 0.95rem;
  }

}

/*FOOTER*/
.footer {
  background: #f9fafb;
  padding: 60px 20px 30px;
  font-family: 'Inter', sans-serif;
  color: #444;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

/* IZQUIERDA */
.footer-brand h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
}

.footer-brand span {
  font-size: 13px;
  opacity: 0.6;
}

/* CENTRO */
.footer-contact p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-contact a {
  display: block;
  text-decoration: none;
  color: #444;
  margin-bottom: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.footer-contact a:hover {
  color: #ff5a2f;
}

/* DERECHA */
.footer-nav a {
  display: block;
  text-decoration: none;
  color: #444;
  margin-bottom: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.footer-nav a:hover {
  color: #ff5a2f;
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 40px auto 20px;
  max-width: 1100px;
}

/* BOTTOM */
.footer-bottom {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.7;
}

.footer-bottom .aura strong {
  margin-left: 5px;
}

@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

}

.footer-logo {
  width: 70px;
  margin-bottom: 10px;
}

.brand-text {
  font-size: 14px;
  opacity: 0.7;
  max-width: 250px;
}

/* AURA */
.aura-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.aura-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aura-content img {
  width: 18px;
  opacity: 0.8;
}

.aura-content span {
  font-weight: 500;
}

html {
  scroll-behavior: smooth;
}

.nav-links a,
.footer-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #ff5a2f;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.footer-nav a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #ff5a2f;
}

.nav-links a.active::after {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }

.btn-primary,
.btn-secondary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff6b4a;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .reveal {
    transform: none;
    filter: none;
    opacity: 1;
  }
}
