/* INDEX.CSS */
/*
 * PÁGINA: Hoja de Estilos Principal (Index CSS) - As Tech Computer
 * PROPÓSITO: Establecer la identidad visual base y estructurar la presentación de la página de aterrizaje (Landing Page) y otras vistas afines de la plataforma corporativa.
 * FUNCIONALIDADES:
 * - Centralización de la paleta de colores corporativa, tipografía, bordes y sombras globales mediante el uso de variables CSS (:root) para garantizar consistencia.
 * - Definición de animaciones fluidas (@keyframes) para la carga dinámica de secciones (fadeUp, fadeIn, heroEnter), mejorando la experiencia visual del usuario (UX).
 * - Estructuración de la sección principal (Hero) con imágenes de fondo, superposición de gradientes y elementos tipográficos de alto impacto.
 * - Formateo visual de tarjetas de servicio interactivas y bloques informativos (Identidad, Valores Corporativos y CEO) empleando el sistema de cuadrículas (CSS Grid).
 * - Adaptabilidad total a dispositivos móviles mediante Media Queries, asegurando que las cuadrículas se colapsen a una sola columna de forma inteligente y fluida.
 */

/* =========================================
   1. VARIABLES GLOBALES Y RESET DE ESTILOS
   ========================================= */
/**
 * Se declaran las variables globales del sistema para unificar los 
 * colores, sombras y radios de borde en todo el sitio web. Se aplica 
 * un reseteo general y un comportamiento de desplazamiento suave (smooth).
 */
:root {
    --color-fondo: #f5f5f7;
    --color-blanco: #ffffff;
    --color-texto: #1d1d1f;
    --color-texto-secundario: #5f5f63;
    --color-primario: #52073a;
    --color-acento: #e06c00;
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.04);
    --sombra-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --radio-borde: 20px;
}

