/* ===========================
   RENAULT 2026 - RESPONSIVE STYLES
   =========================== */

/* ===========================
   TABLET (768px - 1023px)
   =========================== */



@media (max-width: 1200px) {
  /* Layout ajuste para tablets */
  /* #site-container-left {
    width: calc(100% - 300px);
  } */

  /* #site-container-right {
    width: 300px;
  } */

  /* Hero main */
  .hero-main-title {
    font-size: 40px;
  }


  .hero-main-subtitle {
    font-size: 18px;
  }

  /* Header */
  #header {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Grid de modelos a 2 columnas */
  .modelos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* Galería a 2 columnas */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  /* Ocultar chat en tablets */
  #site-container-right {
    background-color: unset;
    height: 0;
    width: 0;
  }

  #site-container-left {
    width: 100%;
  }

  /* Chat minimizado en mobile */
  #site-container-right #chat-minimizar.mostrar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 28px;
  }
  
  #site-container-right #chat-container {
    left: 0px;
    bottom: 0;
    width: 100%;
    top: unset;
    height: unset;
  }

  #site-container-right #chat-container.oculto {
    bottom: -75px;
  }
  
  #site-container-right #chat-container.desplegandose{
    bottom: 0px;  
  }
  
  #site-container-right #chat-body-container {
    height: 0px;  
    overflow:hidden;
  }
  
  #site-container-right #chat-body-container.desplegandose {  
    height: 270px;
  }
  
  #site-container-right #chat-body-container.supermaximizado {  
    height: calc(100vh - 120px);
  }
  
  #site-container-right #chat-body-container.maximizado {  
    height: calc(100vh - 203px);
  }
  
  #site-container-right #chat-body-container.minimizado {  
    height: 0px;
  }

  /* Hero modelo ajuste */
  #hero-modelo {
    grid-template-columns: 45% 55%;
  }

  .hero-modelo-nombre {
    font-size: 32px;
  }

  .hero-modelo-bajada {
    font-size: 16px;
  }

  .precio-row-valor {
    font-size: 20px;
  }

  .hero-modelo-tag {
    font-size: 20px;
  }
  .hero-modelo-subtag {
    font-size: 16px;
    font-weight: 400;
  }

  /* Overlay del Menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--color-white);
  padding: var(--spacing-xxl) var(--spacing-xl);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.menu-overlay.active .menu-panel {
  right: 0;
}

#menuClose {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
  border-radius: 4px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

#menuClose:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.menu-items-container {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-items-container a {
  /* display: block;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  border-radius: 4px;
  transition: var(--transition); */
}

.menu-items-container a:hover {
  background-color: var(--color-gray-light);
  transform: translateX(4px);
}
}

/* ===========================
   MOBILE (max 767px)
   =========================== */

