/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

/* NAV GENERAL */
.nav {
  width: 100%;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

/* CONTENEDOR */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

/* TEXTO MARCA */
.brand-text {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 600;
  font-size: 16px;
  color: #2A2A2A;
}

.subtitle {
  font-size: 13px;
  color: #6EC6B8; /* verde del logo */
}

/* LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #2A2A2A;
  font-size: 14px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #2F6C9E; /* azul */
}

/* BOTÓN CONTACTO */
.btn-contacto {
  background: #2F6C9E;
  color: white !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-contacto:hover {
  background: #25587d;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #2F6C9E;
  border-radius: 2px;
  transition: 0.3s;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.05);

    /* oculto por defecto */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 16px;
  }

  .btn-contacto {
    width: 80%;
    text-align: center;
  }
}

.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);
}

/*HERO*/
.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: url("/toga.jpg") center bottom/cover no-repeat;
  overflow: hidden;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(34,139,110,0.75),
    rgba(34,139,110,0.25)
  );

  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    background-position: center;
  }
}

/* CONTENIDO */
.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* TEXTO */
.hero-text {
  max-width: 600px;
  color: white;
}

/* TAG */
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

/* TITULO */
.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* SUB */
.hero-sub {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.95;
}

/* BULLETS */
.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 15px;
}

/* BOTONES */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #F4C95D;
  color: #2A2A2A;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #e5b94f;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: white;
  color: #2F6C9E;
}

