/*
|--------------------------------------------------------------------------
| LC Medical Care - Responsive Global
| Archivo central para adaptar imágenes, layout y diseño por pantalla.
|--------------------------------------------------------------------------
*/

/* Seguridad global */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
picture {
  max-width: 100%;
}

img,
video {
  height: auto;
}

* {
  box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Pantallas medianas / laptop pequeña
|--------------------------------------------------------------------------
*/

@media (max-width: 1080px) {
  .header-row,
  .lc-header,
  .lc-contact-header,
  .site-header {
    gap: 12px;
  }

  .primary-nav,
  .lc-nav,
  .lc-contact-nav {
    gap: 12px;
  }

  /* Home nuevo */
  .lc-hero-card {
    grid-template-columns: 46% 54%;
  }

  .lc-hero-left {
    padding: 42px 28px 34px;
  }

  .lc-hero-copy {
    max-width: 430px;
    margin-left: 0;
  }

  .lc-hero-title {
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  }

  .lc-hero-right {
    min-height: 560px;
  }

  .lc-hero-image img {
    object-position: center top;
  }

  /* Compatibilidad con home anterior */
  .hero-grid {
    grid-template-columns: 44% 56%;
  }

  .hero-copy {
    padding: 38px 24px 28px 30px;
  }

  .hero-copy-inner {
    max-width: 370px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  }

  .hero-doctor-wrap {
    width: 46%;
    min-width: 260px;
  }

  /* Contact */
  .lc-contact-main {
    grid-template-columns: 1fr;
  }

  .lc-form-panel::before {
    display: none;
  }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
  body {
    padding-top: 0;
  }

  .header-row,
  .lc-header,
  .lc-contact-header,
  .site-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 5%;
    gap: 12px;
  }

  .header-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand,
  .header-actions,
  .lc-brand,
  .lc-contact-brand {
    justify-content: center;
  }

  .primary-nav,
  .lc-nav,
  .lc-contact-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Home nuevo */
  .lc-home-wrap {
    width: min(100% - 20px, 1280px);
  }

  .lc-hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lc-hero-left {
    min-height: auto;
    padding: 38px 24px 32px;
  }

  .lc-hero-left::after {
    width: 92%;
    left: -34%;
  }

  .lc-hero-copy {
    max-width: none;
  }

  .lc-hero-title {
    max-width: 620px;
    font-size: clamp(2.4rem, 9vw, 4rem);
  }

  .lc-hero-text {
    max-width: 560px;
  }

  .lc-hero-right {
    min-height: 430px;
  }

  .lc-hero-image img {
    object-position: center top;
  }

  .lc-hero-badge {
    max-width: 84%;
    white-space: normal;
    line-height: 1.15;
    padding: 9px 16px;
    text-align: center;
  }

  .home-social-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Compatibilidad con home anterior */
  .hero-stage {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 30px 18px 24px;
  }

  .hero-copy::before {
    width: 370px;
    left: -150px;
  }

  .hero-copy-inner {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    max-width: 560px;
  }

  .hero-description {
    max-width: 560px;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-doctor-wrap {
    width: 42%;
    min-width: 220px;
  }

  .hero-doctor {
    height: 104%;
  }

  .hero-pill {
    max-width: 84%;
    white-space: normal;
    line-height: 1.15;
    padding: 8px 14px;
  }

  /* Specialists */
  .lc-doctors-grid,
  .lc-card-grid {
    grid-template-columns: 1fr !important;
  }

  .lc-doctor-card {
    max-width: 640px;
    margin: 0 auto;
  }

  /* Contact */
  .lc-benefits-panel {
    min-height: auto;
  }

  .lc-form-panel {
    min-height: auto;
  }
}

/*
|--------------------------------------------------------------------------
| Móvil
|--------------------------------------------------------------------------
*/

@media (max-width: 560px) {
  .container,
  .lc-home-wrap {
    width: min(100%, calc(100% - 12px));
  }

  .construction-bar {
    min-height: 42px;
    height: auto;
    font-size: 11px;
    line-height: 1.3;
  }

  .site-header {
    top: 0;
  }

  body {
    padding-top: 0;
  }

  .brand-name-header,
  .lc-brand,
  .lc-contact-brand {
    font-size: .94rem;
  }

  .nav-pill,
  .lc-nav a,
  .lc-contact-nav a {
    min-height: 32px;
    padding: 0 12px;
    font-size: .76rem;
  }

  .subscribe-pill,
  .lc-subscribe,
  .lc-contact-subscribe {
    min-height: 30px;
    padding: 0 12px;
    font-size: .74rem;
  }

  /* Home nuevo */
  .lc-hero-left {
    padding: 28px 16px 22px;
  }

  .lc-hero-kicker {
    min-height: 32px;
    padding: 0 12px;
    font-size: .75rem;
    margin: 0 0 14px;
  }

  .lc-hero-title {
    font-size: clamp(2rem, 12vw, 3.1rem);
    line-height: .95;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }

  .lc-hero-text {
    font-size: .9rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .lc-hero-actions {
    width: 100%;
    gap: 10px;
  }

  .lc-hero-actions .lc-hero-btn {
    width: 100%;
  }

  .lc-hero-right {
    min-height: 300px;
  }

  .lc-hero-image img {
    object-fit: cover;
    object-position: center top;
  }

  .lc-hero-badge {
    width: calc(100% - 22px);
    max-width: none;
    min-width: 0;
    min-height: 38px;
    font-size: .74rem;
    padding: 8px 14px;
  }

  .home-social-bar {
    padding: 18px 14px;
  }

  .home-social-title {
    font-size: .95rem;
  }

  .home-social-links {
    width: 100%;
  }

  .home-social-link {
    width: 100%;
    justify-content: center;
  }

  /* Compatibilidad con home anterior */
  .hero-copy {
    padding: 24px 14px 18px;
  }

  .hero-badge {
    min-height: 32px;
    padding: 0 12px;
    font-size: .75rem;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 12vw, 2.9rem);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: .9rem;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media {
    min-height: 250px;
  }

  .hero-doctor-wrap {
    width: 48%;
    min-width: 150px;
  }

  .hero-doctor {
    height: 100%;
  }

  .hero-pill {
    width: calc(100% - 22px);
    max-width: none;
    min-width: 0;
    font-size: .74rem;
  }

  /* Contact */
  .lc-benefits-panel {
    padding: 34px 6% 345px;
  }

  .lc-doctor-cutout {
    left: 50%;
    transform: translateX(-50%);
    width: 285px;
    bottom: 0;
  }

  .lc-benefits-title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .lc-benefit-item h2 {
    font-size: 1.35rem;
  }

  .lc-benefit-item p {
    font-size: .78rem;
  }

  .lc-form-row {
    grid-template-columns: 1fr !important;
    gap: 6px;
  }

  .lc-note,
  .lc-consent,
  .lc-submit-row {
    margin-left: 0 !important;
  }

  /* Specialists */
  .lc-doctor-card {
    grid-template-columns: 1fr !important;
    text-align: center;
    justify-items: center;
  }

  .lc-doctor-photo-wrap {
    width: min(100%, 280px) !important;
    height: 230px !important;
  }
}