/* Index homepage hero */
body.page-index .pantallas-lead {
    position: relative;
    overflow: hidden;
    min-height: clamp(480px, 68vh, 760px);
}

body.page-index .pantallas-lead__layout {
    position: relative;
    display: block;
}

body.page-index .hero-interior--pantallas {
    display: block;
    padding: clamp(72px, 12vh, 96px) 0 clamp(36px, 5vh, 52px);
    max-width: min(760px, 58vw);
}

body.page-index .apple-devices,
body.page-index .home-services,
body.page-index .home-trust {
    position: relative;
    z-index: 1;
}

body.page-index .hero-interior--pantallas .interior-text {
    max-width: 100%;
}

.hero-title-index {
    font-size: unset;
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title-index__line1 {
    display: block;
    font-size: clamp(2.85rem, 6.5vw, 4rem);
    font-weight: 300;
    line-height: 1.06;
}

.hero-title-index__line2 {
    display: block;
    font-size: clamp(2.35rem, 5.1vw, 3.2rem);
    font-weight: 300;
    line-height: 1.06;
}

.hero-title-index strong {
    font-weight: 700;
}

@media (max-width: 1024px) {
    body.page-index .pantallas-lead {
        min-height: auto;
        overflow: hidden;
        background-image: url('../images/face_id.webp');
        background-position: center bottom;
        background-size: min(90%, 420px) auto;
        background-repeat: no-repeat;
        padding-bottom: clamp(280px, 52vw, 380px);
    }

    body.page-index .hero-interior--pantallas {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: none;
    }

    body.page-index .hero-title-index {
        align-items: center;
    }

    /* Mobile hero backgrounds for pantallas / baterías */
    body.page-pantallas .pantallas-lead {
        overflow: hidden;
        background-image: url('../images/pantallas1.webp');
        background-position: center bottom;
        background-size: min(90%, 420px) auto;
        background-repeat: no-repeat;
        padding-bottom: clamp(280px, 52vw, 380px);
    }

    body.page-baterias .pantallas-lead {
        overflow: hidden;
        background-image: url('../images/bateria_celular_hero.webp');
        background-position: center bottom;
        background-size: min(90%, 420px) auto;
        background-repeat: no-repeat;
        padding-bottom: clamp(280px, 52vw, 380px);
    }
}

/* Pantallas page overrides */
body.page-pantallas .section-title--pantallas-services {
    margin-left: 0;
    margin-right: 0;
}

body.page-pantallas .pantallas-services .info-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

body.page-pantallas .pantallas-process .process-step {
    display: flex;
    align-items: center;
}

body.page-pantallas .faq-section .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0 24px;
}

body.page-pantallas .faq-section .faq-item:first-child {
    border-top: none;
}

body.page-pantallas .faq-section .faq-question {
    font-weight: 600;
    padding: 4px 0 10px;
    margin-bottom: 0;
}

body.page-pantallas .testimonials-section .testimonials-grid {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

body.page-pantallas .testimonials-section .testimonial-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
}

@media (max-width: 768px) {
    body.page-pantallas .pantallas-process .process-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* Baterías page overrides */
body.page-baterias .section-title--pantallas-services {
    margin-left: 0;
    margin-right: 0;
}

body.page-baterias .pantallas-services .info-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

body.page-baterias .pantallas-process .process-step {
    display: flex;
    align-items: center;
}

body.page-baterias .faq-section .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0 24px;
}

body.page-baterias .faq-section .faq-item:first-child {
    border-top: none;
}

body.page-baterias .faq-section .faq-question {
    font-weight: 600;
    padding: 4px 0 10px;
    margin-bottom: 0;
}

