/* ========================================
   Dr. Cubas — Landing Page Styles
   ======================================== */

:root {
  --color-primary: #111111;
  --color-primary-dark: #000000;
  --color-primary-light: #555555;
  --color-accent: #f2f2f2;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-border: #dddddd;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--cta {
  background: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

.nav__link--cta:hover {
  background: var(--color-primary-dark);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/consultorio_fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.30) 100%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.80);
}

.hero__description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.80);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.70);
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__card {
  position: absolute;
  top: -1rem;
  left: -2rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.hero__card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero__card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__image-placeholder {
  background: linear-gradient(135deg, #222222 0%, #000000 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero__image-inner {
  text-align: center;
  color: white;
}

.hero__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero__image-inner p {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.5;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services__grid--horizontal {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

/* Service card with image */
.service-card--img {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
}

.service-card--img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.service-card--img:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__image {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card__number {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Overlay gradient on image */
.service-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 100%);
  pointer-events: none;
}

.service-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.service-card--img h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.service-card--img p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition), color var(--transition);
}

.service-card__link:hover {
  gap: 0.5rem;
  color: var(--color-primary-dark);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__image-placeholder {
  background: linear-gradient(145deg, var(--color-accent) 0%, rgba(0, 0, 0, 0.08) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.about__doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.about__doctor-img:hover {
  transform: scale(1.03);
}

.about__monogram {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

.about__experience {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--color-primary);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about__experience strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about__experience span {
  font-size: 0.85rem;
  opacity: 0.95;
}

.about__content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about__features {
  margin-bottom: 2rem;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.about__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial-card footer strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
}

.testimonial-card footer span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact__details li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact__details strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact__details p,
.contact__details a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact__details a:hover {
  color: var(--color-primary);
}

.contact__form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.10);
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}

.form__note.success {
  color: var(--color-primary-dark);
}

.form__note.error {
  color: #dc2626;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 2.5rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__top-logo {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.footer__logo-img {
  filter: invert(0) brightness(10) !important;
  height: 40px !important;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer__social-links {
  display: flex;
  gap: 0.65rem;
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
}

.footer__social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer__links h4,
.footer__contact h4,
.footer__map h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer__links ul li {
  margin-bottom: 0.65rem;
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  padding-left: 4px;
}

.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.footer__contact ul li svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.footer__contact ul li a {
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer__contact ul li a:hover {
  opacity: 1;
}

.footer__map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px;
  height: 100%;
}

.footer__map-container iframe {
  display: block;
  width: 100%;
  min-height: 200px;
}

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* Responsive */
@media (max-width: 968px) {
  .hero__content,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__card {
    left: 0;
    top: auto;
    bottom: -1rem;
  }

  .about__experience {
    right: 1rem;
    bottom: -1rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .services__grid,
  .services__grid--horizontal {
    grid-template-columns: 1fr;
  }

  .service-card__image {
    height: 220px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid--horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}
