﻿/* =========================================
   1. VARIABLES & CONFIGURACIÓN
   ========================================= */
:root {
    /* Identidad de Marca */
    --brand-color: #0a9d65; /* Verde serio */
    --neon-accent: #00ff9d; /* Verde neón */
    --brand-glow: rgba(10, 157, 101, 0.2);
    --brand-shadow: rgba(10, 157, 101, 0.4);
    /* UI / Layout */
    --header-height: 100px; /* Altura exacta de tu Navbar */
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(10, 157, 101, 0.3);
    /* Textos */
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

/* =========================================
   2. BASE & RESET
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    color: #000;
    overflow-x: hidden;
    /* Aseguramos que el contenido no quede oculto por el navbar fijo si fuera necesario */
    padding-top: var(--header-height);
    margin: 0;
}

/* Ajuste para anclas internas (para que el título no quede tapado por el menú al hacer scroll) */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* =========================================
   3. TIPOGRAFÍA & HERO TEXT
   ========================================= */
.hero-section {
    padding: 40px 0;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    background: linear-gradient(to right, #000, var(--brand-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--brand-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 10px 0 100px;
    }

    .main-title {
        font-size: 4.5rem;
    }
}

/* =========================================
   4. SECCIÓN CARRUSEL (CORREGIDO)
   ========================================= */
.carruselsection {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
    /* NOTA: Como ya pusimos padding-top en el body, 
       no necesitamos margin-top aquí a menos que quieras
       separarlo más del menú. Si quieres que pegue con el menú:
       margin-top: 0; 
    */
    margin-top: 0;
}

.carousel-inner {
    width: 100%;
    border-radius: 0 !important;
}

.carousel-item {
    width: 100%;
}

    .carousel-item img {
        width: 100%;
        object-fit: cover; /* Asegura que la imagen llene sin deformarse */
        object-position: center;
        border-radius: 0 !important;
        display: block;
        /* Estilo opcional: Desvanecimiento inferior */
        mask-image: linear-gradient(black 85%, transparent);
        -webkit-mask-image: linear-gradient(black 85%, transparent);
        /* --- ALTURA RESPONSIVA --- */
        /* --- ALTURA RESPONSIVA --- */
        /* Móvil: Dejamos la altura en automático para que no recorte nada */
        height: auto;
        min-height: auto;
    }

/* Tablet y Desktop */
@media (min-width: 992px) {
    .carousel-item img {
        /* MAGIA: Altura de pantalla MENOS la altura de tu menú */
        height: calc(110vh - var(--header-height));
        max-height: 1080px; /* Límite para pantallas ultra gigantes */
    }
}
/* --- AJUSTE DE MARGEN SOLO PARA MÓVIL --- */
@media (max-width: 991px) {
    .carruselsection {
        /* Separa el carrusel del menú superior */
        margin-top: 20px;
        /* Opcional: Separa el carrusel del contenido de abajo */
        margin-bottom: 20px;
        /* Opcional: Si quieres que la imagen no toque los bordes laterales */
        /* margin-left: 15px; */
        /* margin-right: 15px; */
    }
    .main-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 0 5px;
    border: none;
    z-index: 10; /* Aseguramos que estén encima de la imagen */
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--brand-color);
    box-shadow: 0 0 10px var(--brand-color);
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(10, 157, 101, 0.8);
    border-radius: 50%;
    padding: 25px; /* Ajustado para que no sea excesivo */
    background-size: 50%;
}

/* =========================================
   5. COMPONENTES: CRISTAL & PANELES
   ========================================= */
.glass-panel {
    background: #fff;
    border: 2px solid #0a9d65;
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    color: #000 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: justify;
    font-weight: 500;
}

    .glass-panel:hover {
        transform: scale(1.01);
        border-color: var(--brand-color);
        box-shadow: 12px 10px 20px rgba(0, 0, 0, 0.15);
    }

.why-box {
    background-image: url('/img/pages/LandingBanner/BannerLandingVerde.png');
    background-size: cover; /* Cambiado a cover para mejor ajuste */
    background-position: center;
    border: 1px solid var(--brand-color);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    color: #fff;
}

@media (min-width: 768px) {
    .why-box {
        padding: 3rem;
    }
        .glass-panel{
        height:100% !important;
    }
}

/* =========================================
   6. COMPONENTES: AGENT CARDS (M31)
   ========================================= */
.agent-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.agent-card {
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    height: 100%;
    transition: all 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.agent-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--neon-accent);
    color: var(--neon-accent);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
    flex-shrink: 0; /* Evita que se aplaste */
}

.agent-card img {
    height: 100%;
    object-fit: contain;
    margin: 1rem 0;
    width: auto !important;
    max-width: 100%;
    border-radius: 70px;
}

.agent-card p.small {
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1.5rem !important;
}

/* Fondos de Tarjetas */
.type-dynamics, .type-aspel, .type-cloud, .type-web {
    background-image: url('/img/pages/FondoCards/FondoCardAzulClaro.jpg');
}

/* Efectos Hover (Solo dispositivos con puntero) */
@media (hover: hover) {
    .agent-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

        .agent-card:hover .btn-access {
            background: #fff;
            color: var(--brand-color);
            box-shadow: 0 0 15px var(--brand-glow);
        }
}

.btn-access {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    border: 1px solid var(--neon-accent);
    color: #fff;
    background: var(--brand-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   7. COMPONENTES: TIMELINE
   ========================================= */
.timeline-steps {
    position: relative;
    padding: 2rem 0;
}

.step-item {
    margin-bottom: 2rem;
}

.step-circle {
    width: 35px;
    height: 35px;
    background: var(--brand-color);
    border-radius: 50%;
    line-height: 35px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 10px var(--brand-color);
    text-align: center;
}

.step-content {
    color: #000;
}

/* Desktop Timeline */
@media (min-width: 768px) {
    .timeline-flex {
        display: flex;
        justify-content: space-between;
        position: relative;
    }

        .timeline-flex::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background: rgba(10, 157, 101, 0.3); /* Color ajustado para visibilidad */
            z-index: -1;
        }

    .step-item {
        text-align: center;
        flex: 1;
        padding: 0 10px;
    }

    .step-circle {
        margin: 0 auto 15px;
    }
}

/* Mobile Timeline */
@media (max-width: 767px) {
    .step-item {
        display: flex;
        align-items: flex-start;
    }

    .step-circle {
        margin-right: 15px;
        flex-shrink: 0;
    }

    .step-content {
        text-align: left;
    }
}

/* =========================================
   8. COMPONENTES: TABLAS & UTILIDADES
   ========================================= */
.table-container-plan {
    border: 2px solid var(--brand-color);
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 157, 101, 0.1);
}

.tablepersonal {
    margin-bottom: 0 !important;
    background: var(--brand-color) !important;
    color: #fff !important;
    width: 100%;
}

    .tablepersonal thead {
        background-color: rgba(10, 157, 101, 0.05);
        border-bottom: 1px solid rgba(10, 157, 101, 0.2) !important;
    }

    .tablepersonal th {
        color: #1a1a1a;
        padding: 1.2rem;
    }

    .tablepersonal td {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

/* Helpers / Badges */
.tech-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.benefit-icon {
    font-size: 2rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

.iconos {
    background: var(--brand-color);
    border-radius: 25px;
    padding: 10px;
}

.logo {
    width: 90%;
    border-radius: 45px;
    max-width: 300px; /* Seguridad para que no explote */
}
