/* ===========================
   VARIABLES Y ESTILOS GLOBALES
   =========================== */
:root {
    --primary-blue: #0769e9;
    --secondary-blue: #00f2fe;
    --dark-blue: #0a4ca8;
    --light-blue: #e8f4fe;
    --accent-blue: #3d8bff;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(7, 105, 233, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4fe 100%);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER MODERNO
   =========================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(7, 105, 233, 0.1);
    border-bottom: 1px solid rgba(7, 105, 233, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.logo {
    height: 50px;
    transition: var(--transition);
	animation: pulse 3s infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

.nav-menu-link:hover {
    color: var(--primary-blue);
}

.nav-menu-link:hover::after {
    width: 80%;
}

.nav-menu-link.active {
    color: var(--primary-blue);
    background: rgba(7, 105, 233, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ===========================
   SLIDER MODERNO
   =========================== */
.contenedor-slider {
    width: 100%;
    height: 35vh;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
    flex: 0 0 100%;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(7, 105, 233, 0.7) 0%,
        rgba(0, 242, 254, 0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.slider-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.slider-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prev-button:hover, .next-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.prev-button {
    left: 30px;
}

.next-button {
    right: 30px;
}

/* ===========================
   SECCIONES PRINCIPALES
   =========================== */
.section-page {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ===========================
   PERFIL EMPRESARIAL
   =========================== */
.contenedor-perfil {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.n-titulo {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: center;
}

.p-company {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* ===========================
   TARJETAS DE SERVICIOS/PRODUCTOS
   =========================== */
.services-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Contenedores de listado detallado (Servicios.html y Productos.html) */
.services, .product {
    width: 100%;
    display: grid;
    /* 3 columnas en pantallas grandes, 1 en móviles */
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

/* Tarjetas individuales de servicio o producto */
.service-card, .product-card,
.contenedor-servicio, .cont-product {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(7, 105, 233, 0.1);
    width: 100%; /* Asegura que ocupe el ancho de su columna */
    max-width: 100%; /* Previene desbordamientos */
	text-align: justify;
}

/* Efecto hover para tarjetas */
.service-card:hover, .product-card:hover,
.contenedor-servicio:hover, .cont-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 105, 233, 0.15);
}

/* ===========================
   FORMULARIO DE CONTACTO MODERNO
   =========================== */
.contact-container {
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-blue);
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e7ff;
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: #f8faff;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(7, 105, 233, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    justify-self: center;
    margin-top: 20px;
    width: 200px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(7, 105, 233, 0.3);
}

/* ===========================
   FOOTER MODERNO
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    padding: 70px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===========================
   BOTÓN WHATSAPP FLOTANTE
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
	animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}


/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* ===========================
   ESTILOS PARA PARTICLES
   =========================== */
#particles-js {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ===========================
   ESTILOS EXISTENTES (MANTENIDOS)
   =========================== */
.services {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
}

.contenedor-servicio, .cont-product {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    max-width: 400px;
}

.contenedor-servicio img, .cont-product img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.subtitulo {
    color: var(--dark-blue);
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 10px;
}

.p-subtitulo {
    width: 90%;
    display: inline-block;
    margin: 20px auto 40px;
    font-weight: 400;
    text-align: justify;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.n-service, .n-product {
    width: 100%;
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.p-service, .p-product {
    width: 100%;
    display: inline-block;
    margin-top: 10px;
    font-weight: 400;
    text-align: justify;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    width: 35px;
    height: 35px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Escritorios grandes (más de 1200px) - 3 COLUMNAS */
@media (min-width: 1200px) {
    .services, .product {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    }
    .contenedor-servicio, .cont-product {
        max-width: 380px; /* Ancho máximo consistente */
    }
}

/* Tabletas y escritorios pequeños (768px - 1199px) - 2 COLUMNAS */
@media (min-width: 768px) and (max-width: 1199px) {
    .services, .product {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
    .contenedor-servicio, .cont-product {
        max-width: 100%;
    }
    .slider-title {
        font-size: 2.5rem;
    }
    .contenedor-slider {
        height: 35vh;
    }
}

/* Móviles (hasta 767px) - 1 COLUMNA (ya es el valor por defecto) */
@media (max-width: 767px) {
    .nav {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .contenedor-slider {
        height: 25vh;
        margin-top: 60px;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-text {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .prev-button, .next-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-button {
        left: 10px;
    }
    
    .next-button {
        right: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Asegurar una columna en móviles */
    .services, .product {
        grid-template-columns: 1fr;
    }
    
    .contenedor-perfil {
        padding: 40px 20px;
        margin-top: 0;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
    
    .subtitulo {
        font-size: 1.8rem;
    }
    
    .p-subtitulo {
        width: 95%;
        font-size: 1rem;
    }
}

/* Móviles muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .slider-title {
        font-size: 1.3rem;
    }
    
    .contenedor-slider {
        height: 25vh;
    }
    
    .slider-overlay {
        padding: 20px;
    }
    
    .section-page {
        padding: 20px 0;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
	
	.contact-container {
        padding: 80px 20px;
    }
}