/* Portada moderna. Se carga después de los estilos heredados para mantener
   compatibles las vistas internas sin arrastrar sus decisiones visuales. */

:root {
    --home-surface: rgba(12, 20, 48, 0.82);
    --home-surface-strong: #0b1330;
    --home-border: rgba(126, 231, 255, 0.17);
    --home-muted: rgba(239, 245, 255, 0.72);
    --home-radius-xl: 36px;
    --home-radius-lg: 26px;
    --home-shadow: 0 28px 80px rgba(1, 7, 28, 0.38);
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 217, 255, 0.12), transparent 28rem),
        radial-gradient(circle at 90% 30%, rgba(255, 0, 229, 0.1), transparent 32rem),
        linear-gradient(180deg, #081028 0%, #0e1b3d 48%, #081127 100%);
}

main {
    overflow: clip;
}

.home-hero {
    position: relative;
    width: min(100% - 40px, 1760px);
    margin: 94px auto 0;
    padding-bottom: 0;
}

.home-hero .banner-carousel {
    position: relative;
    width: 100%;
    height: clamp(430px, 31vw, 620px);
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--home-radius-xl);
    background: #090f26;
    box-shadow: var(--home-shadow);
    isolation: isolate;
}

.home-hero .banner-slide,
.home-hero .banner-slide a {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero .banner-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 8s ease;
}

.home-hero .banner-slide.active img {
    transform: scale(1.045);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 8, 25, 0.04) 58%, rgba(3, 8, 25, 0.38) 100%),
        linear-gradient(90deg, rgba(3, 8, 25, 0.25), transparent 28%, transparent 72%, rgba(3, 8, 25, 0.22));
}

.home-hero .banner-nav {
    top: 50%;
    z-index: 6;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(7, 14, 38, 0.62);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.home-hero .banner-nav:hover {
    background: rgba(255, 255, 255, 0.94);
    color: #0b1330;
    box-shadow: 0 14px 34px rgba(0, 217, 255, 0.3);
}

.home-hero .banner-nav.prev {
    left: 24px;
}

.home-hero .banner-nav.next {
    right: 24px;
}

.home-hero .banner-controls {
    bottom: 20px;
    z-index: 7;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(6, 12, 31, 0.56);
    backdrop-filter: blur(12px);
}

.home-hero .banner-dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.56);
}

.home-hero .banner-dot.active {
    width: 28px;
    border-radius: 99px;
    background: linear-gradient(90deg, #19d4ff, #ff31d2);
    box-shadow: none;
}

.hero-action-panel {
    position: relative;
    z-index: 8;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 118px;
    margin: 16px 28px 0;
    padding: 20px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(13, 24, 58, 0.94), rgba(23, 24, 63, 0.9)),
        rgba(11, 19, 48, 0.9);
    box-shadow: 0 22px 54px rgba(1, 7, 28, 0.42);
    backdrop-filter: blur(22px);
}

.hero-action-panel::before {
    position: absolute;
    top: -70px;
    right: 20%;
    width: 240px;
    height: 180px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.16);
    filter: blur(55px);
    content: "";
}

.hero-action-copy,
.hero-action-buttons {
    position: relative;
    z-index: 1;
}

.hero-action-copy h1 {
    max-width: 760px;
    margin: 6px 0 4px;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hero-action-copy p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.98rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #72e8ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-action-buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.hero-action-buttons .btn {
    padding: 0.85rem 1.4rem;
    white-space: nowrap;
    font-size: 0.84rem;
    box-shadow: 0 12px 24px rgba(0, 217, 255, 0.2);
}

.btn-secondary-soft {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none !important;
}

.home-hero-fallback {
    margin-top: 78px;
    padding: 8rem 0 6rem;
}

.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    width: min(100% - 64px, 1540px);
    margin: 46px auto 0;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: var(--home-border);
    box-shadow: 0 18px 50px rgba(1, 7, 28, 0.22);
}

.home-trust-strip > div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 24px;
    background: rgba(10, 19, 46, 0.94);
}

.trust-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(100, 228, 255, 0.22);
    border-radius: 14px;
    color: #72e8ff;
    background: linear-gradient(145deg, rgba(0, 217, 255, 0.15), rgba(255, 0, 229, 0.08));
}

.home-trust-strip p {
    min-width: 0;
    margin: 0;
    line-height: 1.25;
}

.home-trust-strip strong,
.home-trust-strip small {
    display: block;
}

