/* =============================================
   ESTILOS MEJORADOS PARA HOME
   ============================================= */

/* -------------------------------
   Variables de color mejoradas
   ------------------------------- */   
:root {
    --color-primario: #4cc9f0;
    --color-secundario: #4361ee;
    --color-terciario: #3a0ca3;
    --color-texto: #ffffff;
    --color-fondo: rgba(26, 26, 46, 0.8);
    --sombra-destacado: 0 0 15px rgba(76, 201, 240, 0.7);
    --sombra-boton: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------
   Contenedor Principal Mejorado
   ------------------------------- */
.contenedor-especial {
    position: absolute;
    top: 0px;    /* Distancia desde arriba */
    left: 30px;    /* Distancia desde la izquierda */
    padding: 2rem;
    border-radius: 15px;
}

/* -------------------------------
   Estilo - Titulo
   ------------------------------- */
.contenedor-especial h1 {
    font-size: 36px;
    color: white;
    margin: 0 0 0px 0;
}

/* -------------------------------
   Estilo - Sub-Titulo
   ------------------------------- */
.contenedor-especial .subtitulo {
    font-size: 20px;
    color: white;
    margin: 0 0 10px 0;
    max-width: 500px;
}

/* -------------------------------
   Botones Mejorados
   ------------------------------- */
.botones {
    display: flex;
    gap: 10px; 
    margin-top: 15px;
}

/* -------------------------------
   Estilo Base
   ------------------------------- */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px; /* Más compacto */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px; /* Texto más pequeño */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    background-color: rgba(26, 26, 31, 0.9);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent; /* Borde más fino */
    min-width: 120px; /* Ancho mínimo */
}

/* -------------------------------
   Colores
   ------------------------------- */
.boton-primario {
    color: #4DFF4D;
    border-left-color: #4DFF4D;
}

.boton-secundario {
    color: #00B4FF;
    border-left-color: #00B4FF;
}

/* -------------------------------
   Effecto Hover
   ------------------------------- */
.boton:hover {
    background-color: rgba(34, 34, 40, 0.95);
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* -------------------------------
   Effecto Barra Luminoza
   ------------------------------- */
.boton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.boton:hover::after {
    left: 100%;
}

/* -------------------------------
   Iconos
   ------------------------------- */
.boton i {
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}


/* -------------------------------
   Texto Introducion
   ------------------------------- */
.intro-texto {
    margin: 25px 0 35px;
    text-align: center;
    margin-top: 100px;
}

.intro-texto p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 12px;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* -------------------------------
   Texto destacado sin fondo ni cuadro
   ------------------------------- */
.intro-texto .destacado {
    font-size: 1.3rem;
    color: #dadada;
    font-weight: 500;
    line-height: 1.6;
    display: inline-block;
    position: relative;
    padding: 0 5px;
    margin: 20px 0;
}

/* -------------------------------
   Efecto subrayado animado
   ------------------------------- */
.intro-texto .destacado::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #cacaca, rgba(76, 201, 240, 0));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.intro-texto .destacado:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* -------------------------------
   Efecto de brillo al pasar el mouse
   ------------------------------- */
.intro-texto .destacado:hover {
    text-shadow: 0 0 10px rgba(155, 155, 155, 0.4);
}


/* -------------------------------
   Botones Mejorados
   ------------------------------- */
.caracteristicas {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 100px; /* Separación superior existente */
    margin-bottom: 100px; /* Nueva separación inferior */
}

/* -------------------------------
   Tarjeta Individual
   ------------------------------- */
.caracteristica {
    flex: 1;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* -------------------------------
   Colores de Borde
   ------------------------------- */
.caracteristica:nth-child(1) {
    border-left-color: #050505; /* Verde para Soporte */
}

.caracteristica:nth-child(2) {
    border-left-color: #000000; /* Naranja para Actualizaciones */
}

.caracteristica:nth-child(3) {
    border-left-color: #000000; /* Azul para Desarrollo */
}

/* -------------------------------
   Titulo de Caracteristicas
   ------------------------------- */
.caracteristica h3 {
    color: white;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.caracteristica h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: currentColor;
}

/* -------------------------------
   Texto de Caracteristicas
   ------------------------------- */
.caracteristica p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

/* -------------------------------
   Responsive
   ------------------------------- */
@media (max-width: 768px) {
    /* Contenedor Principal - Centrado perfecto */
    .contenedor-especial {
        position: relative;
        width: 92%;
        max-width: 500px; /* Máximo ancho para mejor lectura */
        margin: 20px auto;
        padding: 1.8rem 1.2rem;
        left: 0;
        right: 0;
        transform: none;
        box-sizing: border-box;
    }

    /* Textos - Centrado y jerarquía clara */
    .contenedor-especial h1 {
        font-size: 2rem;
        text-align: center;
        margin: 0 auto 15px;
        line-height: 1.2;
    }

    .contenedor-especial .subtitulo {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto 25px;
        padding: 0 10px;
        max-width: 100%;
    }

    /* Botones - Centrados y táctiles */
    .botones {
        flex-direction: column;
        gap: 15px;
        margin: 30px auto;
        width: 100%;
        max-width: 300px;
    }

    .boton {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }

    /* Sección Intro - Mejor espaciado */
    .intro-texto {
        margin: 50px auto;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .intro-texto p {
        font-size: 1.05rem;
        text-align: center;
    }

    .intro-texto .destacado {
        font-size: 1.2rem;
        display: block;
        margin: 25px auto;
        text-align: center;
    }

    /* Características - Tarjetas bien centradas */
    .caracteristicas {
        flex-direction: column;
        gap: 25px;
        margin: 60px auto;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .caracteristica {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 20px 15px;
    }

    /* Efectos hover para móviles */
    @media (hover: none) {
        .boton:hover, .caracteristica:hover {
            transform: none;
        }
    }
}