/* --- ESTILOS BASE Y FONDO --- */
body {
    margin: 0;
    padding: 0;
    background-color: #0d1b2a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* --- VIDEO DE FONDO VIMEO --- */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#video-background iframe {
    width: 177.77vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

/* --- ESTRUCTURA DE CONTENIDO --- */
#logo-container,
.contenedor-principal,
#slider-seccion,
#ventajas-competitivas,
#seccion-nuevos-iconos,
footer {
    position: relative;
    z-index: 10;
}

#logo-container {
    text-align: center;
    padding-top: 5vh;
    color: white;
}

/* LOGO PRINCIPAL */
#logo {
    width: 120px;
    height: auto;
    display: inline-block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* TEXTO ENCABEZADO */
#logo-container h1 {
    color: white;
    text-shadow: none;
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

#logo-container h2 {
    color: white;
    font-size: 1.3em;
    margin: 10px 0 0;
    text-shadow: none;
    font-weight: 400;
}

/* --- ICONOS DE SERVICIO SUPERIORES --- */
.contenedor-principal {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 50px;
    text-align: center;
    color: white;
    padding-bottom: 50px;
}

.iconos-flotantes {
    display: flex;
    justify-content: space-around;
    padding-top: 50px;
}

.servicio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    cursor: pointer;
}

.icono-flotante {
    font-size: 4em;
    color: #C3C3C3;
    transition: transform 0.3s ease-in-out, color 0.3s ease;
}

.servicio-item:hover .icono-flotante {
    color: #ffffff;
    transform: translateY(-10px) scale(1.1);
}

/* Título y Flecha */
.titulo-icono-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.titulo-icono {
    color: white;
    font-weight: 600;
    margin-right: 8px;
}

/* Flecha en verde (#4CAF50) - Solicitud anterior */
.indicador-flecha {
    color: #4CAF50;
    font-size: 0.8em;
    transition: transform 0.3s ease-in-out;
}

.servicio-item:hover .indicador-flecha {
    transform: translateY(3px);
}

.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* --- TEXTO DESPLEGABLE (SERVICIOS) --- */
.texto-desplegable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease;
    color: #a0a0a0;
    font-size: 1em;
    line-height: 1.5;
    opacity: 0;
    padding-top: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 0 10px;
}

.servicio-item.active .texto-desplegable {
    max-height: 200px;
    opacity: 1;
    padding: 10px;
}

@media (min-width: 769px) {
    .servicio-item:hover .texto-desplegable {
        max-height: 200px;
        opacity: 1;
        padding: 10px;
    }
}

.texto-desplegable a {
    color: #C3C3C3;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    border: 1px solid #C3C3C3;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.texto-desplegable a:hover {
    background-color: #C3C3C3;
    color: #0d1b2a;
}

/* --- PLANES DE DISEÑO WEB / VIDEO IA --- */
#planes-web,
#planes-video {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 70px;
    color: white;
}

.planes-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.planes-etiqueta {
    color: #4CAF50;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.planes-intro h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.8em, 4vw, 2.6em);
}

.planes-intro p,
.plan-card p,
.planes-nota {
    color: #c4cbd1;
    line-height: 1.55;
}

