/* AL INICIO del archivo CSS, ANTES de todo */
/* Importar fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Semi+Expanded:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --blue-pow: #0B1C3E;
    --blue-accent: #0047FF;
    --blue-light: #1b4268;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --transition: all 0.3s ease;
}

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

body { 
    font-family: 'Encode Sans Semi Expanded', sans-serif; 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* ============================================
   SECCIÓN 01: HERO SLIDER - COLORES PLANOS
   ============================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    right: 0;
    width: 55%;
    height: 100%;
    background: rgba(11, 28, 62, 0.92); /* Color plano sin degradado */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    z-index: 2;
}

.hero-content {
    max-width: 480px;
    animation: slideInRight 0.8s ease-out;
}

.hero-title {font-size:28px!important;}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-number {
    display: inline-block;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Controles del slider */
/* ============================================
   BOTONES - ESTILOS UNIFICADOS
   ============================================ */

/* Clase base para todos los botones */
.btn,
.hero-prev,
.hero-next,
.btn-outline,
.btn-submit,
.btn-segmentos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background: var(--blue-pow);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(11, 28, 62, 0.2);
    text-align: center;
    gap: 10px;
}

.btn:hover,
.hero-prev:hover,
.hero-next:hover,
.btn-outline:hover,
.btn-submit:hover,
.btn-segmentos:hover {
    background: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.3);
}

.btn:active,
.hero-prev:active,
.hero-next:active,
.btn-outline:active,
.btn-submit:active,
.btn-segmentos:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 71, 255, 0.2);
}

/* Variante: Botones de control del slider (Hero) */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    padding: 0;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--blue-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-prev {
    left: 40px;
}

.hero-next {
    right: 40px;
}

.hero-prev i,
.hero-next i {
    font-size: 1.5rem;
    color: var(--blue-pow);
    transition: var(--transition);
}

.hero-prev:hover i,
.hero-next:hover i {
    color: white;
}

/* Dots del hero */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 10px;
    border-color: var(--blue-accent);
}

/* ============================================
   SECCIÓN 02: SOLUCIONES - 5 COLUMNAS CON HOVER ORIGINAL
   ============================================ */

.solutions-section,
.products-section {
    position: relative;
}

.section-number {
    position: absolute;
    top: 30px;
    left: 5%;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(11, 28, 62, 0.08);
    line-height: 1;
    z-index: 0;
}

.section-number.light {
    color: rgba(255, 255, 255, 0.08);
}

.section-padding { 
    padding: 100px 5%;
    position: relative;
}

.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
    font-size: 2.5rem; 
    color: var(--blue-pow);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--blue-accent); /* Color plano */
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title.light { 
    color: var(--white); 
}

.bg-dark { 
    background-color: var(--blue-pow); /* Color plano sin degradado */
}

/* Grid de 5 columnas para servicios */
.grid-solutions-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* HOVER ORIGINAL DE LA VERSIÓN BASE */
.card-service {
    background: white;
    border: 1px solid #ddd;
    padding: 40px 25px;
    text-align: center;
    border-radius: 30px 0 30px 0; /* Bordes asimétricos del diseño original */
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Hover original: fondo azul y texto blanco */


.card-service i { 
    font-size: 3rem; 
    color: var(--blue-accent); /* Color plano */
    margin-bottom: 20px;
    transition: 0.3s;
}

.card-service h3 {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--blue-pow);
    font-weight: 600;
    transition: 0.3s;
}


/* ============================================
   SECCIÓN 03: PRODUCTOS SLIDER - COLORES PLANOS
   ============================================ */

/* Wrapper del carrusel */
.products-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Viewport: recorta lo que se sale */
.products-carousel-viewport {
    overflow: hidden;
}

/* Track: todos los productos en fila continua */
.products-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    align-items: stretch;
}

/* Cada producto ocupa exactamente 1/3 del viewport */
.products-carousel-track .product-item {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

/* Botones prev / next */
.products-carousel-prev,
.products-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.products-carousel-prev { left: 0; }
.products-carousel-next { right: 0; }

.products-carousel-prev:hover,
.products-carousel-next:hover {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
}

.products-carousel-prev i,
.products-carousel-next i {
    font-size: 1rem;
    color: white;
}

.product-item {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    align-self: stretch; /* fuerza igual alto en la fila del carrusel */
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-item img { 
    width: 100%; /* Imagen ocupa todo el ancho */
    height: 250px; /* Altura fija para todas las imágenes */
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1; /* ocupa todo el espacio restante dentro de la card */
}

.product-body h3 {
    font-size: 1.2rem;
    color: var(--blue-pow);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 50px;
}

.product-specs {
    flex: 1; /* crece para empujar el botón al fondo */
    color: #666;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.btn-outline {
    display: block;
    padding: 14px 30px;
    background: var(--blue-pow);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(11, 28, 62, 0.2);
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.3);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 71, 255, 0.2);
}

/* Dots de productos */
.products-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.product-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.product-dot.active {
    background: white;
    width: 40px;
    border-radius: 10px;
    border-color: var(--blue-accent);
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */

.contact-container {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info { 
    flex: 1; 
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--blue-pow);
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.contact-form-box {
    flex: 1;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: var(--blue-pow);
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px 30px;
    background: var(--blue-pow);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(11, 28, 62, 0.2);
}

.btn-submit:hover {
    background: var(--blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 71, 255, 0.2);
}

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

@media (max-width: 1200px) {
    .grid-solutions-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-overlay {
        width: 65%;
    }
}

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

    .hero-slider {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-number {
        font-size: 4rem;
    }

    /* Carrusel: 2 productos visibles en tablet */
    .products-carousel-track .product-item {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }
}

@media (max-width: 768px) {

    .hero-content {
    max-width: 320px;
}

    .section-padding {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-overlay {
        width: 100%;
        clip-path: none;
        padding: 30px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-number {
        font-size: 3rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-prev i,
    .hero-next i {
        font-size: 1.2rem;
    }
    
    .grid-solutions-5 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-service {
        padding: 30px 20px;
    }
    
    /* Carrusel: 1 producto visible en móvil */
    .products-carousel-track .product-item {
        flex: 0 0 100%;
    }

    .products-slider-wrapper {
        padding: 0 40px;
    }

    .product-item img {
        width: 100%;
        height: 200px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-form-box {
        width: 100%;
        padding: 0;
    }
    
    .section-number {
        font-size: 4rem;
    }
    
    /* Botones responsive */
    .btn,
    .btn-outline,
    .btn-submit,
    .btn-segmentos {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 350px;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    /* Botones en pantallas muy pequeñas */
    .btn,
    .btn-outline,
    .btn-submit,
    .btn-segmentos {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-service,
.product-item {
    animation: fadeInUp 0.6s ease-out;
}

.card-service:nth-child(1) { animation-delay: 0.1s; }
.card-service:nth-child(2) { animation-delay: 0.2s; }
.card-service:nth-child(3) { animation-delay: 0.3s; }
.card-service:nth-child(4) { animation-delay: 0.4s; }
.card-service:nth-child(5) { animation-delay: 0.5s; }