@media (max-width: 768px) {
  /* Layout mobile */
  body {
    font-size: 14px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* Header mobile */
  #header {
    padding: var(--spacing-sm);
  }

  .logo-header {
    height: 40px;
  }

  #menuHamburger {
    padding: 6px 12px;
    font-size: 12px;
  }

  #menuHamburger svg {
    width: 16px;
    height: 16px;
  }

  .menu-panel {
    padding: var(--spacing-md);
    max-width: 95%;
  }

  .menu-panel h3 {
    font-size: 20px;
  }

  .menu-panel a {
    /* font-size: 16px;
    padding: 12px; */
  }

  /* Hero main mobile */
  /* .hero-modelo-container{
    display: flex;
    flex-direction: column;
  } */

  #hero-main {
    width: 100%;;
    height: 400px;
    padding: 20px;
    margin: 0;
  }

  .hero-main-content, .hero-main-overlay {
    width: 100%;
  }

  .hero-main-overlay {
    left: 20px;
  }

  .hero-main-title {
    font-size: 28px;
  }

  .hero-main-subtitle {
    font-size: 16px;
  }

  .hero-main-cta {
    padding: 20px;
    font-size: 14px;
  }

  /* Hero modelo mobile - stack vertical */
  #hero-modelo {
    grid-template-columns: 1fr;
    min-height: fit-content;
  }

  .hero-modelo-container {
    display: flex;
    flex-direction: column;
}

  .hero-modelo-info {
    padding: var(--spacing-md);
    order: 2;
    min-height: unset;
  }
  
  .hero-modelo-image {
    order: 1;
    min-height: unset;
    max-height: 250px;
  }

  .hero-modelo-image img{
    object-fit: fill;
    object-position: center;  
  }

  .hero-modelo-info-content h1 {
    font-weight: 300;
    font-size: 40px;
    line-height: 1.2;
    padding: 0;
    margin: 0;
  }

  .hero-modelo-llamador, .hero-modelo-precios{
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
  } 
  
  .precio-label{
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
  }
  
  .precio-value{
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .precio-sin-impuestos{
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;

  }

  .hero-modelo-periodo {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
  }

  .hero-modelo-nombre {
    font-size: 28px;
  }

  .hero-modelo-bajada {
    font-size: 15px;
  }

  .precio-row {
    padding: 12px 0;
  }

  .precio-row svg {
    width: 20px;
    height: 20px;
  }

  .precio-row-label {
    font-size: 12px;
  }

  .precio-row-valor {
    font-size: 18px;
  }

  .hero-modelo-cta {
    padding: 14px;
    font-size: 14px;
    position: relative;
  }

  /* Concesionario section mobile */
  #concesionario-section {
    width: 100%;
    padding: 40px 20px 40px 20px;
  }

  .concesionario-header h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
  }

  .concesionario-header p {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
  }

  /* Grid de modelos - 1 columna en mobile */
  .modelos-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .modelo-card {
    min-width: 80vw;
    max-width: 80vw;
  }

  .modelo-card-image {
    height: 180px;
  }

  .modelo-card-nombre {
    font-size: 20px;
  }

  .modelo-precio-item svg {
    width: 18px;
    height: 18px;
  }

  .modelo-precio-label {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
  }

  .modelo-precio-valor {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
  }

  .modelo-card-cta {
    padding: 10px;
    font-size: 13px;
  }

  /* Galería mobile */
  #concesionario-galeria {
    padding: 40px 20px 40px 20px;
  }

  .galeria-hero {
    height: 250px;
    margin-bottom: var(--spacing-sm);
  }

  .galeria-grid {
    /* grid-template-columns: 1fr; */
    gap: var(--spacing-sm);
    justify-items: center;
  }

  .galeria-item {
    height: 200px;
  }

  /* Formulario mobile */
  .contact-form-iframe-wrapper {
    min-width: 350px;
    padding: 0;
    margin: 0;
  }

  .contact-form-section {
    padding: 20px;
  }
  
  .contact-form-container{
    flex-direction: column;
  }

  .contact-form-header h2 {
    font-size: 26px;
  }

  .contact-form-header p {
    font-size: 14px;
  }

  .contact-form-legales {
    width: 100%;
    padding: 20px;
  }

  .contact-form-legales p {
    font-size: 12px;
  }

  /* Footer mobile */
  #site-footer {
    padding: var(--spacing-lg) var(--spacing-sm);

  }

  .footer-logo img {
    max-width: 150px;
  }

  .footer-legales p {
    font-size: 12px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-copyright p {
    font-size: 12px;
  }

  /* Utilidades mobile */
  .pt-5, .pb-5 {
    padding-top: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-lg) !important;
  }

  .mt-5, .mb-5 {
    margin-top: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-lg) !important;
  }

  .footer-legales {
    flex-direction: column;
  }

  #site-footer {
    padding: 40px 20px 100px 20px;
  }
}

/* ===========================
   MOBILE SMALL (max 480px)
   =========================== */

@media (max-width: 480px) {
  /* Hero main extra small */
  #hero-main {
    height: 350px;
  }

  .hero-main-title {
    font-size: 30px;
    font-weight: 700;
  }

  .hero-main-subtitle {
    font-size: 18px;
    font-weight: 500;
  }

  /* Hero modelo extra small */

  .hero-modelo-nombre {
    font-size: 24px;
  }

  .hero-modelo-bajada {
    font-size: 14px;
  }

  .precio-row-valor {
    font-size: 16px;
  }

  /* Headers mobile small */


  .contact-form-header h2 {
    font-size: 22px;
  }

  /* Modelo card mobile small */
  .modelo-card-nombre {
    font-size: 18px;
  }

  .modelo-precio-valor {
    font-size: 15px;
  }

  /* Galería mobile small */
  .galeria-hero {
    height: 200px;
  }

  .galeria-item {
    height: 180px;
  }

  .modelo-card {
    min-width: 90vw;
    max-width: 90vw;
  }
}

/* ===========================
   LANDSCAPE ORIENTATION
   =========================== */

@media (max-height: 600px) and (orientation: landscape) {
  /* Ajustes para landscape en móviles */
  #hero-main {
    height: 100vh;
  }

  .hero-modelo-image {
    min-height: 400px;
  }
}