body.page-baterias .testimonials-section .testimonials-grid {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

body.page-baterias .testimonials-section .testimonial-card {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
}

@media (max-width: 768px) {
    body.page-baterias .pantallas-process .process-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* Homepage SEO intro */
.home-intro {
    max-width: min(26.5rem, 90%);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.72;
    color: #c4c4c4;
    text-align: left;
    margin-top: clamp(22px, 3vw, 36px);
}

body.page-index .home-intro {
    margin-left: 0;
}

@media (min-width: 1025px) {
    body.page-index .home-intro {
        max-width: min(34rem, 92%);
    }
}

.home-services {
    padding: clamp(40px, 6vh, 72px) 0 clamp(60px, 8vh, 96px);
    position: relative;
    z-index: 2;
}

.home-services__intro {
    color: #aaaaaa;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 640px;
}

.home-services__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}

.home-services__list a {
    display: block;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-services__list a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1024px) {
    body.page-index .home-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .home-services__list,
    .home-services__intro {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

/* WhatsApp floating button */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.my-float {
    margin-top: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0 0;
    position: relative;
    z-index: 3;
}

.breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: #aaaaaa;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #666;
}

.breadcrumbs__item a {
    color: #cccccc;
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    color: #ffffff;
}

.breadcrumbs__item span {
    color: #ffffff;
}

/* Apple sections and local content */
.apple-section,
.local-section,
.apple-devices,
.home-trust {
    padding: clamp(32px, 5vh, 56px) 0;
    position: relative;
    z-index: 2;
}

body.page-pantallas .apple-section,
body.page-baterias .apple-section {
    padding-top: clamp(16px, 3vh, 32px);
}

body.page-pantallas .local-section,
body.page-baterias .local-section {
    padding-top: clamp(24px, 4vh, 40px);
    padding-bottom: clamp(24px, 4vh, 40px);
}

.section-intro {
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 640px;
}

.apple-card img {
    height: 48px;
    width: auto;
    margin-bottom: 12px;
}

.apple-card .card-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
}

.apple-card a {
    display: inline-block;
    margin-top: 12px;
    color: #4da3ff;
    font-weight: 500;
    text-decoration: none;
}

.apple-card a:hover {
    text-decoration: underline;
}

.home-brands-note {
    margin-top: 24px;
    color: #aaaaaa;
    font-size: 0.95rem;
}

.home-coverage {
    margin-top: 24px;
    color: #aaaaaa;
}

.home-coverage a {
    color: #4da3ff;
}

/* WhatsApp CTA buttons */
.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: #25d366;
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp-cta:hover {
    background: #1fb855;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-whatsapp-cta--inline {
    margin-top: clamp(20px, 3vw, 28px);
}

/* Ubicación page */
.page-ubicacion .ubicacion-hero {
    padding: clamp(32px, 5vh, 56px) 0 clamp(24px, 4vh, 40px);
}

.page-ubicacion .ubicacion-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.ubicacion-hero__sub {
    color: #aaaaaa;
    max-width: 640px;
    line-height: 1.7;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(32px, 5vw, 48px);
    padding-bottom: clamp(40px, 6vh, 64px);
}

.ubicacion-nap h2,
.ubicacion-map h2,
.ubicacion-services h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.nap-block {
    font-style: normal;
    line-height: 1.8;
    color: #cccccc;
}

.nap-block a {
    color: #4da3ff;
}

.ubicacion-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ubicacion-cta .btn-contact-service {
    display: inline-flex;
    align-items: center;
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.ubicacion-cta .btn-contact-service:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ubicacion-services {
    padding-bottom: clamp(60px, 8vh, 96px);
}

/* 404 page */
.error-page {
    padding: clamp(80px, 12vh, 120px) 0;
    text-align: center;
}

.error-page h1 {
    margin-bottom: 16px;
}

.error-page p {
    color: #aaaaaa;
    max-width: 540px;
    margin: 0 auto 32px;
}

.error-page p a {
    color: #4da3ff;
    font-weight: 600;
}

.error-page p a:hover {
    text-decoration: underline;
}

.error-page .home-services__list {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .map-embed {
        padding-bottom: 75%;
    }

    .breadcrumbs {
        padding-top: 12px;
    }

    /* Clearance for floating WhatsApp + inline hero CTAs */
    body.page-index .pantallas-lead,
    body.page-pantallas .pantallas-lead,
    body.page-baterias .pantallas-lead,
    body.page-software .hero-interior.container,
    body.page-hardware .hero-interior.container {
        margin-bottom: 16px;
    }

    body.page-index .btn-whatsapp-cta--inline,
    body.page-pantallas .btn-whatsapp-cta--inline,
    body.page-baterias .btn-whatsapp-cta--inline,
    body.page-software .btn-whatsapp-cta--inline,
    body.page-hardware .btn-whatsapp-cta--inline {
        margin-bottom: 8px;
    }

    footer {
        padding-bottom: 88px;
    }
}

/* Legal pages */
.legal-page {
    max-width: 760px;
    padding: 40px 0 60px;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 8px;
}

.legal-page__updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.legal-page h2 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
    color: #ffffff;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 1.4rem;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--accent-color, #25d366);
    text-decoration: underline;
}

.legal-page__address {
    font-style: normal;
    margin-bottom: 8px;
}

.legal-page__address p {
    margin-bottom: 4px;
}
