/* ================= RESPONSIVE ASSISTANCE REASONS ================= */

/* ================= RESPONSIVE HERO FORMBOX ================= */

/* Tablets (1024px) */
@media (max-width: 1024px) {
  .hero__formbox {
    justify-content: center; /* centra el formbox en lugar de a la derecha */
    padding: 0 30px;
  }

  .formbox {
    width: 320px; /* más compacto */
    padding: 22px;
  }

  .formbox__title {
    font-size: 1.1rem;
  }
}

/* Móviles (768px y menos) */
@media (max-width: 768px) {
  .hero__formbox {
    bottom: -40px; /* menos offset para que no se salga del hero */
    padding: 0 20px;
  }

  .formbox {
    width: 100%; /* ocupa casi todo el ancho disponible */
    max-width: 360px;
    padding: 18px;
    gap: 12px;
  }

  .formbox__title {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .formbox__group input,
  .formbox__group select,
  .formbox__group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .formbox__btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  .location-section--quote {
    margin-top: 185px;
  }
}


/* Tablets (1024px) */
@media (max-width: 1024px) {
  .assistance__reasons {
    gap: 30px; /* Menos separación */
    flex-wrap: wrap; /* Permite que los cards bajen si no caben */
    justify-content: center;
  }

  .reason-card {
    max-width: 220px; /* Más compacto */
    padding: 12px 18px;
  }

  .reason-card i {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .reason-card h4 {
    font-size: 1rem;
  }

  .reason-card p {
    font-size: 0.85rem;
  }
}

/* Móviles (768px y menos) */
@media (max-width: 768px) {
  .assistance__content__about {
    padding: 0 45px;
  }

  .assistance__reasons {
    flex-direction: column; /* Cards apilados verticalmente */
    gap: 18px;
    align-items: center;
  }

  .reason-card {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 280px;
    padding: 14px 20px;
  }

  .reason-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .reason-card h4 {
    font-size: 0.95rem;
    text-align: center;
  }

  .reason-card p {
    font-size: 0.85rem;
    text-align: center;
  }
}

/* ================== RESPONSIVE ABOUT ================== */
@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr; /* Una columna para tablet */
    gap: 1.5rem;
  }

  .about-image {
    height: 360px;
  }

  .about-card p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr; /* Todo en una columna en móviles */
    gap: 1.2rem;
    padding: 0 1rem;
  }

  .about-image {
    height: 300px;
    border-radius: 18px;
  }

  .about-card {
    padding: 1.6rem;
    border-radius: 18px;
  }

  .about-card h3 {
    font-size: 1.4rem;
  }

  .about-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .about-actions {
    align-items: flex-start;
    gap: 0.8rem;
  }

  .about-btn {
    width: 70%;
    text-align: center;
  }

  .about-like {
    width: 40px;
    height: 40px;
  }
}

/* ================= TRUSTBAR RESPONSIVE ================= */

/* Tablet (1024px) */
@media (max-width: 1024px) {
  .hero__trustbar {
    padding: 0 30px;
    display: none;
  }

  .trustbar {
    gap: 16px; /* Menos separación */
    padding: 12px 24px;
  }

  .trust-item {
    font-size: 0.95rem;
  }

  .trust-sep {
    height: 16px;
  }
}

/* Móviles (768px y menos) */
@media (max-width: 768px) {
  .hero__trustbar {
    bottom: -20px;
    padding: 0 15px;
    display: none;
  }

  .trustbar {
    flex-direction: column; /* Apila verticalmente */
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
  }

  .trust-item {
    font-size: 0.9rem;
  }

  .trust-sep {
    display: none; /* Oculta separadores para no saturar */
  }
}


/* ===== RESPONSIVE ASSISTANCE ===== */

/* Tabletas medianas */
@media (max-width: 1024px) {
  .assistance {
    min-height: 360px; /* un poco más compacto */
    padding: 0 20px;
  }

  .assistance__content h2 {
    font-size: 2.4rem;
  }

  .assistance__content p {
    font-size: 0.95rem;
  }
}

