/* ============================================================
   Psiquiatría Asunción - Responsive Media Queries
   Versión 2026
   ============================================================ */

/* TABLET / MOBILE — max 900px -------------------------------- */
@media only screen and (max-width: 900px) {
  h1, h2, h3 { line-height: 1.3; }
  h2.dark-gray { display: none; }
  .container.center { text-align: center; }

  /* Hero mobile — flex row: texto izquierda | Dr. Paats derecha
     gap: 2.5rem ≈ 3 "n" al tamaño de "Asunción" (1.9rem Quicksand) */
  .full_width_banner {
    background-image: none;
    background: linear-gradient(108deg, #d6edf8 0%, #c4e1f0 55%, #b8d8ed 100%);
    min-height: 240px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
  }
  .banner-right { display: flex !important; }
  .full_width_banner .container.banner-flex {
    position: static !important;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    min-height: 240px;
    padding: 14px 0;
    width: 100%;
    text-align: left;
  }
  .banner-left {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .banner-right {
    flex-shrink: 0;
    align-items: flex-end;
    margin-right: -16px;
  }
  .banner-doctor-img {
    height: 220px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, transparent 100%);
  }
  .banner-text {
    text-align: left;
    font-size: 1.1rem;
    margin: 0;
    float: none;
    width: 100%;
  }
  .banner-text span { width: 100%; float: none; display: block; font-size: 1.9rem; }
  a.book-an-appointment-banner {
    float: none;
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 0.9rem;
    display: inline-flex;
    width: auto;
    margin: 12px 0 0;
  }

  /* Header */
  .header { float: none; height: auto; padding: 8px 0; }
  .header-right { display: none; }
  .logo { display: inline-block; margin: 0; width: auto; height: auto; float: none; padding: 8px 0; }
  .logo .logo-top { font-size: 1.1rem; }
  .logo .logo-bottom { font-size: 1.45rem; }
  .logo img { width: 100%; }
  .info { display: block; float: right; width: 52%; text-align: right; margin-top: 8px; margin-right: 10px; padding: 8px 0; }
  .info span:first-child { color: #00acb0; font-size: 1.3rem; display: inline-block; width: 100%; }
  .info span { display: inline-block; width: 100%; }
  .info span:last-child { color: #888; font-size: 0.8rem; }

  /* Banner text — alineado a la derecha sobre la imagen de fondo */
  .banner-text {
    text-align: right;
    font-size: 1.15rem;
    margin: 0;
    float: none;
    width: 100%;
  }
  .banner-text span { width: 100%; float: none; display: block; font-size: 1.9rem; }
  a.book-an-appointment-banner {
    float: none;
    padding: 11px 18px;
    font-size: 0.95rem;
    display: inline-flex;
    width: auto;
    text-align: center;
    justify-content: center;
    margin: 10px 0 0;
    align-self: flex-end;
  }

  /* Mobile menu */
  .header-mid { height: auto; width: 100%; float: none; margin: 0; position: relative; }
  .header-mid button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    width: 100%;
    color: #fff;
    padding: 12px;
    background-color: #00acb0;
    border: none;
    border-radius: 0;
    min-height: 48px;
    cursor: pointer;
  }
  /* Social icons: compact strip on the right side of the hamburger bar */
  .header-mid .social {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    float: none;
    text-align: right;
    z-index: 10;
  }
  .header-mid .social ul { margin: 0; padding: 0; }
  .header-mid .social ul li {
    width: auto;
    height: auto;
    padding: 3px;
    vertical-align: middle;
  }
  .header-mid .social ul li a img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    opacity: 0.9;
  }
  .header-mid nav#menu { margin: 0; float: none; width: 100%; }
  .header-mid nav#menu ul {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .header-mid nav#menu.active ul { display: block; }
  .header-mid nav#menu ul li { display: block; width: 100%; margin: 0; }
  .header-mid nav#menu ul li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    min-height: 48px;
    line-height: 20px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-left: none;
  }
  .header-mid nav#menu ul li a:hover { background-color: #e8f4f5; color: #007376; text-decoration: none; }
  .header-mid nav#menu ul li:last-child a { border-bottom: none; }

  /* Services */
  /* Servicios: 2 columnas en tablet/mobile */
  .five-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .services-heading { font-size: 1rem; margin: 22px 0 10px; }
  .services-more-cta { margin-top: 14px; }
  .services-more-cta a { font-size: 0.88rem; padding: 8px 20px; }
  .five-services .service {
    padding: 10px 8px;
    align-items: center;
  }
  .five-services .service-text { -webkit-line-clamp: 2; }

  /* Content area */
  .contant-area { float: none; width: 95%; margin: 0 auto; text-align: center; }
  .contant-area h1 { margin-top: 20px; }
  .contant-area h2 { font-size: 1.4rem; }
  .contant-area p { text-align: justify; }
  .border-area.new { width: auto; float: none; margin: 0; }
  .contact-form { float: none; width: 100%; }
  .contact-form.show { display: inline-block; width: 100%; }
  .contact-form.show .form-all { display: inline-block; width: 100% !important; }
  .contact-form.show .form-all ul .form-line.form-line-column { width: 100% !important; }
  .form-line.form-line-column { width: 100% !important; }

  /* Footer */
  .footer-section { width: 100%; text-align: center; }
  .footer-section img.footer-logo { float: none; margin-top: 24px; max-width: 180px; margin-left: auto; margin-right: auto; }
  .footer-section iframe { display: none; } /* Hide map on mobile to save performance */
  .footer-section .ofc-address-text { margin-bottom: 0; }
  .footer-section .copyright { display: inline-block; width: 100%; float: none; text-align: center; margin-top: 16px; }

  /* Inner pages */
  .inner-banner { margin-top: 0; padding: 24px 0; }
  .inner-banner .container { text-align: center; }
  .inner-banner .container h1 { font-size: 1.4rem; float: none; text-shadow: 1px 1px 2px #fff; }
  .inner-banner .container a { float: none; display: inline-flex; width: 80%; text-align: center; justify-content: center; }

  /* Sidebar services - keep flex layout on mobile too */
  .left-side-bar { float: none; width: 100%; text-align: left; }
  .left-side-bar h2:nth-of-type(1) { display: inline-block; }
  .left-side-bar h1:nth-of-type(1) { display: inline-block; margin-top: 20px; }
  .left-side-bar .service-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 95%;
    margin: 6px auto;
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
  }
  .left-side-bar .service-inner .service-left { flex: 0 0 44px; width: 44px; margin-right: 10px; }
  .left-side-bar .service-inner .service-right-inner { flex: 1; }
  .left-side-bar .service-inner .service-right-inner a.service-title { display: block; text-align: left; margin: 0; }
  .left-side-bar table ul li { text-align: left; }

  /* Inner page content wrapper stacks on mobile */
  .content-wrapper { flex-direction: column; padding-top: 16px; }
  .btn-whatsapp { font-size: 0.95rem; padding: 12px 20px; width: 100%; justify-content: center; }

  /* Inner content */
  .contant-area-inner { float: none; width: 95%; margin: 0 auto; text-align: justify; }
  .contant-area-inner table ul li { margin-bottom: 10px; }
  .contant-area-inner p { overflow: hidden; }
  .contant-area-inner p img { width: 100%; }

  /* Floating elements on small screens */
  .floating-container { bottom: 12px; right: 12px; gap: 8px; }
  .floating-whatsapp-button { min-width: 140px; height: 48px; font-size: 0.9rem; padding: 0 14px; }
}

