@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --colorPrimary: #0A172E;
    --colorSecondary: #61BB46;
    --colorActive: rgb(17, 173, 72);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: var(--colorPrimary);
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.titulo-ccv {
    width: 100%;
    color: var(--colorPrimary);
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   HEADER
   ============================================ */

header {
    width: 100%;
    height: 600px;
    background: -webkit-linear-gradient(to right, hsla(204, 70%, 53%, 0.753), hsla(204, 70%, 53%, 0.664)), url(../img/portada.jpeg);
    background: linear-gradient(to right, hsla(204, 70%, 53%, 0.753), hsla(204, 70%, 53%, 0.664)), url(../img/portada.jpeg);
    background-size: cover;
    background-position-y: -150px;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

header .textos-header {
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1 {
    font-size: 60px;
    color: #fff;
}

.textos-header h2 {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.nav {
    background: transparent;
    height: 70px;
    color: #fff;
    position: fixed;
    width: 100vw;
    z-index: 15;
    transition: 0.3s width;
    display: flex;
    justify-content: center;
}

.nav_bg {
    background: var(--colorPrimary);
}

.nav_container {
    display: flex;
    height: 70px;
    width: 90%;
    position: fixed;
    top: 0px;
    justify-content: space-between;
    align-items: center;
}

.nav_menu {
    display: grid;
    grid-auto-flow: column;
    gap: 3em;
}

.nav_item {
    color: #fff;
    text-decoration: none;
    --clippy: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    font-size: 20px;
    font-weight: 400;
}

.nav_item::after {
    content: "";
    display: block;
    background: #fff;
    width: 99%;
    margin-top: 3px;
    height: 3px;
    clip-path: var(--clippy);
    transition: clip-path .4s;
}

.nav_item:hover {
    --clippy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav_label,
.nav_input {
    display: none;
}

.nav_logo {
    width: 100px;
    height: 50px;
    object-fit: cover;
}

.active {
    color: var(--colorActive);
}

/* ============================================
   ABOUT US / SOBRE NOSOTROS
   ============================================ */

main .sobre-nosotros {
    padding: 30px 0 60px 0;
}

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us {
    width: 48%;
}

.sobre-nosotros .contenido-textos {
    width: 48%;
}

.contenido-textos h3 {
    margin-bottom: 15px;
}

.contenido-textos h3 span {
    background: var(--colorPrimary);
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p {
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* ============================================
   PLANES (NUEVOS - 3 POR FILA)
   ============================================ */

.portafolio {
    background: linear-gradient(135deg, #0A172E 0%, #1a2a4e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Partículas flotantes de fondo */
.portafolio::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(97, 187, 70, 0.1);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: float 20s infinite;
}

.portafolio::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation: float 25s infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }
}

.portafolio .titulo {
    color: #fff;
}

/* AJUSTE: Grid de 3 columnas fijas y tarjetas más pequeñas */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

/* Efecto de gradiente animado en el borde */
.plan-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.plan-card:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-card:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(97, 187, 70, 0.3);
}

/* Efecto de brillo al pasar el mouse */
.plan-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.plan-card:hover::after {
    width: 500px;
    height: 500px;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.plan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.plan-card:nth-child(2) .plan-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-card:nth-child(3) .plan-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(97, 187, 70, 0.4);
    }
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.plan-speed {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #61BB46, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    line-height: 1;
}

.plan-speed-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-features {
    list-style: none;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.plan-features li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.plan-features li:hover {
    padding-left: 10px;
    color: #fff;
}

.plan-features li::before {
    content: '✓';
    display: inline-block;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 12px;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.plan-card:nth-child(2) .plan-features li::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-card:nth-child(3) .plan-features li::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.plan-price {
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.price-currency {
    font-size: 1.8rem;
    vertical-align: super;
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 5px;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
}

.plan-card:nth-child(2) .plan-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-card:nth-child(3) .plan-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    pointer-events: none;
}

.plan-button:hover::before {
    left: 100%;
}

.plan-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(97, 187, 70, 0.4);
}

/* Badge de popular */
.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ============================================
   MEDIDOR DE VELOCIDAD
   ============================================ */

.medidor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--colorSecondary);
    background-image: radial-gradient(#010d21 0.5px, transparent 0.5px), radial-gradient(#000000 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    width: 100%;
    padding: 60px 0px;
}

.container-v {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1000px;
}

.velocidad {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--colorPrimary);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.velocidad:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--colorSecondary);
}

.velocidad h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--colorSecondary);
}

.velocidad h3:hover{
    color:white;
}

.velocidad h6 {
    font-size: 14px;
    color: var(--colorPrimary);
}

/* ============================================
   VENTA DE PRODUCTOS
   ============================================ */

.contenedorT {
    margin: auto;
    padding: 20px;
    width: 78%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-wrap: wrap;
}

.tabla {
    width: 25%;
    height: 450px;
    border: 1px solid #1a5dd0;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0px 0px 4px 0px #1a5dd0;
    padding: 20px;
    flex-grow: 1;
    color: var(--colorPrimary);
    transition: 0.4s transform;
    position: relative;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
}

.tabla:hover {
    background: var(--colorPrimary);
    color: #f1f1f2;
    transform: scale(1.05);
    cursor: pointer;
}

.conTabla > h2 {
    color: #000000;
}

.conTabla > h3 {
    color: #000000;
}

.tabla:hover .conTabla > h2,
.tabla:hover .conTabla > h3,
.tabla:hover .conTabla > p {
    color: #fff;
}

.tabla > h2 {
    margin-bottom: 35px;
    font-size: 22px;
}

.tabla img {
    width: 224px;
    margin-bottom: 35px;
}

.tabla > h3 {
    margin-bottom: 30px;
    font-size: 20px;
}

/* ============================================
   COBERTURA
   ============================================ */

.clientes {
    padding: 0px;
    width: 100%;
    position: relative;
}

.clientes_ {
    background: transparent;
    padding: 60px 0;
    top: 0;
    position: absolute;
    margin: auto;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
}

.bgDinamico {
    position: static;
    top: 0px;
    z-index: 15;
    height: 500px;
}

.cards {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 15px;
}

.cards .card {
    background: var(--colorPrimary);
    display: flex;
    width: 30%;
    height: 150px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
    transition: 0.4s transform;
}

.cards .card:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.cards .card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card h4 {
    font-size: 1.3em;
}

.cards .card > .contenido-texto-card {
    width: 60%;
    color: #fff;
}

/* ============================================
   ENLACES DE INTERÉS
   ============================================ */

.enlacesInteres {
    border-top: 2px dotted rgb(205, 201, 201);
    min-height: 700px;
    position: relative;
    overflow: hidden;
    padding-top: 10px;
    background: #fff;
}

.enlacesContenedor {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.enlace_ {
    min-height: 210px;
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.enlace_ img {
    height: 350px;
    transition: transform 0.5s;
}

.enlace_:hover img {
    transform: scale(1.09);
}

.enlace_.lista {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.botonEnlace {
    min-width: 51%;
    display: inline-block;
    padding: 12px;
    text-decoration: none;
    color: var(--colorPrimary);
    border-radius: 100px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin: auto;
    margin-bottom: 10px;
    --clippy: polygon(0 0, 0 0, 0 100%, 0% 100%);
    --clippy2: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: all 0.3s ease;
}

.botonEnlace:hover {
    --clippy: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --clippy2: polygon(100% 0, 0 0, 0 100%, 100% 100%);
}

.botonEnlace::after {
    content: "";
    display: block;
    background: var(--colorPrimary);
    width: 100%;
    margin-top: 3px;
    height: 3px;
    clip-path: var(--clippy);
    transition: clip-path .4s;
}

.botonEnlace::before {
    content: "";
    display: block;
    background: var(--colorPrimary);
    width: 100%;
    margin-top: 3px;
    height: 3px;
    clip-path: var(--clippy2);
    transition: clip-path .4s;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #414141;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contenedor-footer {
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.content-foo {
    text-align: center;
    transition: 0.5s all;
    padding: 20px;
    text-decoration: none;
}

.content-foo:hover {
    transform: scale(1.05);
}

.content-foo h4 {
    color: #fff;
    border-bottom: 3px solid var(--colorSecondary);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 18px;
}

.content-foo p {
    color: #ccc;
    font-size: 14px;
}

.titulo-final {
    font-size: 24px;
    color: var(--colorSecondary);
}

.footer__social {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.footer__img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer__img:hover {
    transform: scale(1.2);
}

.imgSvg {
    position: relative;
    top: 6px;
    margin-right: 5px;
}

/* CTA Button */
.cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--colorSecondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta:hover {
    background: var(--colorActive);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(97, 187, 70, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 1200px) {
    .planes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 900px) {
    header {
        background-position: center;
    }

    .contenedor-sobre-nosotros {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos {
        width: 90%;
    }

    .imagen-about-us {
        width: 90%;
    }

    /* Planes */
    .planes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 10px;
    }

    .plan-card {
        padding: 35px 25px;
        min-height: auto;
    }

    .plan-speed {
        font-size: 2.2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    /* Cards */
    .cards {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card {
        width: 90%;
        margin-bottom: 20px;
    }

    /* Productos */
    .tabla {
        width: 60%;
    }

    .velocidad {
        width: 28%;
        min-width: 150px;
    }

    .nav_logo {
        width: 75px;
        height: 40px;
    }
}

@media screen and (max-width: 628px) {
    .titulo, .titulo-ccv {
        font-size: 1.6em;
    }

    .enlace_ img {
        height: 200px;
    }

    .enlace_:nth-child(2) {
        width: 90%;
    }

    .enlacesInteres {
        min-height: 1080px;
    }

    .nav_label {
        display: block;
        cursor: pointer;
        align-items: center;
        padding-top: 5px;
    }

    .nav_menu {
        position: fixed;
        top: 70px;
        bottom: 0;
        background-image: linear-gradient(to top, #00c6fb 0%, #005bea 100%);
        width: 100%;
        left: 0px;
        display: flex;
        justify-content: start;
        flex-direction: column;
        align-items: center;
        clip-path: circle(0 at center);
        transition: clip-path 0.5s;
        padding-top: 30px;
    }

    .nav_input:checked + .nav_menu {
        clip-path: circle(100% at center);
    }

    .nav_img {
        width: 30px;
        height: 30px;
    }

    .nav_logo {
        width: 65px;
        height: 35px;
        object-fit: cover;
    }

    .bgDinamico {
        display: none;
    }

    .clientes {
        min-height: 1200px;
    }

    .clientes_ {
        min-height: 1200px;
        position: inherit;
    }
    .velocidad h3{
        font-size: 12px;
    }

        .velocidad h6{
        font-size: 10px;
    }
}

@media screen and (max-width: 500px) {
    .textos-header h1 {
        font-size: 40px;
    }

    .textos-header h2 {
        font-size: 20px;
    }

    .imagen-about-us {
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos {
        width: 95%;
    }

    /* Planes */
    .plan-name {
        font-size: 1.3rem;
    }

    .plan-speed {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2.2rem;
    }

    .plan-button {
        padding: 13px 22px;
        font-size: 0.9rem;
    }

    .plan-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    /* Cards */
    .cards .card {
        height: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cards .card img {
        width: 90px;
        height: 90px;
    }

    /* Footer */
    .contenedor-footer {
        flex-direction: column;
        border: none;
    }

    .content-foo {
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4 {
        border: none;
    }

    .titulo-final {
        font-size: 20px;
    }
}