.planes-intro p {
    margin: 0;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: rgba(13, 27, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.plan-card.recomendado {
    border: 2px solid #FF9800;
    transform: translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: -13px;
    right: 18px;
    padding: 5px 10px;
    border-radius: 3px;
    background: #FF9800;
    color: #151515;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-icon {
    color: #4CAF50;
    font-size: 1.7em;
}

.plan-card:nth-child(2) .plan-icon {
    color: #FF9800;
}

.plan-card:nth-child(3) .plan-icon {
    color: #03A9F4;
}

.plan-card h3 {
    margin: 14px 0 4px;
    font-size: 1.45em;
}

.plan-card p {
    min-height: 50px;
    margin: 0 0 20px;
    font-size: 0.95em;
}

.plan-price {
    margin-bottom: 18px;
    color: white;
    font-size: 2em;
    font-weight: 800;
}

.plan-price small {
    display: block;
    margin-top: 3px;
    color: #9ba7af;
    font-size: 0.42em;
    font-weight: 400;
}

.plan-features {
    display: grid;
    gap: 11px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: #e7ebee;
    font-size: 0.92em;
}

.plan-features li::before {
    margin-right: 8px;
    color: #4CAF50;
    content: "✓";
    font-weight: 800;
}

.plan-card a {
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.plan-card a:hover {
    background: white;
    color: #0d1b2a;
}

.planes-nota {
    margin: 24px auto 0;
    font-size: 0.82em;
    text-align: center;
}

.planes-nota strong {
    color: white;
}

/* --- TESTIMONIOS --- */
#seccion-testimonios {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 70px;
    color: white;
}

.testimonios-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

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

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

.testimonio-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
    background: rgba(13, 27, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.testimonio-estrellas {
    color: #FF9800;
    font-size: 0.95em;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonio-texto {
    flex-grow: 1;
    color: #e7ebee;
    font-size: 0.92em;
    line-height: 1.55;
    margin: 0 0 18px;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
}

.testimonio-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1B2A3F;
    border: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: 800;
    color: #4CAF50;
    flex-shrink: 0;
}

.testimonio-nombre {
    font-size: 0.95em;
    font-weight: 700;
    color: white;
}

.testimonio-cargo {
    font-size: 0.8em;
    color: #9ba7af;
}

@media (max-width: 900px) {
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===================================== */
/* --- ESTILOS SLIDER DE CLIENTES --- */
/* ===================================== */

#slider-seccion {
    padding: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 0;
}

#slider-seccion .mySwiper {
    padding: 0;
    margin: 0;
}

#slider-seccion .swiper-wrapper {
    align-items: center;
}

#slider-seccion h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 30px;
    font-weight: 600;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.swiper-pagination {
    position: static;
    margin-top: 6px;
    padding: 0;
    line-height: 1;
}

.swiper-slide img:hover {
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    background-color: #C3C3C3;
}

.swiper-pagination-bullet-active {
    background-color: white;
}

/* Quitar borde blanco de los links solo en el slider */
#seccion-nuevos-iconos #slider-seccion a {
    border: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    width: auto;
    border-radius: 8px;
    background: transparent;
}

#seccion-nuevos-iconos #slider-seccion a:hover {
    background-color: transparent;
    color: inherit;
    border-color: transparent;
}

/* ===================================== */
/* --- SECCIÓN PROYECTOS / VENTAJAS --- */
/* ===================================== */

#ventajas-competitivas,
#seccion-nuevos-iconos {
    padding: 60px 0 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#seccion-nuevos-iconos .lista-iconos-inferior {
    margin-bottom: 0;
    padding-bottom: 0;
}

.lista-iconos-inferior {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.item-icono-inferior {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 10px 0 0;
    border-bottom: none;
    text-align: center;
}

.icono-inferior {
    font-size: 2.5em;
    color: #C3C3C3;
    margin-right: 0;
    margin-bottom: 15px;
}

.texto-inferior {
    flex-grow: 1;
    text-align: center;
}

.texto-inferior h2 {
    font-size: 1.5em;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: white;
}

.texto-inferior p {
    font-size: 1em;
    margin: 0;
    line-height: 1.4;
    color: #a0a0a0;
}

/* --- ESTILOS PARA ENLACES INFERIORES (PROYECTOS) --- */
#ventajas-competitivas a,
#seccion-nuevos-iconos a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 15px;
    border: 2px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#ventajas-competitivas a:hover,
#seccion-nuevos-iconos a:hover {
    background-color: white;
    color: #0d1b2a;
    border-color: white;
}

/* --- FOOTER --- */
footer {
    margin-top: 100px;
    padding: 20px 0;
    color: #C3C3C3;
    text-align: center;
    font-size: 1em;
    border-top: 1px solid rgba(195, 195, 195, 0.1);
    /* ESPACIO AGREGADO */
    margin-bottom: 75vh;
}

/*
========================================
MEDIA QUERY: PANTALLAS PEQUEÑAS (<= 768px)
========================================
*/
@media (max-width: 768px) {

    .iconos-flotantes {
        flex-direction: column !important;
        align-items: center !important;
        padding-top: 30px;
    }

    .iconos-flotantes .servicio-item {
        width: 90% !important;
        max-width: 350px !important;
        margin-bottom: 40px !important;
        text-align: center;
    }

    #logo-container h1 {
        font-size: 1.8em;
    }

    #logo-container h2 {
        font-size: 1em;
    }

    .swiper-slide img {
        width: 80px;
        height: 80px;
    }

    .lista-iconos-inferior {
        flex-direction: column;
    }

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

    .plan-card.recomendado {
        transform: none;
    }

    .item-icono-inferior {
        width: 100%;
        padding-bottom: 40px;
        flex-direction: column;
        text-align: center;
        border-bottom: 1px solid rgba(195, 195, 195, 0.1);
    }

    .item-icono-inferior:last-child {
        border-bottom: none;
    }

    .icono-inferior {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .texto-inferior {
        text-align: center;
    }

    /* Ajuste del margen inferior del footer para móviles */
    footer {
        margin-bottom: 70vh;
    }
}