/* Tablets y móviles grandes */
@media (max-width: 768px) {
  .assistance {
    flex-direction: column; /* apilar contenido si hay más elementos internos */
    justify-content: center;
    min-height: 320px;
    padding: 0 15px;
  }

  .assistance__content {
    max-width: 100%;
    text-align: center;
  }

  .assistance__tag {
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
  }

  .assistance__content h2 {
    font-size: 2rem;
  }

  .assistance__content p {
    font-size: 0.9rem;
  }

  .assistance__actions {
    justify-content: center;
    gap: 1rem;
  }

  .btn-assistance {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .assistance {
    min-height: 280px;
  }

  .assistance__content h2 {
    font-size: 1.6rem;
  }

  .assistance__content p {
    font-size: 0.85rem;
  }

  .btn-assistance {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}


/* Tabletas medianas */
@media (max-width: 1024px) {
  .td-grid {
    grid-template-columns: 1fr 1.2fr 1fr; /* mantener proporciones, un poco más compactas */
    gap: 1rem;
  }

  .td-left .td-card,
  .td-right > .td-card,
  .td-right .td-row .td-card {
    height: 200px; /* un poco más pequeño */
  }

  .td-center .td-card--big {
    height: 380px; /* ajustar proporcionalmente */
  }
}

/* Tablets y móviles grandes */
@media (max-width: 768px) {
  .td-grid {
    grid-template-columns: 1fr;  /* columna única */
    gap: 1rem;
  }

  .td-col {
    flex-direction: column;
    gap: 1rem;
  }

  .td-left .td-card,
  .td-right > .td-card,
  .td-right .td-row .td-card,
  .td-center .td-card--big {
    height: auto; /* deja que se adapte según la imagen */
  }

  .td-card img {
    height: auto;
  }

  .td-row {
    grid-template-columns: 1fr 1fr; /* los dos de abajo siguen lado a lado */
    gap: 1rem;
  }

  /* Labels más pequeños para móviles */
  .td-label {
    font-size: 0.85rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .td-row {
    grid-template-columns: 1fr; /* los dos de abajo uno encima del otro */
  }

  .td-card {
    height: auto;
  }

  .td-card img {
    height: auto;
  }

  .td-label {
    font-size: 0.8rem;
  }
}


/* =================== SHOWCASE RESPONSIVE =================== */
@media (max-width: 1200px) {
  .showcase__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 15px;
  }

  .showcase__content {
    grid-column: auto;
    margin-top: 1rem;
  }

  .showcase__content h4 {
    font-size: 2.5rem;
  }

  .showcase__content p {
    font-size: 0.95rem;
  }

  .showcase__content .btn {
    padding: 1.4rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .showcase__container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 12px;
  }

  .showcase__content h4 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }

  .showcase__content p {
    font-size: 0.9rem;
  }

  .showcase__content .btn {
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .showcase__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 1rem;
  }

  .showcase__image img {
    max-width: 100%;
    height: auto;
  }

  .showcase__content {
    grid-column: auto;
    text-align: center;
    width: 100%;
  }

  .showcase__content h4 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
  }

  .showcase__content p {
    font-size: 0.88rem;
  }

  .showcase__content .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .journey__final {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0 10px;
  }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero__text h1 {
    font-size: 50px;
  }
  .hero__text p {
    font-size: 16px;
  }
  .hero__actions {
    gap: 15px;
  }
  .hero__phone {
    padding: 8px 14px;
  }
}

@media (max-width: 992px) {
  .hero__content {
    gap: 30px;
    padding: 0 10px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  .hero__text h1 {
    font-size: 44px;
    margin-top: 30px;
  }
  .hero__text p {
    font-size: 15px;
  }
  .hero__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
  }
  .hero__phone {
    margin-top: 10px;
  }
  .hero__socials {
    right: 20px;
    bottom: 20px;
    flex-direction: row;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .hero__text h1 {
    font-size: 36px;
  }
  .hero__text p {
    font-size: 14px;
  }
  .hero__actions {
    width: 100%;
  }
  .hero__phone {
    width: auto;
    font-size: 14px;
    padding: 8px 12px;
  }
  .hero__socials {
    right: 15px;
    bottom: 15px;
  }
  .hero__arrows {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .hero__text h1 {
    font-size: 28px;
  }
  .hero__text p {
    font-size: 13px;
  }
  .hero__actions {
    gap: 10px;
  }
  .hero__phone {
    font-size: 13px;
    padding: 6px 10px;
  }
  .hero__socials {
    flex-direction: row;
    gap: 8px;
    right: 10px;
    bottom: 85px;
  }
  .hero__arrows button {
    width: 45px;
    height: 45px;
  }

  .plans-section{
        margin-top: 280px;
   }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .filter {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .filter {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 15px 20px;
  }
}

@media (max-width: 768px) {
  .hero__filter {
    bottom: -265px;
    padding: 0 15px;
  }
  .filter {
    grid-template-columns: 1fr;
    padding: 10px 12px 18px;
  }
  .filter__btn button {
    width: 100%;
  }
}


.nav__hamburger {
  display: none; /* por defecto no se ve en desktop */
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  margin-left: 20px;
}

@media (max-width: 768px) {
  /* Mostrar hamburger */
  .nav__hamburger {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001; /* encima del menú */
  }

  /* Menú móvil oculto por defecto con animación */
  .nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-dark-deep);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    align-items: center; /* centrado horizontal */
    z-index: 1000;
  }

  /* Mostrar menú con animación */
  .nav__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Links centrados */
  .nav__menu li {
    width: 100%;
    margin: 0;
    text-align: center;
    padding: 12px 0;
  }

  .nav__menu li a {
    color: #fff;
    font-size: 1.2rem;
    display: inline-block;
    width: auto;
    transition: color 0.3s;
  }

  /* Hover más visible */
  .nav__menu li a:hover {
    color: var(--color-accent);
  }

  /* Ajuste de logo */
  .nav__logo img {
    height: 70px;
  }
}


@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  .plan-detail {
    grid-template-columns: 1fr;
    padding: 80px 20px;
    gap: 50px;
  }
  .gallery-main img {
    height: 320px;
  }
  .gallery-thumbs img {
    width: 60px;
    height: 50px;
  }
  .plan-info h1 {
    font-size: 30px;
  }
  .plan-price-detail {
    font-size: 28px;
  }
}


/* RESPONSIVE */
@media(max-width: 900px) {
  .plan-detail {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .location-container {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    height: 300px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .td-grid {
    grid-template-columns: 1fr;
  }

  .td-left,
  .td-right {
    flex-direction: row;
  }

  .td-left .td-card,
  .td-right .td-card {
    height: 200px;
  }

  .td-row {
    grid-template-columns: 1fr;
  }
}

/* small responsive tweaks */
@media (max-width:560px){
    .plans-header h2{font-size:20px}
}