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

:root {
  --font: 'Poppins', sans-serif;
  --pink: #ffc2b3;
  --salmon: #ce8370;
  --salmon-dark: #be583e;
  --grey-bg: #f5f6f6;
  --dark: #464646;
  --text-grey: #646464;
  --white: #fff;
  --black: #050006;
  --green-badge: #ddffd1;
  --max-w: 1420px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* ============================
   NAVBAR DESKTOP
   ============================ */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.navbar__inner {
  width: 92%;
  max-width: var(--max-w);
  height: 87px;
  background: var(--white);
  border-radius: 84px;
  box-shadow: 0 4px 21px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.navbar__logo img { height: 56px; width: auto; }

.navbar__links {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.navbar__links li a {
  color: var(--black);
  font-size: 1rem;
  font-weight: 400;
  transition: color .2s;
}

.navbar__links li a:hover { color: var(--salmon); }

.navbar__cta {
  background: var(--green-badge);
  padding: .45rem 2rem;
  border-radius: 53px;
  color: var(--black) !important;
  font-weight: 500;
}

@media (max-width: 968px) { .navbar { display: none; } }

/* ============================
   NAVBAR MOBILE
   ============================ */
.navbar-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.navbar-mobile__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.2rem;
}

.navbar-mobile__inner .navbar__logo img { height: 44px; }

.navbar-mobile__toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar-mobile__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: .3s;
}

.navbar-mobile__menu {
  display: none;
  flex-direction: column;
  padding: .8rem 1.2rem 1.2rem;
  gap: .8rem;
  border-top: 1px solid #eee;
}

.navbar-mobile__menu.open { display: flex; }

.mobile-link {
  color: var(--black);
  font-size: 1rem;
  padding: .4rem 0;
}

.mobile-link--cta {
  background: var(--green-badge);
  padding: .45rem 1.5rem;
  border-radius: 53px;
  align-self: flex-start;
  font-weight: 500;
}

@media (max-width: 968px) { .navbar-mobile { display: block; } }

/* ============================
   HERO
   ============================ */
.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 140px;
  padding-bottom: 2rem;
}

.hero__subtitle-mobile {
  display: none;
  text-align: center;
  padding-bottom: 1rem;
  color: var(--text-grey);
  font-weight: 300;
  line-height: 30px;
  font-size: 1.25rem;
  padding-inline: 1rem;
}

.hero__content {
  position: relative;
  width: 92%;
  max-width: var(--max-w);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__img { width: 100%; }

.hero__img--mobile { display: none; }
.hero__img--desktop { display: block; }

.hero__subtitle {
  position: absolute;
  top: 60px;
  z-index: 2;
  text-align: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 300;
}

.hero__title {
  position: absolute;
  top: 120px;
  z-index: 2;
  text-align: center;
  color: var(--white);
  font-size: 61px;
  font-style: italic;
  line-height: 1.1;
}

.hero__cta {
  margin-top: 2rem;
  background: var(--salmon);
  color: var(--white);
  border: none;
  border-radius: 24px;
  padding: 14px 28px;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .3s;
}

.hero__cta:hover { background: var(--salmon-dark); }

@media (max-width: 968px) {
  .hero {
    margin-top: 70px;
    padding-top: 1rem;
  }
  .hero__subtitle-mobile { display: block; }
  .hero__subtitle { display: none; }
  .hero__img--desktop { display: none; }
  .hero__img--mobile { display: block; }
  .hero__title {
    font-size: 1.75rem;
    top: 40px;
    line-height: 1.2;
    width: 90%;
  }
}

@media (max-width: 1280px) {
  .hero__subtitle { top: 40px; }
  .hero__title { top: 90px; }
}

/* ============================
   SECTION TITLE (shared)
   ============================ */
.section-title {
  font-size: 39px;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

@media (max-width: 968px) {
  .section-title { font-size: 24px; text-align: center; }
}

/* ============================
   SOBRE MÍ
   ============================ */
.about {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 4rem;
}

.about__inner {
  width: 92%;
  max-width: var(--max-w);
  display: flex;
  align-items: flex-start;
  gap: 6rem;
  margin-top: 52px;
}

.about__text {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__name {
  font-size: 1.4rem;
  color: var(--text-grey);
  font-weight: 600;
  line-height: 1.4;
}

.about__body {
  font-size: 1rem;
  color: var(--text-grey);
  line-height: 1.7;
}

.about__img-wrap {
  width: 100%;
  max-width: 680px;
  flex-shrink: 0;
}

.about__img-wrap img { width: 100%; border-radius: 12px; }

@media (max-width: 968px) {
  .about__inner {
    flex-direction: column;
    gap: 2rem;
    width: 90%;
    margin-top: 0;
  }
  .about__text { max-width: 100%; }
  .about__name { font-size: 1.2rem; }
}

/* ============================
   LICENCIAS (certificados)
   ============================ */
.licencias {
  width: 100%;
  padding-block: 3rem 4rem;
  overflow: hidden;
  background: var(--white);
}

.licencias__title {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-grey);
  margin-bottom: 1.8rem;
}

.licencias__track-wrap {
  overflow: hidden;
  width: 100%;
}

.licencias__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollCerts 30s linear infinite;
}

.licencias__track img {
  height: 130px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  flex-shrink: 0;
}

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

@media (max-width: 968px) {
  .licencias__track img { height: 90px; }
}

/* ============================
   BANNER IMAGE SECTION
   ============================ */
.banner-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}