* {
    box-sizing: border-box;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* =========================================
   2. CONTENEDORES Y ANIMACIONES BASE
   ========================================= */
/**
 * El sistema define un contenedor maestro que delimita el ancho de la 
 * información y despliega una animación de aparición en cascada al cargar.
 */
.contenedor-max {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    animation: fadeInSection 1.2s ease-out;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-seccion {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: #2d2d31;
    letter-spacing: -0.8px;
}

/* =========================================
   3. SECCIÓN HERO (PORTADA PRINCIPAL)
   ========================================= */
/**
 * Diseño del bloque de bienvenida que ocupa toda la altura de la ventana (100vh). 
 * Se integra una imagen de fondo con superposición de gradientes radiales 
 * y lineales para garantizar la legibilidad del texto en primer plano.
 */
.hero-wrapper {
    width: 100%;
    min-height: 100vh;
    background: url("../img/fondo_index4.png") center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-astech {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 1000px;
    width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

.hero-texto {
    flex: 1.2;
    padding-right: 10px;
    padding-left: 80px;
    animation: fadeUp 1s ease forwards;
    text-align: center;
}

.badge-premium {
    background-color: #1d1d1f;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-astech h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-acento);
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.hero-astech p.subtitulo {
    font-size: 1.4rem;
    color: var(--color-primario);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-astech p.destacado {
    font-size: 1.8rem;
    font-weight: 400;
    color: #696969de;
    margin-bottom: 15px;
}

.hero-wrapper {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: heroEnter 0.9s ease-out forwards;
}

/* El sistema aplica la animación a los hijos del Hero para una entrada fluida */
.hero-astech,
.hero-texto,
.hero-imagen,
.hero-botones,
.destacado {
    opacity: 0;
    transform: translateY(2px);
    animation: heroChildEnter 0.9s ease-out forwards;
    animation-delay: 0.2s;
}

/* Keyframes de animación estructurales */
@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroChildEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   4. BOTONES PRINCIPALES Y DE NAVEGACIÓN
   ========================================= */
/**
 * Estilización de los llamados a la acción (CTAs). Incorpora efectos 
 * de escala ligera y cambios de color al interactuar con el puntero.
 */
.hero-botones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn-comprar {
    background-color: var(--color-primario);
    color: white;
    padding: 5px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.3s, transform 0.3s;
}

.btn-comprar:hover {
    background-color: #c55a02;
    transform: scale(1.05);
}

.enlace-mas {
    color: #444;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.enlace-mas:hover {
    color: var(--color-acento);
}

/* =========================================
   5. IMÁGENES HERO Y TARJETAS DE SERVICIO
   ========================================= */
/**
 * Se implementa la cuadrícula de tarjetas de servicios, configurando 
 * efectos de elevación tridimensional (translateY y box-shadow) que 
 * simulan interactividad al momento de colocar el cursor por encima.
 */
.hero-imagen {
    flex: 0.8;
    display: flex;
    margin-top: 60px;
    animation: fadeIn 1.5s ease forwards;
    justify-content: center;
    align-items: center;
}

.hero-imagen img {
    width: 70%;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s ease;
}

.hero-imagen img:hover {
    transform: translateY(-8px);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;

}

.astech-card {
    background-color: var(--color-blanco);
    border-radius: var(--radio-borde);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
    padding-bottom: 30px;
        border:1px solid #c55a0218;
   
}

.astech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
}

.astech-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #eee;
}

.astech-card-body {
    padding: 30px 20px 0;
}

.astech-card-body h3 {
    font-size: 1.5rem;
    color: var(--color-texto);
    margin-bottom: 10px;
    font-weight: 700;
}

.astech-card-body p {
    color: var(--color-texto-secundario);
    font-size: 1rem;
    margin-bottom: 20px;
}

.astech-card .btn-comprar {
    padding: 10px 25px;
    font-size: 1rem;
}

/* =========================================
   6. SECCIONES: IDENTIDAD Y VALORES CORPORATIVOS
   ========================================= */
/**
 * Arquitectura visual de los bloques informativos institucionales, 
 * apoyada en CSS Grid para alinear de forma armónica los textos 
 * descriptivos, las fotografías y la iconografía.
 */
.seccion-about {
    background-color: var(--color-blanco);
    padding: 50px 20px;
}

.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.texto-about h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.texto-about p {
    font-size: 1.15rem;
    color: var(--color-texto-secundario);
    margin-bottom: 20px;
}

.imagen-about img {
    width: auto;
    height: 450px;
   
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra-hover);
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.valor-item {
    background-color: var(--color-blanco);
    padding: 40px 30px;
    border-radius: var(--radio-borde);
    text-align: center;
    box-shadow: var(--sombra-suave);
    border:1px solid #c55a0244;
    transition: transform 0.4s ease, box-shadow 0.4s ease;

 
    
}
.valor-item:hover{
 transform: translateY(-10px);

}

.valor-item i {
    font-size: 2.5rem;
    color: var(--color-texto);
    margin-bottom: 20px;
}

.valor-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.valor-item p {
    color: var(--color-texto-secundario);
    font-size: 0.95rem;
}

/* =========================================
   7. SECCIÓN DEL FUNDADOR (CEO)
   ========================================= */
/**
 * Renderización de la tarjeta de presentación directiva. 
 * Crea una caja estéticamente dividida entre la fotografía 
 * del CEO y su mensaje/cita (blockquote).
 */
.seccion-ceo {
    background-color: var(--color-fondo);
    padding: 80px 20px;
}

.caja-ceo {
    background-color: var(--color-blanco);
    border-radius: var(--radio-borde);
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        border:1px solid #c55a0223
}
.caja-ceo:hover{
        transform: translateY(-10px);
}

.ceo-img {
    flex: 1;
}

.ceo-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.ceo-texto {
    flex: 1.5;
    padding: 50px;
}

.ceo-texto blockquote {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-texto);
    margin-bottom: 20px;
    line-height: 1.5;
}
.bloque{
    width:90%;
  margin-left: 90px;
   margin-bottom: 100px;
   

}

/* =========================================
   8. ANIMACIONES Y KEYFRAMES SECUNDARIOS
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================================
   9. DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================= */
/**
 * Instrucciones críticas de adaptabilidad. El sistema garantiza que en 
 * dispositivos móviles o tabletas (resolución menor a 900px), los 
 * bloques de información, textos hero y cuadrículas se presenten 
 * apilados verticalmente de forma óptima y legible.
 */
@media (max-width: 900px) {
    .hero-astech {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero-texto {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .hero-texto h1 {
        font-size: 3.5rem;
    }
    .hero-botones {
        justify-content: center;
      
    }
    .grid-about,
    .caja-ceo,
    .contenedor-pie {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .caja-ceo {
        flex-direction: column-reverse;
    }
    .ceo-texto {
        padding: 30px;
    }
}
@media screen and (max-width: 768px) {

    /* =========================
        HERO
    ========================= */

    .hero-wrapper {
        padding: 20px 15px;
    }

    .hero-astech {
        width: 100%;
        padding: 20px 10px;
    }

    

    .hero-imagen {
        width: 100%;
        margin-top: 20px;
        padding: 0 15px;
    }

    .hero-imagen img {
        width: 100%;
        max-width: 500px;
    }

    .destacado {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
        margin-top: 20px;
    }


    /* =========================
        ABOUT
    ========================= */

    .grid-about {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .texto-about {
        width: 100%;
        text-align: center;
    }

    .texto-about h2 {
        font-size: 1.8rem;
    }

    .texto-about p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .imagen-about {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .imagen-about img {
        width: 100%;
        max-width: 500px;
        height: auto;
        border-radius: 12px;
    }

    /* =========================
        CARDS SERVICIOS
    ========================= */

    .grid-cards {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .astech-card {
        width: 100%;
        padding:20px;
        justify-content: center;
        align-items: center;
    }

    .astech-card img {
        width: 98%;
        height: auto;
        justify-content: center;
        align-self: center;
        
    }

    .astech-card-body {
        padding: 20px;
        text-align: center;
    }
    .contenedor-max{
        margin:0!important;
        margin-top: -20px;
    }

    .astech-card-body h3 {
        font-size: 1.2rem;
    }

    .astech-card-body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* =========================
        FILOSOFÍA / VALORES
    ========================= */

    .grid-valores {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .valor-item {
        text-align: center;
        padding: 20px;
    }

    .valor-item i {
        font-size: 2rem;
    }

    /* =========================
        CEO
    ========================= */

    .caja-ceo {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 25px 15px;
        text-align: center;
    }

    .ceo-texto {
        width: 100%;
    }

    .ceo-texto blockquote {
        font-size: 1rem;
        line-height: 1.7;
    }

    .ceo-img {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ceo-img img {
        width: 70%;
        height: auto;
    }

    /* =========================
        TITULOS
    ========================= */

    .titulo-seccion {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 10px;
    }

    /* =========================
        CONTENEDORES GENERALES
    ========================= */

    .contenedor-max,
    .seccion-about,
    .seccion-valores,
    .seccion-ceo {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        margin:0;
        padding:1%;
    }

    /* =========================
        TEXTO GENERAL
    ========================= */

    p {
        word-break: break-word;
    }

    /* =========================
        BOTONES
    ========================= */

    .btn-comprar {
        padding: 12px 20px;
        font-size: 1rem;
    }

}
