/* ===============================
   RESPONSIVE HERO
=============================== */
@media (max-width: 1366px) {
  .hero {
    padding: 40px;
    background: linear-gradient(-55deg, #0000007c 15%, #00000098 100%);
  }

  .hero-content {
    padding-right: 20%;
  }

  .hero-content h1,
  .title-span {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .hero {
    padding: 40px;
    background: linear-gradient(-55deg, #0000007c 15%, #00000098 100%);
  }

  .hero-content {
    padding-right: 20%;
  }

  .hero-content h1,
  .title-span {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 30px 20px;
    height: 100vh;
  }

  header {
    flex-direction: column;
    gap: 20px;
  }

  .header-nav ul {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
  }

  .hero-content {
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .hero-content h1,
  .title-span {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-btns {
    justify-content: center;
    width: 100%;
  }

  .hero-btns button {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile chico */
@media (max-width: 480px) {

  .hero-content h1,
  .title-span {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero {
    border-bottom: 6px solid #a4d55d;
  }
}

/* ===============================
   HEADER RESPONSIVE
=============================== */

/* Tablet */
@media (max-width: 1366px) {
  header {
    height: 70px;
  }

  .header-nav ul {
    gap: 25px;
  }

  .header-nav li {
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  .header-logo,
  .header-nav {
    width: 100%;
    justify-content: center;
  }

  .header-logo img {
    height: 60px;
  }

  .header-nav ul {
    justify-content: center;
    gap: 20px;
    padding-bottom: 10px;
  }

  .header-nav li {
    font-size: 0.9rem;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .header-logo img {
    height: 50px;
  }

  .header-nav ul {
    gap: 15px;
  }

  .header-nav li {
    font-size: 0.85rem;
  }
}

/* ===============================
   INDICADORES RESPONSIVE
=============================== */
@media (max-width: 1366px) {
  .kpi-section {
    height: auto;
    flex-direction: row;
    padding: 40px 0;
    gap: 30px;
  }

  .kpi {
    width: 30%;
  }

  .kpi-number {
    font-size: 3rem;
  }

  .kpi p {
    font-size: 0.95rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .kpi-section {
    height: auto;
    flex-wrap: wrap;
    padding: 40px 0;
    gap: 30px;
  }

  .kpi {
    width: 30%;
  }

  .kpi-number {
    font-size: 3rem;
  }

  .kpi p {
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .indicadores {
    padding: 40px 20px 0;
    gap: 40px;
  }

  .kpi-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    height: auto;
    padding: 40px 0;
    justify-items: center;
  }

  .kpi {
    width: 100%;
    max-width: 180px;
  }

  .kpi-number {
    font-size: 2.6rem;
  }

  .kpi p {
    font-size: 0.95rem;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .kpi-number {
    font-size: 2.4rem;
  }

  .kpi p {
    font-size: 0.9rem;
  }
}

/* ===============================
   SECONDARY RESPONSIVE
=============================== */
@media (max-width: 1366px) {
  .secondary {
    padding: 80px 10px 0;
  }

  .secondary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .scnd-card {
    width: 300px;
    height: 600px;
  }

  .card-info h2 {
    font-size: 1.3rem;
  }

  .card-info p {
    font-size: 1rem;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .secondary {
    padding: 80px 30px 0;
  }

  .secondary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .scnd-card {
    width: 45%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .secondary {
    padding: 60px 20px 0;
  }

  .secondary-cards {
    flex-direction: column;
    gap: 25px;
  }

  .scnd-card {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }

  .card-content {
    border-radius: 24px;
  }

  .card-info h2 {
    font-size: 1.3rem;
  }

  .card-info p {
    font-size: 1rem;
  }

  .btn-full {
    margin: 60px auto;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Mobile chico */
@media (max-width: 480px) {
  .card-info h2 {
    font-size: 1.2rem;
  }

  .card-info p {
    font-size: 0.95rem;
  }

  .btn-full {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* ===============================
   TERCIARY RESPONSIVE
=============================== */

@media (max-width: 1366px) {
  .terciary-title {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 0;
  }

  .terciary-title h2 {
    font-size: 4rem;
  }

  .terciary-title p {
    font-size: 1.1rem;
  }

  .card {
    height: auto !important;
    padding-bottom: 30px;
    border-radius: 20px;
  }
    .stacked-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 5% 20px;
  }
}

/* TABLET y MOBILE: reset visual */
@media (max-width: 1024px) {
  .card {
    height: auto !important;
    padding-bottom: 30px;
    border-radius: 20px;
    transform: none !important;
  }
}

/* MOBILE / TABLET */
@media (max-width: 768px) {

  /* Fondo */
  .terciary-bg {
    height: 50%;
    clip-path: none;
    background-attachment: fixed;
  }

  /* Título */
  .terciary-title {
    padding: 100px 20px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .terciary-title h2 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .terciary-title p {
    font-size: 1.1rem;
  }

  /* Cards: FLEX + WRAP */
  .stacked-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 5% 20px;
  }

  .card {
    width: calc(100% - 8px);
  }

  .card-title span {
    font-size: 1rem;
  }

  .card-bottom {
    font-size: 0.95rem;
  }
}

/* MOBILE CHICO */
@media (max-width: 420px) {
  .card {
    width: 100%;
  }

  .terciary-title h2 {
    font-size: 2.2rem;
  }

  .terciary-title p {
    font-size: 1rem;
  }
}

/* ===============================
   MAPA RESPONSIVE
=============================== */
@media (max-width: 1366px) {
  .map {
    margin-top: 0;
    padding: 80px 40px;
  }

  .map-bg {
    background-attachment: scroll;
    clip-path: none;
    height: 70%;
  }

  .mapa-title h2 {
    font-size: 4rem;
  }

  .mapa-title p {
    font-size: 1.3rem;
  }

  /* Cards: FLEX + WRAP */
  .mapa-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 20px 0;
  }

  .mapa-tarjeta {
    width: 200px;
    height: auto;
    border-radius: 24px;
  }

  .tarjeta-content {
    height: auto;
    padding: 30px 20px;
    gap: 20px;
  }

  .tarjeta-content i {
    font-size: 4rem;
  }

  .tarjeta-content span {
    font-size: 1rem;
  }

  .mapa-title button {
    width: 100%;
    max-width: 280px;
    height: 36px;
    font-size: 1.5rem;
  }
}

/* RESET GENERAL PARA TABLET Y MOBILE */
@media (max-width: 1024px) {
  .map {
    margin-top: 0;
    padding: 80px 40px;
  }

  .map-bg {
    background-attachment: scroll;
    clip-path: none;
    height: 70%;
  }

  .mapa-title h2 {
    font-size: 4rem;
  }

  .mapa-title p {
    font-size: 1.3rem;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .map {
    padding: 80px 20px;
  }

  /* Fondo */
  .map-bg {
    height: 55%;
  }

  /* Título */
  .mapa-title {
    padding: 20px 20px 40px;
  }

  .mapa-title h2 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .mapa-title p {
    font-size: 1.1rem;
  }

  .mapa-title button {
    width: 100%;
    max-width: 280px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* Cards: FLEX + WRAP */
  .mapa-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 20px 0;
  }

  .mapa-tarjeta {
    width: calc(50% - 8px);
    height: auto;
    border-radius: 24px;
  }

  .tarjeta-content {
    height: auto;
    padding: 30px 20px;
    gap: 20px;
  }

  .tarjeta-content i {
    font-size: 4rem;
  }

  .tarjeta-content span {
    font-size: 1rem;
  }
}

/* MOBILE CHICO */
@media (max-width: 420px) {
  .mapa-tarjeta {
    width: 100%;
  }

  .mapa-title h2 {
    font-size: 2.2rem;
  }

  .mapa-title p {
    font-size: 1rem;
  }
}

/* ===============================
   VIDEO HERO RESPONSIVE
=============================== */
/* TABLET */
@media (max-width: 1366px) {
  .video-content {
    padding: 80px 40px;
  }

  .video-content h2 {
    font-size: 4rem;
  }

  .video-content p {
    font-size: 1.3rem;
  }

  .video-content button {
    width: 260px;
    height: 56px;
    font-size: 1.6rem;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .video-content {
    padding: 80px 40px;
  }

  .video-content h2 {
    font-size: 4rem;
  }

  .video-content p {
    font-size: 1.3rem;
  }

  .video-content button {
    width: 260px;
    height: 56px;
    font-size: 1.6rem;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* Quitar clip-path en mobile (clave) */
  .video-hero,
  .video-hero.expanded {
    clip-path: none;
    height: auto;
    min-height: auto;
  }

  .video-bg {
    position: absolute;
    inset: 0;
  }

  .video-content {
    padding: 100px 20px;
  }

  .video-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .video-content p {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .video-content button {
    width: 100%;
    max-width: 280px;
    height: 56px;
    font-size: 1.4rem;
  }
}

/* MOBILE CHICO */
@media (max-width: 420px) {
  .video-content h2 {
    font-size: 2.2rem;
  }

  .video-content p {
    font-size: 1rem;
  }
}

/* ===============================
   FIFTH RESPONSIVE
=============================== */
@media (max-width: 1366px) {
  .fifth {
    margin-top: 0;
  }

  .fifth-title {
    padding-top: 200px;
    padding-bottom: 80px;
  }

  .fifth-title h2 {
    font-size: 5rem;
    text-align: start;
  }

  .fifth-title p {
    font-size: 1.3rem;
    text-align: center;
  }

  /* Inversor body */
  .inversor-body {
    flex-direction: column;
    gap: 40px;
    padding: 0 40px;
  }

  .tramites-title,
  .tramites-content {
    width: 100%;
  }

  .tramites-content {
    padding-right: 0;
  }

  .tramites-title {
    font-size: 2rem;
    justify-content: start;
    margin-top: 80px;
  }

  /* Programas */
  .programas-body {
    flex-direction: column;
    padding: 40px;
  }

  .programa {
    width: 100%;
    height: auto;
    padding: 40px;
  }

  .programa h2 {
    font-size: 2.5rem;
  }
}

/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .fifth {
    margin-top: 0;
  }

  .fifth-title {
    padding-top: 200px;
    padding-bottom: 80px;
  }

  .fifth-title h2 {
    font-size: 4rem;
    text-align: center;
  }

  .fifth-title p {
    font-size: 1.3rem;
    text-align: center;
  }

  /* Inversor body */
  .inversor-body {
    flex-direction: column;
    gap: 40px;
    padding: 0 40px;
  }

  .tramites-title,
  .tramites-content {
    width: 100%;
  }

  .tramites-content {
    padding-right: 0;
  }

  .tramites-title {
    font-size: 2.5rem;
  }

  /* Programas */
  .programas-body {
    flex-direction: column;
    padding: 40px;
  }

  .programa {
    width: 100%;
    height: auto;
    padding: 40px;
  }

  .programa h2 {
    font-size: 2.5rem;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {
  .fifth-title {
    padding-top: 120px;
    padding-bottom: 60px;
    gap: 20px;
  }

  .fifth-title h2 {
    font-size: 2.8rem;
  }

  .fifth-title p {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  /* Trámites */
  .inversor-body {
    padding: 0 20px;
  }

  .tramites-title {
    font-size: 1.5rem;
    text-align: start;
  }

  .tramites-content ul {
    gap: 30px;
  }

  .tramites-content li {
    font-size: 1.4rem;
    margin-top: 20px;
  }

  .tramites-content p {
    font-size: 0.95rem;
  }

  .tramite-link {
    width: 100%;
    max-width: 220px;
    font-size: 1rem;
  }

  /* Programas */
  .programas-body {
    padding: 20px;
    gap: 20px;
  }

  .programa {
    padding: 30px;
  }

  .programa h2 {
    font-size: 1.5rem;
  }

  .programa p {
    font-size: 1rem;
  }

  .programa a {
    font-size: 1rem;
  }
}

/* ===============================
   MOBILE CHICO
=============================== */
@media (max-width: 420px) {
  .fifth-title h2 {
    font-size: 2.2rem;
  }

  .tramites-title {
    font-size: 1.8rem;
  }

  .tramites-content li {
    font-size: 1.2rem;
  }

  .programa h2 {
    font-size: 1.9rem;
  }
}

/* ===============================
   FOOTER RESPONSIVE
=============================== */
@media (max-width: 1366px){
    .footer-right h2 {
    font-size: 2rem;
  }
    .content span {
    font-size: 1.6rem;
  }
    .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  .footer-container button {
    width: 100%;
    border-style: none;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 0;
    box-shadow: none;
    background-color: #F7921E;
    color: white;
}
}
/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    height: auto;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    height: auto;
  }

  .footer-left {
    padding: 60px 40px;
    gap: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .content span {
    font-size: 1.6rem;
  }

  .footer-right {
    min-height: 60vh;
    padding: 40px;
  }

  .footer-right h2 {
    font-size: 3.5rem;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  /* VIDEO */
  .footer-video {
    object-fit: cover;
  }

  .footer-left {
    padding: 40px 20px;
    gap: 25px;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    height: 80px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .content {
    padding: 20px 0;
  }

  .content span {
    font-size: 1.4rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  .footer-redes {
    justify-content: center;
    gap: 20px;
    height: auto;
  }

  .footer-redes i {
    font-size: 1.6rem;
  }

  .footer-container button {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
  }

  .footer-right {
    min-height: 50vh;
    padding: 20px;
  }

  .footer-right h2 {
    font-size: 2.6rem;
    line-height: 1.1;
  }
}

/* ===============================
   MOBILE CHICO
=============================== */
@media (max-width: 420px) {
  .footer-right h2 {
    font-size: 2.1rem;
  }

  .content span {
    font-size: 1.2rem;
  }
}


/* ===============================
   SLIDE SECTORES – RESPONSIVE
=============================== */

/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .slide-sectores .slide-title {
    padding: 40px 6% 24px;
  }

  .slide-sectores .slide-title h2 {
    font-size: 4rem;
  }

  .slide-sectores .slide-body {
    gap: 32px;
    padding: 0 6% 60px;
  }

  .slide-sectores .slide-text {
    font-size: 1.05rem;
  }

  .slide-sectores .slide-image img {
    height: 420px;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  /* Header */
  .slide-header {
    padding: 16px;
  }

  .back-btn {
    font-size: 1rem;
  }

  /* Título */
  .slide-sectores .slide-title {
    padding: 80px 20px 24px;
    text-align: center;
  }

  .slide-sectores .slide-title h2 {
    font-size: 2.6rem;
    line-height: 1.1;
  }

  /* Cuerpo */
  .slide-sectores .slide-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px 60px;
  }

  /* Imagen primero */
  .slide-sectores .slide-image {
    order: -1;
  }

  .slide-sectores .slide-image img {
    height: auto;
    max-height: 300px;
    border-radius: 12px;
  }

  /* Texto */
  .slide-sectores .slide-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .slide-sectores .slide-text h3 {
    font-size: 1.3rem;
    margin: 24px 0 8px;
  }
}

/* ===============================
   MOBILE CHICO
=============================== */
@media (max-width: 420px) {
  .slide-sectores .slide-title h2 {
    font-size: 2.1rem;
  }

  .slide-sectores .slide-text {
    font-size: 0.95rem;
  }

  .slide-sectores .slide-text h3 {
    font-size: 1.2rem;
  }
}

/* ===============================
   SLIDE PAGE – RANKINGS RESPONSIVE
=============================== */

/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .ranking-row-title {
    height: 40vh;
  }

  .ranking-row-title h2 {
    font-size: 5rem;
  }

  .ranking-text {
    padding: 40px;
  }

  .ranking-text h3 {
    font-size: 1.6rem;
  }

  .ranking-text a {
    font-size: 1.4rem;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  /* Slide contenedor */
  .slide-page {
    width: 100%;
    height: 100vh;
  }

  /* Header */
  .slide-header {
    padding: 12px 16px;
    background: #ffffff;
  }

  .back-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 24px;
  }

  /* Título principal */
  .ranking-row-title {
    height: auto;
    padding: 80px 20px 40px;
  }

  .ranking-row-title h2 {
    font-size: 2.6rem;
    line-height: 1.1;
  }

  /* Cada ranking */
  .ranking-row {
    flex-direction: column;
    gap: 0;
  }

  .ranking-row:nth-child(even) {
    flex-direction: column;
  }

  /* Imagen */
  .ranking-image {
    width: 100%;
    height: 220px;
    border-radius: 0;
  }

  /* Texto */
  .ranking-text {
    width: 100%;
    padding: 24px 20px;
    gap: 16px;
  }

  .ranking-text h3 {
    font-size: 1.3rem;
  }

  .ranking-text p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .ranking-text span {
    font-size: 1rem;
  }

  .ranking-text a {
    font-size: 1.1rem;
  }

  /* Quitar bordes alternados */
  .row-right,
  .row-left {
    border-radius: 0;
  }
}

/* ===============================
   MOBILE CHICO
=============================== */
@media (max-width: 420px) {
  .ranking-row-title h2 {
    font-size: 2.2rem;
  }

  .ranking-text h3 {
    font-size: 1.2rem;
  }

  .ranking-text a {
    font-size: 1rem;
  }
}

/* ===============================
   SLIDE INDICADORES – RESPONSIVE
=============================== */

/* ===============================
   TABLET
=============================== */
@media (max-width: 1024px) {
  .indicadores-title {
    height: 50vh;
  }

  .indicadores-title h2 {
    font-size: 3rem;
    text-align: center;
  }

  .indicadores-content1,
  .indicadores-content2 {
    gap: 40px;
  }

  .indicadores-content1 p,
  .indicadores-content2 p {
    font-size: 1.6rem;
  }

  .indicadores-content1 span,
  .indicadores-content2 span {
    font-size: 1.8rem;
  }

  .indicadores-media img,
  .indicadores-media2 img {
    width: 300px;
  }

  .indicadores-frame iframe {
    height: 80vh;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {
  /* Header */
  .slide-header {
    padding: 12px 16px;
    background: #ffffff;
  }

  .back-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 24px;
  }

  /* Título final */
  .indicadores-title {
    height: auto;
    padding: 80px 20px 60px;
    text-align: center;
  }

  .indicadores-title h2 {
    font-size: 2.4rem;
    line-height: 1.1;
  }

  /* Cuerpo */
  .indicadores-body {
    gap: 40px;
  }

  /* IFRAME */
  .indicadores-frame iframe {
    height: 70vh;
  }

  /* Bloques de texto + imagen */
  .indicadores-content1,
  .indicadores-content2 {
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px;
  }

  .indicadores-content2 {
    flex-direction: column;
  }

  .indicadores-content1 p,
  .indicadores-content2 p {
    font-size: 1.1rem;
    text-align: center;
  }

  .indicadores-content1 span,
  .indicadores-content2 span {
    font-size: 1.2rem;
  }

  /* Imágenes */
  .indicadores-media,
  .indicadores-media2 {
    filter: none;
  }

  .indicadores-media img,
  .indicadores-media2 img {
    width: 100%;
    max-width: 280px;
    clip-path: none;
    border-radius: 16px;
  }
}

/* ===============================
   MOBILE CHICO
=============================== */
@media (max-width: 420px) {
  .indicadores-title h2 {
    font-size: 2rem;
  }

  .indicadores-frame iframe {
    height: 60vh;
  }

  .indicadores-content1 p,
  .indicadores-content2 p {
    font-size: 1rem;
  }
}