@media (max-width: 768px) {

  .hero {
    height: auto;
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-points {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ANIMACIONES BASE */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in {
  opacity: 0;
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.3s; }
.fade-up:nth-child(4) { transition-delay: 0.4s; }
.fade-up:nth-child(5) { transition-delay: 0.5s; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/*sobre mi*/
/* SECCIÓN */
.about {
  padding: 100px 20px;
  background: #F5F5F5;
}

/* CONTENEDOR */
.about-container {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* IMAGEN */
.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

/* efecto suave detrás */
.about-img-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #6EC6B8;
  top: 15px;
  left: 15px;
  border-radius: 20px;
  z-index: -1;
}

.about-img img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* TEXTO */
.about-text {
  color: #2A2A2A;
}

/* TAG */
.about-tag {
  display: inline-block;
  background: rgba(110,198,184,0.2);
  color: #2F6C9E;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

/* TITULO */
.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* INTRO */
.about-intro {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 500;
}

/* PARRAFOS */
.about-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* SKILLS */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.skill {
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.skill:hover {
  transform: translateY(-2px);
}

/* CIERRE */
.about-closing {
  font-weight: 500;
}

@media (max-width: 768px) {

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about {
    padding: 70px 20px;
  }

}

/*COMO PUEDO AYUDARTE */
/* SECCIÓN */
.services {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

/* HEADER */
.services-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-tag {
  display: inline-block;
  background: rgba(110,198,184,0.2);
  color: #2F6C9E;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.services-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #2A2A2A;
}

.services-intro {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* GRID */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.card {
  background: #F9FAFB;
  padding: 25px;
  border-radius: 18px;
  text-align: left;
  transition: 0.3s ease;
  border: 1px solid #eee;
}

/* hover PRO */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ICONO */
.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

/* TITULO */
.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2F6C9E;
}

/* TEXTO */
.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* CTA */
.services-cta {
  margin-top: 60px;
}

.services-message {
  font-size: 16px;
  margin-bottom: 20px;
  color: #2A2A2A;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header h2 {
    font-size: 26px;
  }
}

/*A QUIEN ATIENDO*/
/* SECCIÓN */
.patients {
  padding: 100px 20px;
  background: #F5F5F5;
  text-align: center;
}

/* HEADER */
.patients-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.patients-tag {
  display: inline-block;
  background: rgba(110,198,184,0.2);
  color: #2F6C9E;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.patients-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.patients-header p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* GRID */
.patients-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */
.patient-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

/* IMAGEN */
.patient-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.5s ease;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(47,108,158,0.9),
    rgba(47,108,158,0.3)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;

  opacity: 0;
  transition: 0.4s ease;
}

/* TEXTO */
.overlay h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.overlay p {
  font-size: 14px;
  opacity: 0.9;
}

/* HOVER */
.patient-card:hover img {
  transform: scale(1.08);
}

.patient-card:hover .overlay {
  opacity: 1;
}

@media (max-width: 900px) {
  .patients-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .patients-container {
    grid-template-columns: 1fr;
  }

  .patients-header h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .overlay {
    opacity: 1;
  }
}

/*COMO SON LAS TERAPIAS*/
/* SECCIÓN */
.process {
  padding: 100px 20px;
  background: white;
}

/* HEADER */
.process-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.process-tag {
  display: inline-block;
  background: rgba(110,198,184,0.2);
  color: #2F6C9E;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.process-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.process-header p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* TIMELINE */
.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* línea vertical */
.process-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(47,108,158,0.2);
}

/* STEP */
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

/* círculo */
.step-circle {
  width: 40px;
  height: 40px;
  background: #2F6C9E;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
}

/* contenido */
.step-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #2A2A2A;
}

.step-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {

  .process-timeline::before {
    left: 18px;
  }

  .step {
    gap: 15px;
  }

  .process-header h2 {
    font-size: 26px;
  }

}

/*EXPERIENCIA*/
/* SECCIÓN */
.gallery {
  padding: 100px 20px;
  background: #F5F5F5;
  text-align: center;
}

/* HEADER */
.gallery-header {
  max-width: 700px;
  margin: 0 auto 50px;
}

.gallery-tag {
  display: inline-block;
  background: rgba(110,198,184,0.2);
  color: #2F6C9E;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.gallery-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.gallery-sub {
  font-size: 15px;
  color: #555;
}

/* CAROUSEL */
.carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* VIEWPORT */
.carousel-viewport {
  overflow: hidden;
}

/* TRACK */
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

/* ITEM */
.carousel-item {
  min-width: 250px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

/* IMG */
.carousel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.4s;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.carousel-btn:hover {
  background: #2F6C9E;
  color: white;
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

@media (max-width: 768px) {

  .carousel-item {
    min-width: 200px;
  }

  .carousel-item img {
    height: 250px;
  }

  .carousel-btn {
    display: none; /* mejor swipe en móvil */
  }

  .gallery-header h2 {
    font-size: 26px;
  }

}

@media (max-width: 768px) {

  .carousel-viewport {
    overflow-x: auto;   /* 🔥 permite deslizar */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .carousel-track {
    transform: none !important; /* 🔥 desactiva el JS */
  }

}

.carousel-item {
  scroll-snap-align: center;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}
/*cobertura*/
/* SECCIÓN */
.cta {
  padding: 100px 20px;
  background: linear-gradient(
    to right,
    #2F6C9E,
    #6EC6B8
  );
  color: white;
  text-align: center;
}

/* CONTENEDOR */
.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

/* TAG */
.cta-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

/* TITULO */
.cta h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

/* TEXTO */
.cta-message {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.95;
}

/* BENEFICIOS */
.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 14px;
}

/* INFO BOX */
.cta-info-box {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.6;
}

/* BOTÓN */
.cta-btn {
  background: #F4C95D;
  color: #2A2A2A;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* NOTA */
.cta-note {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
}

@media (max-width: 768px) {

  .cta h2 {
    font-size: 26px;
  }

  .cta-benefits {
    flex-direction: column;
    gap: 8px;
  }

  .cta-btn {
    width: 100%;
  }

}

/*FOOTER*/
/* FOOTER */
.footer {
  background: #1F2A37;
  color: #E5E7EB;
  padding: 60px 20px 30px;
}

/* CONTENEDOR */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* BRAND */
.footer-brand h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 14px;
  color: #9CA3AF;
}

/* CONTACTO */
.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-contact a {
  color: #6EC6B8;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* LINKS */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #E5E7EB;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #6EC6B8;
}

/* DIVISOR */
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 40px auto 20px;
  max-width: 1100px;
}

/* BOTTOM */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  font-size: 13px;
  color: #9CA3AF;
}

/* DEV */
.footer-dev {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dev-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-dev {
    justify-content: center;
  }

}

.footer-whatsapp {
  color: #6EC6B8;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.footer-whatsapp:hover {
  text-decoration: underline;
}

.nav-links a.active {
  color: #2F6C9E;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #E5E7EB;
  font-size: 14px;
  transition: 0.3s;
}

/* ICONOS */
.social-link i {
  font-size: 18px;
  width: 20px;
}

/* hover general */
.social-link:hover {
  color: #6EC6B8;
}

/* hover específico */
.social-link:hover .fa-whatsapp {
  color: #25D366;
}

.social-link:hover .fa-instagram {
  color: #E1306C;
}
