/* ============================================
   CLÍNICA PODOLÓGICA BELLIDO PARADELA
   Landing Page Styles
   ============================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #5C5854;
  --color-light: #EBE7E4;
  --color-warm: #ede1d5;
  --color-white: #ffffff;
  --color-accent: #a89078;
  --color-text: #4a4642;
  --color-text-light: #7a7572;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(92, 88, 84, 0.08);
  --shadow-lg: 0 12px 48px rgba(92, 88, 84, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn--primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 88, 84, 0.25);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

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

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

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(92, 88, 84, 0.08);
  padding: 10px 0;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header__logo-img {
  width: 42px;
  height: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

.header__tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.header:not(.header--scrolled) .header__brand,
.header:not(.header--scrolled) .header__tagline {
  color: var(--color-white);
}

.header:not(.header--scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.9);
}

.header:not(.header--scrolled) .nav__link:hover {
  color: var(--color-white);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  font-size: 0.85rem;
  padding: 10px 24px;
}

.header:not(.header--scrolled) .header__cta {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.header:not(.header--scrolled) .header__cta:hover {
  background-color: var(--color-warm);
  border-color: var(--color-warm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: all var(--transition);
}

.header:not(.header--scrolled) .hamburger span {
  background-color: var(--color-white);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 88, 84, 0.75) 0%,
    rgba(92, 88, 84, 0.45) 50%,
    rgba(92, 88, 84, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions .btn--primary {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.hero__actions .btn--primary:hover {
  background-color: var(--color-warm);
  border-color: var(--color-warm);
  color: var(--color-dark);
}

.hero__actions .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__actions .btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-white);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background-color: var(--color-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__img-wrapper {
  height: 220px;
  overflow: hidden;
}

.service-card__img-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 28px 24px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================
   TEAM / ABOUT
   ============================================ */
.team {
  padding: 100px 0;
  background-color: var(--color-light);
}

.team__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.team__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team__image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.team__content .section-header__label,
.team__content .section-header__title {
  text-align: left;
}

.team__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.team__credentials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.team__credentials li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.team__credentials li > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background-color: var(--color-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1rem;
  margin-top: 2px;
}

.team__credentials li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.team__credentials li span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============================================
   CLINIC GALLERY
   ============================================ */
.clinic {
  padding: 100px 0;
  background-color: var(--color-white);
}

.clinic__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.clinic__gallery picture {
  display: block;
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}

.clinic__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.clinic__gallery picture:hover img {
  transform: scale(1.03);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-section {
  padding: 100px 0;
  background-color: var(--color-white);
}

.contact-form__wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
}

.contact-form__group input,
.contact-form__group textarea {
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(168, 144, 120, 0.15);
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
  color: #bbb;
}

.contact-form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__privacy {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-dark);
}

.checkbox-label a {
  color: var(--color-accent);
  font-weight: 600;
}

.checkbox-label a:hover {
  color: var(--color-dark);
}

.contact-form .btn {
  align-self: flex-start;
}

@media (max-width: 480px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    align-self: stretch;
    justify-content: center;
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background-color: var(--color-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  color: #e8b84b;
  font-size: 0.9rem;
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background-color: var(--color-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__item > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background-color: var(--color-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1rem;
}

.contact__item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact__item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.contact__item a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact__item a:hover {
  color: var(--color-dark);
}

.contact__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  width: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.footer__links h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 12px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .team__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .team__content .section-header__label,
  .team__content .section-header__title {
    text-align: center;
  }

  .team__text {
    text-align: center;
  }

  .team__credentials {
    align-items: center;
  }

  .team__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__map {
    min-height: 350px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .clinic__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 1000;
  }

  .nav.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav.active .nav__link {
    color: var(--color-dark) !important;
  }

  .nav__list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .nav__link {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span {
    background-color: var(--color-dark) !important;
  }

  .header__cta {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .clinic__gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .clinic__gallery picture {
    height: 180px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .contact__buttons {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .contact__buttons {
    flex-direction: column;
  }

  .clinic__gallery {
    grid-template-columns: 1fr;
  }

  .clinic__gallery picture {
    height: 220px;
  }
}