/* SMALL PHONES — max 480px ----------------------------------- */
@media only screen and (max-width: 480px) {
  .logo { width: auto; }
  .logo .logo-top { font-size: 0.95rem; }
  .logo .logo-bottom { font-size: 1.25rem; }
  .info { width: 58%; margin-top: 0; margin-right: 0; }
  .info span { font-size: 1rem; }
  /* Servicios: 1 columna en teléfonos pequeños */
  .five-services { grid-template-columns: 1fr; }
  .full_width_banner { min-height: 200px; }
  .banner-flex { min-height: 200px; gap: 2rem; }
  .banner-doctor-img {
    height: 190px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 84%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 84%, transparent 100%);
  }
  .banner-text { font-size: 0.95rem; }
  .banner-text span { font-size: 1.55rem; }
  a.book-an-appointment-banner { padding: 8px 14px; font-size: 0.82rem; margin-top: 8px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  /* Compact medallion on very small screens */
  .medallion { width: 100px; height: 100px; }
  .floating-whatsapp-button span { display: none; } /* Icon only on very small screens */
  .floating-whatsapp-button { min-width: 52px; width: 52px; height: 52px; border-radius: 50%; padding: 0; justify-content: center; }
  .floating-whatsapp-button a { justify-content: center; gap: 0; }
  .floating-whatsapp-button img { width: 28px; height: 28px; }
}

/* MOBILE LANDSCAPE — silueta proporcionada y cerca del texto */
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .full_width_banner { min-height: 180px; }
  .banner-flex { min-height: 180px; gap: 2.5rem; padding: 10px 0; }
  .banner-doctor-img {
    height: 170px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 16%, black 80%, transparent 100%);
  }
  .banner-text { font-size: 0.95rem; }
  .banner-text span { font-size: 1.55rem; }
  a.book-an-appointment-banner { margin-top: 8px; font-size: 0.85rem; padding: 8px 14px; }
}

/* MID DESKTOP — 901-1100px */
@media only screen and (min-width: 901px) and (max-width: 1100px) {
  .banner-doctor-img { height: 340px; }
  .banner-flex { min-height: 340px; }
  .full_width_banner { min-height: 340px; }
}

/* LARGE SCREENS — min 1024px --------------------------------- */
@media only screen and (min-width: 1024px) {
  .five-services { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .service { flex: 1 1 180px; width: auto; }
}