.banner-section__img { display: none; }

.banner-section__img--desktop {
  display: block;
  width: 70%;
}

.banner-section__img--mobile { display: none; }

@media (max-width: 968px) {
  .banner-section { min-height: auto; }
  .banner-section__img--desktop { display: none; }
  .banner-section__img--mobile { display: block; width: 100%; }
}

/* ============================
   PROCEDIMIENTOS (SERVICIOS)
   ============================ */
.services {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 4rem;
}

.services__title {
  width: 80%;
  max-width: var(--max-w);
}

.services__inner {
  display: flex;
  width: 80%;
  max-width: var(--max-w);
  gap: 44px;
  align-items: flex-start;
  justify-content: center;
  padding-block: 4rem;
}

.services__image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 500px;
}

.services__image {
  width: 100%;
  max-width: 500px;
  transition: opacity .3s;
}

.services__dropdown { width: 100%; }

/* Dropdown accordion */
.dropdown-item { border-bottom: 1px solid #e0e0e0; }

.dropdown-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  transition: color .2s;
}

.dropdown-btn:hover { color: var(--salmon); }

.dropdown-arrow {
  width: 22px;
  height: 22px;
  transition: transform .3s;
  flex-shrink: 0;
}

.dropdown-btn.active .dropdown-arrow { transform: rotate(45deg); }

.dropdown-content {
  display: none;
  padding: 0 0 1rem 2rem;
}

.dropdown-content.open { display: block; }

.dropdown-content p {
  font-size: .95rem;
  color: var(--text-grey);
  line-height: 1.7;
  margin-bottom: .5rem;
}

.dropdown-bullet {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-top: .5rem;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  margin-top: .45rem;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .services { padding-block: 2rem; }
  .services__title { width: 90%; text-align: center; }
  .services__inner {
    flex-direction: column;
    width: 90%;
    gap: 2rem;
    padding-block: 1rem;
  }
  .services__image-wrap { max-width: 100%; }
}

/* ============================
   RESULTADOS (CARRUSEL)
   ============================ */
.results {
  width: 100%;
  padding-block: 3rem 8rem;
}

.results__inner {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.results__title { margin-bottom: 1.5rem; }

.results__carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results__carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: .5rem;
  flex: 1;
}

.results__carousel::-webkit-scrollbar { display: none; }

.carousel-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.carousel-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.carousel-card p {
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--text-grey);
  text-align: center;
  font-weight: 500;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #ddd;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  color: var(--black);
  transition: background .2s;
}

.carousel-btn:hover { background: var(--grey-bg); }
.carousel-btn:disabled { opacity: .3; cursor: default; }

@media (max-width: 968px) {
  .carousel-card { width: 240px; }
  .carousel-card img { height: 260px; }
  .results { padding-bottom: 4rem; }
}

/* ============================
   PREFOOTER / CONTACTO
   ============================ */
.prefooter {
  width: 100%;
  padding-bottom: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prefooter__inner {
  width: 80%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(315deg, #ddffd1 0%, #ffc2b3 100%);
  border-radius: 25px;
  padding: 4rem 3rem;
  gap: 3rem;
}

.prefooter__icons img {
  max-width: 320px;
  width: 100%;
}

/* FORM */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
  width: 100%;
}

.form__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__group { display: flex; flex-direction: column; gap: .3rem; }

.form__input {
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: var(--font);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  width: 100%;
  outline: none;
  transition: box-shadow .2s;
}

.form__input:focus { box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.form__error { color: red; font-size: .78rem; padding-left: .5rem; }

.form__submit {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .3s;
}

.form__submit:hover { background: #333; }
.form__submit:disabled { background: #aaa; cursor: not-allowed; }

.form__message {
  font-size: .9rem;
  color: #1a6b1a;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 968px) {
  .prefooter__inner {
    flex-direction: column;
    width: 90%;
    padding: 2.5rem 1.5rem;
  }
  .prefooter__icons { display: flex; justify-content: center; }
  .prefooter__icons img { max-width: 220px; }
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.footer__inner {
  display: flex;
  justify-content: center;
  width: 90%;
  max-width: 1620px;
  gap: 2rem;
}

.footer__col {
  width: 33%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer__logo-wrap img {
  max-width: 200px;
  width: 100%;
}

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

.footer__links a {
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer__links a:hover { text-decoration: underline; }

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social img { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 968px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 2rem;
  }
  .footer__col { width: 100%; align-items: flex-start; padding-block: 1rem; }
  .footer__links a { font-size: 1rem; }
}

/* ============================
   WHATSAPP FLOTANTE
   ============================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}

.whatsapp-btn:hover { transform: scale(1.1); }

.whatsapp-btn img { width: 100%; height: 100%; }
