/*=====================================================
   FUNERARIA JORCO — DISEÑO MÓVIL
   Se carga después de css/styles.css
   =====================================================*/
@media (max-width: 600px) {
  /*1. BASE Y ESPACIADO*/
  html {
    scroll-padding-top: 62px;
  }
  body {
    font-size: 12px;
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
  }
  .section {
    padding: 25px 13px;
  }
  .section-kicker {
    margin-bottom: 6px;
    font-size: 8px;
    letter-spacing: 1.2px;
    line-height: 1.5;
  }
  .title {
    margin-bottom: 15px;
  }
  .title h2 {
    font-size: 25px;
    line-height: 1.16;
  }
  .title p,
    .section-subtitle {
    font-size: 11px;
    line-height: 1.6;
  }
  /*2. ENCABEZADO*/
  .header {
    height: 56px;
    padding: 0 10px;
    gap: 5px;
  }
  .logo {
    width: 62px;
    height: 62px;
    margin-bottom: -13px;
  }
  .menu {
    width: 34px;
    height: 34px;
    margin-left: auto;
    margin-right: 3px;
    font-size: 14px;
  }
  .header nav {
    top: 56px;
    padding: 7px 12px;
  }
  .header nav a {
    padding: 10px 7px;
    font-size: 12px;
  }
  .head-actions {
    gap: 5px;
  }
  .head-actions a {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 7px;
  }
  .head-actions a i {
    font-size: 12px;
  }
  /*3. PORTADA*/
  .hero {
    min-height: 0;
  }
  .hero-text {
    padding: 32px 16px 20px;
  }
  .hero h1 {
    max-width: 340px;
    margin-bottom: 9px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.04;
    letter-spacing: -.7px;
  }
  .lead {
    max-width: 340px;
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.5;
  }
  .trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 9px;
    max-width: 360px;
    margin-bottom: 14px;
  }
  .trust div {
    gap: 7px;
    font-size: 9px;
    line-height: 1.4;
  }
  .trust i {
    width: 29px;
    height: 29px;
    min-width: 29px;
    font-size: 12px;
  }
  .buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }
  .buttons .btn,
    .hero .btn {
    min-height: 33px;
    padding: 8px 10px;
    font-size: 9px;
  }
  .hero-badge {
    margin: 0 16px 14px;
    padding: 8px 10px;
    font-size: 9px;
  }
  .hero-badge > i {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }
  .hero-saying {
    right: 9px;
    bottom: 8px;
  }
  .hero-saying span {
    font-size: 30px;
  }
  .hero-saying p {
    font-size: 14px;
    line-height: 1.2;
  }
  .hero-saying i {
    margin: 7px auto;
  }
  .lilies {
    font-size: 70px;
    opacity: .5;
  }
  /*4. TRAYECTORIA*/
  .home-about {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 28px 13px;
  }
  .home-about-intro {
    max-width: none;
  }
  .home-about-intro h2 {
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.15;
  }
  .home-about-intro p {
    font-size: 11px;
    line-height: 1.65;
  }
  .home-about-photo {
    border-radius: 12px;
  }
  .home-about-photo-caption {
    padding: 8px 10px;
    font-size: 9px;
  }
  .home-about-link {
    font-size: 10px;
  }
  .home-about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .home-about-card {
    padding: 13px 10px;
    border-radius: 12px;
  }
  .home-about-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    font-size: 12px;
  }
  .home-about-card h3 {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.25;
  }
  .home-about-card p {
    font-size: 10px;
    line-height: 1.55;
  }
  /*5. SERVICIOS: DOS POR FILA*/
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .service {
    min-width: 0;
    min-height: 145px;
    padding: 13px 8px 10px;
    border-radius: 12px;
  }
  .service:last-child {
    grid-column: 1 / -1;
    min-height: 120px;
  }
  .service > i {
    height: 32px;
    margin-bottom: 5px;
    font-size: 25px;
  }
  .service h3 {
    min-height: 26px;
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.35;
  }
  .service p {
    margin-bottom: 8px;
    font-size: 9px;
    line-height: 1.45;
  }
  .service span {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .service:hover {
    transform: none;
  }
  /*6. COMPROMISO*/
  .why {
    min-height: 0;
  }
  .why-text {
    padding: 25px 15px;
  }
  .why h2 {
    margin-bottom: 11px;
    font-size: 25px;
    line-height: 1.12;
  }
  .why ul {
    gap: 7px;
    margin-bottom: 12px;
  }
  .why li {
    gap: 9px;
    font-size: 10px;
    line-height: 1.45;
  }
  .why li i {
    width: 24px;
    font-size: 18px;
  }
  .why-saying {
    display: none;
  }
  /*7. PLANES DE LA PORTADA Y PÁGINA DE PLANES*/
  .plans-section,
    .plans-preview {
    padding: 27px 11px;
  }
  .plans-heading,
    .plans-page-heading {
    margin-bottom: 16px;
  }
  .plans-heading h2,
    .plans-page-heading h2 {
    margin-bottom: 7px;
    font-size: 25px;
    line-height: 1.15;
  }
  .plans-heading p,
    .plans-page-heading p {
    font-size: 10px;
    line-height: 1.55;
  }
  /*Dos columnas reales, también en teléfonos*/
  .plans-grid,
    .plans-page-grid,
    .plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-items: stretch;
  }
  .plans-grid > .plan-card,
    .plans-grid > .plan-card:nth-child(4),
    .plans-grid > .plan-card:nth-child(5),
    .plans-page-grid > .plan-card,
    .plan-grid > .plan-card {
    grid-column: auto;
    min-width: 0;
  }
  .plan-card {
    min-width: 0;
    padding: 11px 9px;
    border-radius: 11px;
  }
  .plan-card > i {
    margin: 9px 0;
    font-size: 20px;
  }
  .plan-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 7px;
    font-size: 12px;
  }
  .plan-label {
    margin-bottom: 4px;
    font-size: 7px;
    letter-spacing: .6px;
  }
  .plan-card h2,
    .plan-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .plan-description {
    min-height: 0;
    margin-bottom: 7px;
    font-size: 9px;
    line-height: 1.45;
  }
  .plan-price {
    margin-top: 7px;
    padding: 8px 6px;
    border-radius: 8px;
  }
  .plan-price strong,
    .plan-price b {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .plan-monthly,
    .plan-note {
    font-size: 8px;
    line-height: 1.4;
  }
  .plan-features {
    gap: 5px;
    margin-top: 8px;
  }
  .plan-features li,
    .plan-card ul {
    padding-left: 14px;
    font-size: 9px;
    line-height: 1.4;
  }
  .plan-card ul {
    margin: 10px 0;
  }
  .plan-button,
    .plan-card .btn {
    width: 100%;
    min-height: 32px;
    margin-top: 9px;
    padding: 7px 5px;
    font-size: 8px;
    line-height: 1.3;
    white-space: normal;
  }
  .plan-badge {
    font-size: 7px;
  }
  .plans-disclaimer,
    .plans-page-disclaimer,
    .disclaimer {
    margin-top: 12px;
    padding: 10px;
    font-size: 9px;
    line-height: 1.5;
  }
  /*8. OBITUARIOS*/
  .obituaries {
    padding: 24px 10px 14px;
  }
  .obit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .obit {
    min-width: 0;
    min-height: 0;
    padding: 10px 7px;
    border-radius: 11px;
  }
  .portrait {
    width: 46px;
    height: 46px;
    margin-bottom: 5px;
    font-size: 19px;
  }
  .obit h3 {
    font-size: 10px;
    line-height: 1.3;
  }
  .obit p,
    .obit small {
    font-size: 9px;
    line-height: 1.4;
  }
  .obit .outline {
    padding: 7px 8px;
    font-size: 9px;
  }
  .obit-cta > i {
    font-size: 23px;
  }
  .obit-cta h3 {
    font-size: 14px;
  }
  .note {
    margin-top: 8px;
    font-size: 8px;
    line-height: 1.45;
  }
  /*9. CONTACTO DE LA PORTADA*/
  .contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
    padding: 15px 12px;
  }
  .contact > a {
    min-width: 0;
    width: auto;
    align-items: flex-start;
    gap: 7px;
  }
  .contact > a > i {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    font-size: 13px;
  }
  .contact b {
    font-size: 9px;
    line-height: 1.4;
  }
  .contact small {
    font-size: 8px;
    line-height: 1.4;
  }
  /*10. PÁGINAS INTERNAS*/
  .page-hero,
    .plans-page-hero {
    padding: 29px 14px 23px;
  }
  .page-hero h1,
    .plans-page-hero h1 {
    font-size: 29px;
    line-height: 1.12;
  }
  .page-hero > p:not(.section-kicker),
    .plans-page-hero > p:not(.section-kicker) {
    font-size: 11px;
    line-height: 1.55;
  }
  .page-breadcrumb,
    .breadcrumbs {
    gap: 5px;
    font-size: 9px;
  }
  .page-section,
    .plans-page-section {
    padding: 25px 13px 30px;
  }
  .page-intro {
    margin-bottom: 17px;
  }
  .page-intro h2 {
    font-size: 23px;
    line-height: 1.2;
  }
  .page-intro p {
    font-size: 11px;
    line-height: 1.6;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .detail-card {
    min-width: 0;
    padding: 13px 9px;
    border-radius: 11px;
  }
  .detail-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    font-size: 14px;
  }
  .detail-card h3 {
    font-size: 11px;
    line-height: 1.3;
  }
  .detail-card p {
    font-size: 9px;
    line-height: 1.5;
  }
  /*11. NOSOTROS*/
  .history-page {
    padding: 26px 13px;
  }
  .history-intro {
    gap: 17px;
    margin-bottom: 25px;
  }
  .history-copy h2,
    .purpose-heading h2 {
    font-size: 25px;
    line-height: 1.17;
  }
  .history-copy > p:not(.section-kicker) {
    font-size: 11px;
    line-height: 1.6;
  }
  .history-purpose {
    margin-bottom: 24px;
  }
  .history-page .mission-card,
    .history-page .vision-card {
    padding: 14px 11px;
    border-radius: 11px;
  }
  .history-page .mission-card h3,
    .history-page .vision-card h3 {
    font-size: 17px;
  }
  .history-page .mission-card p,
    .history-page .vision-card p {
    font-size: 10px;
    line-height: 1.5;
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .value-card {
    padding: 15px 10px;
  }
  .value-card > i {
    margin-bottom: 8px;
    font-size: 21px;
  }
  .value-card h3 {
    font-size: 14px;
  }
  .value-card p {
    font-size: 10px;
    line-height: 1.5;
  }
  /*12. CATÁLOGOS*/
  .catalog-page {
    padding: 23px 12px;
  }
  .catalog-heading {
    margin-bottom: 15px;
  }
  .catalog-heading h1,
    .catalog-heading h2 {
    font-size: 24px;
    line-height: 1.15;
  }
  .catalog-heading p {
    font-size: 10px;
    line-height: 1.55;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  /*13. CONTACTO INTERNO*/
  .contact-detail-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .contact-detail {
    min-width: 0;
    padding: 14px 12px;
    gap: 10px;
    border-radius: 11px;
  }
  .contact-detail > i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    font-size: 14px;
  }
  .contact-detail h2 {
    margin: 5px 0;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .contact-detail p {
    margin-bottom: 7px;
    font-size: 10px;
    line-height: 1.5;
  }
  .contact-detail b {
    font-size: 10px;
  }
  .contact-callout {
    margin-top: 17px;
    padding: 23px 14px;
    border-radius: 12px;
  }
  .contact-callout h2 {
    font-size: 23px;
  }
  .contact-callout p {
    font-size: 11px;
    line-height: 1.55;
  }
  /*14. FOOTER COMPACTO*/
  .site-footer,
    footer {
    min-width: 0;
  }
  .footer-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 16px 12px;
  }
  .footer-about {
    grid-column: 1 / -1;
    gap: 5px;
  }
  .footer-about .foot-brand {
    gap: 7px;
  }
  .footer-about .foot-brand img {
    width: 34px;
    height: 34px;
  }
  .footer-about .foot-brand b {
    font-size: 15px;
  }
  .footer-about .foot-brand small {
    font-size: 9px;
  }
  .footer-about > p {
    max-width: 280px;
    font-size: 9px;
    line-height: 1.45;
  }
  .footer-main-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 2px;
  }
  .footer-main-links a {
    font-size: 9px;
  }
  .footer-column {
    min-width: 0;
    gap: 4px;
  }
  .footer-column h3 {
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.3;
  }
  .footer-column p,
    .footer-column a {
    font-size: 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .footer-column i {
    margin-right: 3px;
  }
  .footer-legal {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }
  .footer-legal h3 {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 9px;
    padding: 8px 12px;
    font-size: 8px;
    line-height: 1.45;
  }
  .developer-credit {
    padding: 6px 10px;
    font-size: 8px;
    line-height: 1.45;
    text-align: center;
  }
  .legal-footer-links {
    gap: 6px 10px;
    padding: 8px 10px;
  }
  .legal-footer-links a {
    font-size: 9px;
    line-height: 1.4;
  }
  /*15. BOTÓN FLOTANTE*/
  .floating-wa {
    right: 11px;
    bottom: 11px;
    width: 40px;
    height: 40px;
    font-size: 19px;
  }
}
/*TELÉFONOS ESTRECHOS*/
@media (max-width: 370px) {
  .hero-text {
    padding-right: 13px;
    padding-left: 13px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .buttons .btn {
    padding: 8px;
    font-size: 8px;
  }
  .plans-grid,
    .plans-page-grid,
    .plan-grid {
    gap: 7px;
  }
  .plan-card {
    padding: 9px 7px;
  }
  .plan-card h2,
    .plan-card h3 {
    font-size: 14px;
  }
  .plan-price strong,
    .plan-price b {
    font-size: 14px;
  }
  .plan-features li,
    .plan-card ul {
    font-size: 8px;
  }
  .footer-layout {
    gap: 12px 8px;
    padding-right: 10px;
    padding-left: 10px;
  }
}
/*TABLETAS: dos columnas de planes*/
@media (min-width: 601px) and (max-width: 900px) {
  .plans-grid,
    .plans-page-grid,
    .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans-grid > .plan-card,
    .plans-grid > .plan-card:nth-child(4),
    .plans-grid > .plan-card:nth-child(5),
    .plans-page-grid > .plan-card,
    .plan-grid > .plan-card {
    grid-column: auto;
  }
}
/*=========================================
   CARRUSEL MÓVIL — PLANES
   Inicio y página de planes
   =========================================*/
@media (max-width: 600px) {
  .plans-grid,
    .plans-page-grid,
    .plan-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 12px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .plans-grid::-webkit-scrollbar,
    .plans-page-grid::-webkit-scrollbar,
    .plan-grid::-webkit-scrollbar {
    display: none;
  }
  .plans-grid > .plan-card,
    .plans-page-grid > .plan-card,
    .plan-grid > .plan-card {
    flex: 0 0 88% !important;
    width: 88% !important;
    min-width: 0;
    max-width: 88%;
    height: auto;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
  }
  .plan-card {
    padding: 13px !important;
    border-radius: 14px;
  }
  .plan-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }
  .plan-label {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .plan-card h2,
    .plan-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .plan-description {
    min-height: 0;
    margin: 0 0 8px;
    font-size: 10px;
    line-height: 1.45;
  }
  .plan-features {
    flex: 0 0 auto;
    gap: 5px;
    margin-top: 7px;
  }
  .plan-features li {
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.4;
  }
  .plan-card ul {
    margin: 8px 0;
    font-size: 10px;
    line-height: 1.4;
  }
  .plan-button,
    .plan-card .btn {
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    padding: 8px;
    font-size: 9px;
    line-height: 1.3;
    box-sizing: border-box;
    flex-shrink: 0;
  }
}
/*=========================================
   FOOTER MÓVIL — MÁS COMPACTO Y ORDENADO
   =========================================*/
@media (max-width: 600px) {
  .site-footer .footer-layout,
    footer .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 11px !important;
    padding: 13px 12px !important;
  }
  .site-footer .footer-about,
    footer .footer-about {
    grid-column: 1 / -1;
    gap: 4px;
  }
  .footer-about .foot-brand {
    gap: 7px;
  }
  .footer-about .foot-brand img {
    width: 30px !important;
    height: 30px !important;
  }
  .footer-about .foot-brand b {
    font-size: 14px !important;
  }
  .footer-about .foot-brand small {
    font-size: 9px;
  }
  .footer-about > p {
    max-width: 100%;
    margin: 2px 0 !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
  }
  /*Navegación en una línea cuando haya espacio*/
  .footer-main-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px !important;
    margin-top: 2px;
  }
  .footer-main-links a {
    font-size: 9px !important;
    line-height: 1.4;
  }
  /*Contacto y ubicación en columnas iguales*/
  .site-footer .footer-column,
    footer .footer-column {
    min-width: 0;
    gap: 4px !important;
  }
  .footer-column h3 {
    margin: 0 0 3px !important;
    font-size: 13px !important;
    line-height: 1.25;
  }
  .footer-column p,
    .footer-column a {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
  }
  .footer-column i {
    margin-right: 3px;
  }
  /*Legal en dos columnas*/
  .site-footer .footer-legal,
    footer .footer-legal {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px !important;
  }
  .footer-legal h3 {
    grid-column: 1 / -1;
  }
  /*Franja inferior pequeña*/
  .site-footer .footer-bottom,
    footer .footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 8px !important;
    padding: 7px 11px !important;
    font-size: 8px !important;
    line-height: 1.4;
  }
  .site-footer .developer-credit,
    footer .developer-credit {
    padding: 6px 9px !important;
    font-size: 8px !important;
    line-height: 1.4;
  }
  /*Si existe otra franja legal independiente*/
  .legal-footer-links {
    gap: 5px 10px !important;
    padding: 7px 10px !important;
  }
  .legal-footer-links a {
    font-size: 9px !important;
  }
}
/*Ajuste general de proporciones en celular*/
@media (max-width: 600px) {
  .section {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .page-section {
    padding-top: 24px;
    padding-bottom: 26px;
  }
  .page-hero {
    padding-top: 25px;
    padding-bottom: 20px;
  }
  .section .title h2,
    .page-intro h2 {
    font-size: 23px;
    line-height: 1.18;
  }
  .service-grid,
    .detail-grid,
    .obit-grid {
    gap: 8px;
  }
  .service {
    padding-top: 11px;
    padding-bottom: 9px;
  }
  .floating-wa {
    width: 39px;
    height: 39px;
    right: 10px;
    bottom: 10px;
  }
}
/*Footer móvil: eliminar navegación duplicada*/
@media (max-width: 600px) {
  .footer-main-links {
    display: none !important;
  }
}
/*Footer móvil: reducir altura y espacios*/
@media (max-width: 600px) {
  .footer-layout {
    gap: 10px 12px !important;
    padding: 12px 11px !important;
  }
  .footer-about {
    gap: 3px !important;
  }
  .footer-about > p {
    margin: 0 !important;
    max-width: 290px;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
  .footer-column {
    gap: 3px !important;
  }
  .footer-column h3 {
    margin-bottom: 2px !important;
    font-size: 12px !important;
  }
  .footer-column p,
    .footer-column a {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
  .footer-legal {
    gap: 5px 9px !important;
  }
  .footer-bottom {
    padding: 7px 10px !important;
    font-size: 8px !important;
  }
  .developer-credit {
    padding: 5px 9px !important;
    font-size: 8px !important;
  }
}
@media (max-width: 600px) {
  .plan-quote {
    padding: 9px;
    gap: 3px;
  }
  .plan-quote span {
    font-size: 9px;
  }
  .plan-quote strong {
    font-size: 16px;
  }
  .plan-quote small {
    font-size: 9px;
  }
}
/*=========================================
   PLANES DEL INICIO — AJUSTE DEFINITIVO MÓVIL
   No modifica planes.html ni la versión desktop
   =========================================*/
@media (max-width: 600px) {
  /*Carrusel horizontal*/
  .plans-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 12px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .plans-grid::-webkit-scrollbar {
    display: none;
  }
  /*Tarjetas con estructura uniforme*/
  .plans-grid > .plan-card {
    position: relative;
    display: flex !important;
    flex: 0 0 88% !important;
    flex-direction: column !important;
    align-self: stretch;
    width: 88% !important;
    max-width: 88% !important;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box;
    scroll-snap-align: center;
    border-radius: 15px;
  }
  /*Icono y nombre*/
  .plans-grid > .plan-card .plan-icon {
    flex-shrink: 0;
    margin-bottom: 6px;
  }
  .plans-grid > .plan-card .plan-label {
    display: block;
    margin: 0 0 4px;
    font-size: 8px;
    line-height: 1.3;
  }
  .plans-grid > .plan-card h2,
    .plans-grid > .plan-card h3 {
    margin: 0 0 6px !important;
    font-size: 17px;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  /*Descripción: siempre dentro del flujo normal*/
  .plans-grid > .plan-card .plan-description {
    position: static !important;
    display: block;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
  /*Nota adicional de protección familiar*/
  .plans-grid > .plan-card .plan-note {
    position: static !important;
    display: block;
    margin: 0 0 9px !important;
    padding: 0 !important;
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
  /*Evitar márgenes verticales innecesarios*/
  .plans-grid > .plan-card p {
    flex-shrink: 0;
  }
  .plans-grid > .plan-card h4 {
    margin: 5px 0 7px;
    font-size: 12px;
    line-height: 1.3;
  }
  /*Lista compacta y legible*/
  .plans-grid > .plan-card .plan-features {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 0;
    margin: 4px 0 10px !important;
    padding: 0;
  }
  .plans-grid > .plan-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-height: 0;
    margin: 0 0 5px !important;
    padding: 0 !important;
    font-size: 10px;
    line-height: 1.35;
  }
  .plans-grid > .plan-card .plan-features li:last-child {
    margin-bottom: 0 !important;
  }
  .plans-grid > .plan-card .plan-features li i {
    flex: 0 0 auto;
    margin-top: 2px;
  }
  /*Botones alineados al final de la tarjeta*/
  .plans-grid > .plan-card .plan-button,
    .plans-grid > .plan-card .btn {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    min-height: 40px;
    margin-top: auto !important;
    padding: 9px 8px;
    box-sizing: border-box;
    font-size: 9px;
    line-height: 1.3;
  }
}
/*Aviso de precios: compacto en el carrusel móvil*/
@media (max-width: 600px) {
  .plans-disclaimer,
    .plans-section .disclaimer,
    .plans-preview .disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 8px 12px 0 !important;
    padding: 9px 10px !important;
    border-radius: 12px;
    font-size: 10px !important;
    line-height: 1.4 !important;
    text-align: left;
  }
  .plans-disclaimer p,
    .plans-section .disclaimer p,
    .plans-preview .disclaimer p {
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }
  .plans-disclaimer i,
    .plans-section .disclaimer i,
    .plans-preview .disclaimer i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 11px;
  }
}
