/**
 * Panasweb — Inicio (index): responsive tipo app (compacto y uniforme)
 */

.page-wrapper {
  overflow-x: clip;
}

/* Tokens y ritmo vertical — tablet/móvil */
@media (max-width: 991px) {
  .page-wrapper {
    --section-space: 56px;
    --section-space-mobile: 48px;
    --app-pad-x: 16px;
    --app-radius: 14px;
    --app-gap: 14px;
    --app-title: clamp(1.22rem, 4.2vw, 1.62rem);
    --app-subtitle: 0.78rem;
    --app-body: 0.9375rem;
    --app-btn: 0.875rem;
  }
}

@media (max-width: 575px) {
  .page-wrapper {
    --section-space: 44px;
    --section-space-mobile: 40px;
    --app-pad-x: 14px;
    --app-radius: 12px;
    --app-gap: 12px;
    --app-title: clamp(1.15rem, 4.8vw, 1.45rem);
    --app-subtitle: 0.72rem;
    --app-body: 0.9rem;
    --app-btn: 0.8125rem;
  }
}

/* Sistema global tipo app */
@media (max-width: 991px) {
  .page-wrapper .container {
    padding-left: var(--app-pad-x);
    padding-right: var(--app-pad-x);
  }

  .page-wrapper .row.gy-30 {
    --bs-gutter-y: var(--app-gap);
  }

  .page-wrapper .title-wrap {
    margin-bottom: calc(var(--section-space) - 42px) !important;
  }

  .page-wrapper .sec-title {
    font-size: var(--app-title);
    line-height: 1.3;
    letter-spacing: normal;
    margin-bottom: 12px;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: wrap;
  }

  .page-wrapper .sec-title br,
  .page-wrapper .title-wrap .sec-title br {
    display: block;
  }

  .page-wrapper .sub-title-2 {
    font-size: var(--app-subtitle);
    padding: 2px 10px;
    margin-bottom: 8px;
    justify-content: center;
  }

  .page-wrapper .title-wrap {
    text-align: center;
  }

  .page-wrapper .title-wrap .sub-title-2 {
    display: inline-flex;
  }

  .page-wrapper p,
  .page-wrapper .sec-text {
    font-size: var(--app-body);
    line-height: 1.6;
  }

  .page-wrapper h4.title {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .page-wrapper h4.title br {
    display: block;
  }

  .page-wrapper .theme-btn {
    font-size: var(--app-btn);
    padding: 11px 22px 11px 18px;
    border-radius: 999px;
  }

  .page-wrapper .mt-40 {
    margin-top: 1rem !important;
  }

  .page-wrapper .mt-50,
  .page-wrapper .mt-60 {
    margin-top: 1.25rem !important;
  }

  .page-wrapper .mb-50,
  .page-wrapper .mb-60 {
    margin-bottom: 1.25rem !important;
  }

  .page-wrapper .mt-20,
  .page-wrapper .mb-20 {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .page-wrapper .shape-mockup,
  .page-wrapper .rocket-shape {
    display: none !important;
  }
}

/* Márgenes laterales del tema (mx-30) */
@media (max-width: 1399px) {
  .page-wrapper .mx-30,
  .page-wrapper .mx-30.xxl-mx-0,
  .page-wrapper .footer-section.mx-30 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-wrapper .footer-section.xxl-m-0 {
    margin-bottom: 0 !important;
  }

  .page-wrapper .br-30,
  .page-wrapper .ml-br-0,
  .page-wrapper .portfolio-inner.br-30,
  .page-wrapper .newsletter .br-30 {
    border-radius: 16px !important;
  }
}

@media (max-width: 575px) {
  .page-wrapper .br-30,
  .page-wrapper .ml-br-0,
  .page-wrapper .portfolio-inner.br-30,
  .page-wrapper .newsletter .br-30,
  .page-wrapper .footer-section {
    border-radius: 0 !important;
  }
}

/* Cabecera */
@media (max-width: 991px) {
  .tv-header.header-style1 .menu-area {
    padding: 12px 0;
  }

  .tv-header.header-style1 .header-logo img {
    max-height: 40px;
    max-width: min(150px, 38vw);
    width: auto;
  }

  .header-right-wrapper .outer-box {
    gap: 8px;
  }
}

/* Hero / galería de banners — ~40% del alto de pantalla en móvil */
@media (max-width: 767px) {
  .panasweb-hero-index-slider__inner,
  .panasweb-hero-index-swiper,
  .panasweb-hero-index-swiper .swiper-wrapper,
  .panasweb-hero-index-swiper .swiper-slide {
    height: 40vh;
    min-height: 40vh;
    max-height: 40vh;
  }

  .panasweb-hero-index-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b2135;
  }

  .panasweb-hero-index-slider__picture,
  .panasweb-hero-index-slider__img {
    width: 100%;
    height: 100%;
  }

  .panasweb-hero-index-slider__img {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 575px) {
  .panasweb-hero-index-swiper-pagination {
    bottom: 10px;
  }
}

/* Marquesina (cinta azul bajo el hero) */
@media (max-width: 767px) {
  .panasweb-hero-index-slider + .tv-marquee-section .marquee-wrap.style-2 {
    padding: 10px 0;
  }

  .tv-marquee-section .marquee-wrap.style-2 .m-item {
    font-size: 0.8rem;
    padding: 0;
    margin-right: 18px;
  }

  .tv-marquee-section .marquee-wrap.style-2 .m-item .icon {
    width: 16px;
    margin-right: 10px;
  }
}

/* Acerca de (CMS) */
@media (max-width: 991px) {
  .tv-about-section.style-2 {
    text-align: center;
    padding-top: 8px;
  }

  .tv-about-section.style-2 .about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
  }

  .tv-about-section.style-2 .about-left .left-img {
    max-width: min(200px, 58vw);
    margin: 0 auto 14px;
  }

  .tv-about-section.style-2 .about-left .left-img svg {
    left: 0;
    top: 0;
  }

  .tv-about-section.style-2 .about-left .about-left-shape {
    display: none;
  }

  .tv-about-section.style-2 .about-right {
    text-align: center;
  }

  .tv-about-section.style-2 .about-right .about-right-content {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .tv-about-section.style-2 .about-right .about-right-content .content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-about-section.style-2 .about-right .about-right-content .content .icon {
    margin-bottom: 8px;
  }

  .tv-about-section.style-2 .about-right .features {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }

  .tv-about-section.style-2 .about-right .features li {
    text-align: left;
  }

  .tv-about-section.style-2 .about-right .theme-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .tv-about-section.style-2 .about-right p {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
    font-size: var(--app-body);
  }

  .tv-about-section.style-2 .about-right .about-right-content .content .icon {
    width: 48px;
    height: 48px;
  }

  .tv-about-section.style-2 .about-right .about-right-content .content .icon img {
    max-width: 100%;
    height: auto;
  }

  .tv-about-section.style-2 .about-right .features li {
    font-size: var(--app-body);
    padding: 4px 0;
  }
}

@media (max-width: 575px) {
  .tv-about-section.style-2 .about-left .left-img {
    max-width: min(168px, 52vw);
  }
}

/* Servicios */
@media (max-width: 991px) {
  .tv-service-section.style-2 .tv-service-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--app-radius) !important;
    padding-top: var(--section-space-mobile) !important;
    padding-bottom: var(--section-space-mobile) !important;
  }

  .tv-service-section.style-2 .p-top-left,
  .tv-service-section.style-2 .p-top-right {
    display: none;
  }

  /* Mantener fondo azul con ondas del tema (sin atenuar) */
  .tv-service-section.style-2 .bg.image {
    opacity: 1;
  }

  .tv-service-section.style-2 .bg.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .tv-service-section.style-2 .title-wrap.two {
    margin-bottom: 20px !important;
  }

  .tv-service-section.style-2 .title-wrap.two .sec-title {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 6px;
    font-size: clamp(1.12rem, 4.2vw, 1.5rem);
    line-height: 1.32;
  }

  .tv-service-section.style-2 .title-wrap.two .sec-title br {
    display: block;
  }

  .panasweb-service-slider-shell {
    position: relative;
    padding: 0 var(--app-pad-x) 8px;
    max-width: 100%;
  }

  .panasweb-service-slider-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .panasweb-service-slider-hint i {
    font-size: 0.85rem;
    opacity: 0.9;
  }

  .panasweb-service-slider-hint.is-hidden,
  .panasweb-service-slider-shell.is-hint-dismissed .panasweb-service-slider-hint {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
  }

  .tv-service-section.style-2 .service-slider,
  .tv-service-section.style-2 .panasweb-service-index-swiper {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    width: 100%;
  }

  .panasweb-service-index-swiper .swiper-wrapper {
    align-items: stretch;
  }

  .panasweb-service-index-swiper .swiper-slide {
    width: 100% !important;
    height: auto;
    box-sizing: border-box;
  }

  .panasweb-service-index-swiper .swiper-slide .tv-service-single-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
  }

  .panasweb-service-index-swiper .swiper-slide .tv-service-single-box .inner-box {
    overflow: visible;
  }

  .panasweb-service-index-swiper .swiper-slide .tv-service-single-box .inner-box .title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .panasweb-service-index-swiper .swiper-slide .tv-service-single-box .inner-box .title br {
    display: block;
  }

  .panasweb-service-index-swiper .swiper-slide .tv-service-single-box .inner-box .text {
    overflow-wrap: normal;
    word-break: normal;
  }

  .panasweb-service-slider-controls {
    margin-top: 16px;
    padding: 0 4px;
  }

  .panasweb-service-swiper-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #0b2135;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(11, 33, 53, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .panasweb-service-swiper-nav:hover {
    background: var(--theme-color);
    color: #fff;
  }

  .tv-service-section.style-2 .tv-service-single-box {
    height: auto;
    padding: 0;
    border-radius: var(--app-radius);
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box {
    padding: 18px 16px;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .icon {
    width: 52px;
    height: 52px;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .icon img {
    max-width: 28px;
    max-height: 28px;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-top: 14px;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .text {
    font-size: var(--app-body);
    line-height: 1.55;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .border2 {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box .theme-btn {
    padding: 9px 18px;
    font-size: var(--app-btn);
    margin-top: 12px !important;
  }

  .tv-service-section.style-2 .cta-section.style-1.space-top {
    padding-top: 1.5rem !important;
  }

  .cta-section.style-1 .cta-inner {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
    padding: 18px 16px !important;
    border-radius: var(--app-radius);
    text-align: center;
  }

  .cta-section.style-1 .cta-inner .cta-left .mike,
  .cta-section.style-1 .cta-inner .cta-right .arrow {
    display: none;
  }

  .cta-section.style-1 .cta-inner .cta-left h4 {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
  }

  .cta-section.style-1 .cta-inner .cta-left h4 br {
    display: block;
  }

  .cta-section.style-1 .cta-inner .cta-right {
    text-align: center !important;
    width: 100%;
  }

  .cta-section.style-1 .cta-inner .cta-right .theme-btn {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .tv-service-section.style-2 .tv-service-inner {
    border-radius: 0 !important;
  }

  .tv-service-section.style-2 .title-wrap.two .sec-title {
    font-size: 1.12rem;
    max-width: 18rem;
  }

  .panasweb-service-swiper-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .tv-service-section.style-2 .tv-service-single-box .inner-box {
    padding: 16px 14px;
  }
}

@media (min-width: 992px) {
  .panasweb-service-slider-hint {
    display: none;
  }

  .panasweb-service-slider-controls {
    margin-top: 20px;
  }
}

/* Por qué elegirnos */
@media (max-width: 991px) {
  .tv-choose-section.style-2.space-top {
    padding-top: var(--section-space-mobile) !important;
  }

  .tv-choose-section.style-2 .tv-choose-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-choose-section.style-2 .choose-left-img {
    width: 100%;
    max-width: min(160px, 48vw);
    margin: 6px auto 0;
  }

  .tv-choose-section.style-2 .choose-left-img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .tv-choose-section.style-2 .tv-choose-left .circle-shape,
  .tv-choose-section.style-2 .tv-choose-left .leaf-shape {
    display: none;
  }

  .tv-choose-section.style-2 .tv-choose-left .growth {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 12px;
  }

  .tv-choose-section.style-2 .tv-choose-right-box {
    margin-left: 0;
    text-align: center;
  }

  .tv-choose-section.style-2 .hero-social-proof {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .tv-choose-section.style-2 .hero-social-proof .scribble {
    display: none;
  }

  .tv-choose-section.style-2 .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .tv-choose-section.style-2 .feature-item {
    text-align: left;
    padding: 14px 12px;
    background: #fff;
    border-radius: var(--app-radius);
    box-shadow: 0 4px 16px rgba(11, 33, 53, 0.06);
  }

  .tv-choose-section.style-2 .feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .tv-choose-section.style-2 .feature-item p {
    font-size: 0.85rem;
    max-width: none;
    line-height: 1.5;
    margin: 0;
  }

  .tv-choose-section.style-2 .feature-item .icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 575px) {
  .tv-choose-section.style-2 .choose-left-img {
    max-width: min(140px, 44vw);
  }
}

/* Portafolio */
@media (max-width: 991px) {
  .tv-portfolio-section .portfolio-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--app-radius) !important;
    padding-top: var(--section-space-mobile) !important;
    padding-bottom: var(--section-space-mobile) !important;
  }

  .tv-portfolio-section .container-fluid.px-60,
  .tv-portfolio-section .container-fluid.lg-px-15,
  .tv-portfolio-section .container-fluid.xxl-px-50 {
    padding-left: var(--app-pad-x) !important;
    padding-right: var(--app-pad-x) !important;
  }

  .tv-portfolio-section .portfolio-inner .portfolio-title {
    margin-bottom: 16px;
  }

  .tv-portfolio-section .portfolio-inner .portfolio-title h2 {
    font-size: clamp(1.75rem, 9vw, 2.25rem) !important;
    line-height: 1;
    letter-spacing: 0.06em;
    margin-bottom: 16px !important;
  }

  .tv-portfolio-section .portfolio-title.mt--25 {
    margin-top: 0 !important;
  }

  .tv-portfolio-section .tv-portfolio-box {
    margin-bottom: var(--app-gap);
    border-radius: var(--app-radius);
  }

  .tv-portfolio-section .tv-portfolio-box .box-content {
    padding: 14px 12px;
  }

  .tv-portfolio-section .tv-portfolio-box .box-content h3 a {
    font-size: 1rem;
    line-height: 1.35;
  }

  .tv-portfolio-section .tv-portfolio-box .box-content p {
    font-size: 0.85rem;
  }

  .tv-portfolio-section .tv-portfolio-box .box-content .tag {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .tv-portfolio-section .tv-portfolio-box .box-image .video-btn .popup-video {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }
}

/* Estrategia */
@media (max-width: 991px) {
  .tv-strategy-section .strategy-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: var(--section-space-mobile) !important;
    padding-bottom: var(--section-space-mobile) !important;
  }

  .tv-strategy-section .strategy-wrapper {
    padding: 12px;
    border-radius: var(--app-radius);
    gap: 10px;
  }

  .tv-strategy-section .strategy-item {
    padding: 14px 12px;
    border-radius: var(--app-radius);
  }

  .tv-strategy-section .strategy-item .step {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .tv-strategy-section .strategy-item .title {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .tv-strategy-section .strategy-item .desc {
    font-size: var(--app-body);
    line-height: 1.55;
  }

  .tv-strategy-section .strategy-item .desc br {
    display: block;
  }

  .tv-strategy-section .strategy-item .number {
    font-size: 1.75rem;
    opacity: 0.35;
  }
}

/* Marcas */
@media (max-width: 991px) {
  .tv-brands-section .brand-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-bottom: var(--section-space-mobile) !important;
  }

  .tv-brands-section .trusted-partners {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-bottom: 20px !important;
  }

  .tv-brands-section .trusted-partners.mb-60 {
    margin-bottom: 20px !important;
  }

  .tv-brands-section .trusted-partners .line {
    display: none;
  }

  .tv-brands-section .trusted-partners .title {
    font-size: 0.72rem;
    line-height: 1.4;
    padding: 0 8px;
    word-break: normal;
    overflow-wrap: normal;
  }

  .tv-brands-section {
    --panasweb-partner-logo-w: 168px;
    --panasweb-partner-logo-h: 52px;
  }

  .panasweb-partners-slider {
    padding: 0 40px 32px;
  }

  .panasweb-partners-swiper-nav {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}

@media (max-width: 575px) {
  .tv-brands-section {
    --panasweb-partner-logo-w: 148px;
    --panasweb-partner-logo-h: 48px;
  }

  .panasweb-partners-slider {
    padding: 0 36px 28px;
  }
}

/* Boletín */
@media (max-width: 991px) {
  .newsletter-section.mb--75 {
    margin-bottom: -20px !important;
  }

  .newsletter-section .newsletter {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px !important;
    border-radius: var(--app-radius) !important;
  }

  .newsletter-section .newsletter .image-text {
    padding-left: 0;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .newsletter-section .newsletter .image-text img {
    width: 28px;
    height: auto;
    flex-shrink: 0;
    margin: 2px 0 0;
  }

  .newsletter-section .newsletter .image-text .title {
    font-size: var(--app-title);
    line-height: 1.3;
    text-align: left;
  }

  .newsletter-section .newsletter .image-text .title br {
    display: block;
  }

  .newsletter-section .newsletter-form {
    width: 100%;
  }

  .newsletter-section .newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .newsletter-section .newsletter-form .form-group input[type="email"] {
    width: 100%;
    min-width: 0;
    font-size: var(--app-body);
    height: 44px;
    border-radius: var(--app-radius);
  }

  .newsletter-section .newsletter-form .form-group button[type="submit"] {
    width: 100%;
    border-radius: var(--app-radius);
    height: 44px;
    font-size: var(--app-btn);
  }
}

/* Pie de página */
@media (max-width: 991px) {
  .footer-section {
    border-radius: var(--app-radius) var(--app-radius) 0 0 !important;
    margin-bottom: 0 !important;
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }

  .footer-section .footer-brand .brand-info p,
  .footer-section .footer-widget p,
  .footer-section .footer-widget a,
  .footer-section .footer-bottom {
    font-size: var(--app-body);
  }

  .footer-section .footer-widget .widget_title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-section .footer-brand,
  .footer-section .footer-brand .brand-info {
    text-align: center;
  }

  .footer-section .footer-brand .social-links {
    justify-content: center;
  }

  .footer-section .footer-widget {
    text-align: center;
    margin-top: 8px;
  }

  .footer-section .footer-widget ul {
    padding-left: 0;
  }

  .footer-section .footer-bottom {
    text-align: center;
  }

  .footer-section .footer-bottom .copyright,
  .footer-section .footer-bottom .footer-policy {
    text-align: center !important;
  }

  .footer-section .footer-bottom .footer-policy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }
}

/* Ajuste fino en pantallas pequeñas */
@media (max-width: 575px) {
  .panasweb-hero-index-swiper-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .tv-portfolio-section .portfolio-inner .portfolio-title h2 {
    font-size: 1.65rem !important;
  }

  .newsletter-section .newsletter .image-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .newsletter-section .newsletter .image-text .title {
    text-align: center;
  }
}