.card-play-section {
    position: relative;
    display: grid;
    overflow: hidden;
    margin: 34px 0 82px;
    padding: clamp(28px, 5vw, 56px);
    grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
    border: 1px solid rgba(217, 255, 85, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 15%, rgba(0, 217, 255, 0.15), transparent 30%),
        linear-gradient(135deg, rgba(16, 34, 76, 0.96), rgba(7, 17, 38, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.card-play-copy h2 {
    margin: 10px 0 15px;
    color: #fff;
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.card-play-copy h2 span {
    color: transparent;
    background: linear-gradient(90deg, #50e6ff, #d9ff55);
    background-clip: text;
    -webkit-background-clip: text;
}

.card-play-copy p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.card-play-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d9ff55;
    font-weight: 850;
    text-decoration: none;
}

.card-play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.card-play-primary {
    display: inline-flex;
    min-height: 50px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    color: #071126;
    background: #d9ff55;
    box-shadow: 0 12px 30px rgba(217, 255, 85, 0.14);
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-play-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(217, 255, 85, 0.22);
}

.card-play-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-play-steps li {
    position: relative;
    display: grid;
    min-height: 108px;
    padding: 20px 58px 20px 20px;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card-play-steps li:hover {
    border-color: rgba(80, 230, 255, 0.3);
    background: rgba(80, 230, 255, 0.07);
    transform: translateX(5px);
}

.card-play-steps li > i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: #08152f;
    background: linear-gradient(135deg, #50e6ff, #d9ff55);
    font-size: 1.2rem;
}

.card-play-number {
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 900;
}

.card-play-steps strong,
.card-play-steps small {
    display: block;
}

.card-play-steps strong {
    margin-bottom: 5px;
    color: #fff;
    font-size: 1.05rem;
}

.card-play-steps small {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.5;
}

.home-trust-strip strong {
    color: #fff;
    font-size: 0.92rem;
}

.home-trust-strip small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-container {
    max-width: 1600px;
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
    padding-left: clamp(1.25rem, 4vw, 3rem);
}

.home-section {
    margin-bottom: clamp(5rem, 9vw, 9rem);
}

.home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 38px;
}

.home-section-heading .section-title,
.nosotros .section-title,
.contacto .section-title,
.faq .section-title {
    display: block;
    max-width: 850px;
    margin: 10px 0 0;
    padding: 0;
    text-align: left;
    color: #fff;
    font-size: clamp(2.4rem, 4.5vw, 4.7rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-transform: none;
}

.section-title span {
    color: transparent;
    background: linear-gradient(90deg, #42dcff, #9b85ff 48%, #ff4bd8);
    background-clip: text;
    -webkit-background-clip: text;
}

.home-section-heading .section-description {
    max-width: 480px;
    margin: 0 0 4px;
    text-align: left;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.75;
}

#servicios {
    margin-bottom: clamp(5rem, 9vw, 9rem);
}

.servicios-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 32px);
    margin-top: 0;
}

.servicio-card {
    min-width: 0;
    height: auto;
    min-height: 570px;
    padding: 12px;
    border: 1px solid var(--home-border);
    border-radius: 30px;
    background:
        linear-gradient(150deg, rgba(19, 31, 67, 0.94), rgba(8, 15, 38, 0.98));
    box-shadow: 0 24px 60px rgba(1, 7, 28, 0.28);
    cursor: pointer;
}

.servicio-card::before {
    display: none;
}

.servicio-card:hover {
    border-color: rgba(98, 226, 255, 0.45);
    transform: translateY(-9px);
    box-shadow: 0 30px 70px rgba(1, 7, 28, 0.42), 0 0 0 1px rgba(0, 217, 255, 0.12);
}

.servicio-imagen {
    height: clamp(250px, 25vw, 370px);
    border-radius: 22px;
}

.servicio-imagen::after {
    background: linear-gradient(180deg, transparent 52%, rgba(6, 12, 31, 0.58) 100%);
}

.servicio-card:hover .servicio-imagen img {
    transform: scale(1.045);
}

.servicio-badge {
    top: 28px;
    right: 28px;
    z-index: 4;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 217, 0, 0.94);
    box-shadow: 0 10px 26px rgba(255, 183, 0, 0.22);
    color: #10152b;
    font-size: 0.78rem;
}

.servicio-content {
    padding: 26px 14px 12px;
}

.servicio-nombre {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.servicio-descripcion {
    min-height: 0;
    margin-bottom: 28px;
    color: var(--home-muted);
    font-size: 0.94rem;
}

.servicio-footer {
    margin-top: auto;
    padding-top: 18px;
    border-color: rgba(255, 255, 255, 0.09);
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.service-link i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #081127;
    background: linear-gradient(135deg, #42dcff, #ff4bd8);
    transition: transform 0.25s ease;
}

.servicio-card:hover .service-link i {
    transform: translateX(4px) rotate(-8deg);
}

.nosotros,
.contacto,
.faq {
    margin: 0 0 clamp(5rem, 9vw, 9rem);
    padding: clamp(2.2rem, 5vw, 5rem);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 0, 229, 0.11), transparent 25rem),
        radial-gradient(circle at 5% 60%, rgba(0, 217, 255, 0.11), transparent 24rem),
        rgba(8, 16, 40, 0.78);
    box-shadow: var(--home-shadow);
}

.nosotros .section-header,
.contacto .section-header,
.faq .section-header {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.nosotros-content {
    gap: 28px;
}

.nosotros-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 80px);
    max-width: none;
    padding-bottom: 34px;
    text-align: left;
}

.nosotros-intro h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.nosotros-intro p {
    margin: 0;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.nosotros-stats,
.nosotros-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card,
.feature-card {
    min-width: 0;
    padding: 26px 20px;
    border: 1px solid rgba(126, 231, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.stat-card:hover,
.feature-card:hover {
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 36px rgba(1, 7, 28, 0.28);
}

.stat-card h4,
.feature-card h4 {
    color: #fff;
}

.stat-icon,
.feature-card .feature-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 8px 14px rgba(0, 217, 255, 0.16));
}

.stat-card p,
.feature-card p {
    color: var(--home-muted);
}

.contacto-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: clamp(24px, 4vw, 54px);
    margin-top: 0;
}

.mapa-section {
    gap: 20px;
}

.mapa-section h3,
.contacto-info-title {
    margin: 0 0 4px;
    text-align: left;
    color: #fff;
    font-size: 1.3rem;
}

.mapa-section h3 i {
    margin-right: 8px;
    color: #65e5ff;
}

.mapa {
    max-height: none;
    padding: 12px;
    border: 1px solid var(--home-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.mapa h4 {
    margin: 4px 6px 12px;
    color: #fff;
    font-size: 0.9rem;
}

.mapa iframe {
    display: block;
    height: 310px !important;
    border-radius: 15px !important;
}

.contacto-info-list {
    gap: 14px;
}

.contact-item {
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.contact-item:hover {
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 36px rgba(1, 7, 28, 0.22);
}

.contact-icon-circle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    font-size: 1.05rem;
}

.contact-details h4 {
    font-size: 1rem;
}

.contact-details p {
    color: var(--home-muted);
    font-size: 0.9rem;
}

.faq {
    background:
        radial-gradient(circle at 15% 5%, rgba(0, 217, 255, 0.1), transparent 24rem),
        rgba(8, 16, 40, 0.82);
}

.faq-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.faq-item {
    margin: 0;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(0, 217, 255, 0.38);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 18px 34px rgba(1, 7, 28, 0.2);
}

.faq-question {
    min-height: 84px;
    padding: 20px 22px;
    font-size: 0.96rem;
}

.faq-question i {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
}

@media (max-width: 1120px) {
    .card-play-section {
        grid-template-columns: 1fr;
    }

    .home-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nosotros-stats,
    .nosotros-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .home-hero {
        width: min(100% - 24px, 760px);
        margin-top: 80px;
        padding-bottom: 0;
    }

    .home-hero .banner-carousel {
        height: clamp(300px, 62vw, 470px);
        border-radius: 24px;
    }

    .home-hero .banner-slide img {
        object-position: center;
    }

    .home-hero .banner-controls {
        bottom: 18px;
    }

    .hero-action-panel {
        display: block;
        margin: -2px 0 0;
        padding: 24px;
        border-radius: 0 0 24px 24px;
    }

    .hero-action-buttons {
        margin-top: 20px;
    }

    .home-trust-strip {
        width: min(100% - 24px, 760px);
        margin-top: 24px;
    }

    .home-section-heading,
    .nosotros-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-section-heading .section-description {
        max-width: 650px;
    }

    .home-section-heading .section-title,
    .nosotros .section-title,
    .contacto .section-title,
    .faq .section-title {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

    .faq-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero {
        width: calc(100% - 16px);
        margin-top: 74px;
    }

    .home-hero .banner-carousel {
        height: 300px;
        border-radius: 20px;
    }

    .home-hero .banner-slide img {
        object-position: center;
    }

    .home-hero .banner-nav {
        top: 46%;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .home-hero .banner-nav.prev {
        left: 10px;
    }

    .home-hero .banner-nav.next {
        right: 10px;
    }

    .hero-action-panel {
        padding: 22px 18px;
    }

    .hero-action-copy h1 {
        font-size: 1.4rem;
    }

    .hero-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .home-trust-strip {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
        border-radius: 20px;
    }

    .home-trust-strip > div {
        padding: 16px 18px;
    }

    .home-container {
        padding-top: 4.5rem;
        padding-right: 12px;
        padding-left: 12px;
    }

    .card-play-section {
        margin-bottom: 58px;
        padding: 26px 18px;
        border-radius: 24px;
    }

    .card-play-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .card-play-actions > a {
        justify-content: center;
    }

    .card-play-steps li {
        min-height: 100px;
        padding-right: 46px;
        grid-template-columns: 46px 1fr;
    }

    .card-play-steps li > i {
        width: 46px;
        height: 46px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card {
        min-height: 0;
        padding: 9px;
        border-radius: 24px;
    }

    .servicio-imagen {
        height: 280px;
        border-radius: 18px;
    }

    .servicio-badge {
        top: 20px;
        right: 20px;
    }

    .nosotros,
    .contacto,
    .faq {
        padding: 28px 18px;
        border-radius: 26px;
    }

    .nosotros-stats,
    .nosotros-features {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .feature-card {
        padding: 22px 18px;
    }

    .mapa iframe {
        height: 260px !important;
    }

    .contact-item {
        align-items: flex-start;
        flex-direction: row;
        text-align: left;
    }

    .faq-question {
        min-height: 74px;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero .banner-slide img,
    .servicio-card,
    .service-link i {
        transition: none;
    }
}
