/* ========================================
   ANIMACIONES DE FONDO - RED TECNOLÓGICA
======================================== */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-10px) translateX(5px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) translateX(-5px) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(5px) translateX(3px) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes data-flow {
    0% {
        transform: translateX(-100%) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(0px);
        opacity: 0;
    }
}

@keyframes circuit-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes binary-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes data-flow-vertical {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes micro-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-5px) translateX(3px) scale(1.2);
        opacity: 0.7;
    }
}

.data-stream-vertical {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(76, 175, 80, 0.4), transparent);
    border-radius: 1px;
    animation: data-flow-vertical 8s linear infinite;
}

.micro-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(76, 175, 80, 0.4);
    border-radius: 50%;
    animation: micro-particle 6s ease-in-out infinite;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f4f4f4 0%, #e8f5e8 25%, #f1f8e9 50%, #e8f5e8 75%, #f4f4f4 100%);
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
    animation: particle-float 8s ease-in-out infinite;
}

.data-stream {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.6), transparent);
    border-radius: 1px;
    animation: data-flow 6s linear infinite;
}

.binary-digit {
    position: absolute;
    color: rgba(76, 175, 80, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    animation: binary-float 8s linear infinite;
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.circuit-node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #4CAF50;
    border-radius: 50%;
    animation: circuit-pulse 4s ease-in-out infinite;
}

.circuit-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 1px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.3), transparent);
    transform: translate(-50%, -50%);
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.2), rgba(102, 187, 106, 0.4), rgba(76, 175, 80, 0.2));
    animation: connect-lines 3s ease-in-out infinite;
}

/* ========================================
   ESTILOS GENERALES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* ANIMACIONES REMOVIDAS - Preloader */

/* ========================================
   HEADER Y NAVEGACIÓN
======================================== */
header {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 25%, #A5D6A7 50%, #66BB6A 75%, #2E7D32 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo h1 {
    font-size: 1.8rem;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 1rem 0;
    z-index: 999;
}

.nav-links.active li {
    margin: 0.5rem 0;
    text-align: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   SECCIÓN HERO (INICIO)
======================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #81C784 0%, #4CAF50 25%, #66BB6A 50%, #4CAF50 75%, #388E3C 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 50%, #66BB6A 100%);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.5);
}

.hero-image img {
    flex: 1;
    max-width: 100%;
    border-radius: 10px;
}

/* ========================================
   SECCIONES GENERALES
======================================== */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* ========================================
   SECCIÓN PRODUCTOS
======================================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.producto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
}

.producto-card p {
    padding: 0 1rem;
    color: #666;
}

.precio {
    display: block;
    padding: 1rem;
    font-weight: bold;
    color: #2E7D32;
}

/* ========================================
   SECCIÓN SERVICIOS
======================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servicio {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* ========================================
   SECCIÓN ACERCA DE
======================================== */
.acerca {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.acerca-content {
    flex: 1;
}

.acerca-image img {
    flex: 1;
    border-radius: 10px;
}

/* ========================================
   SECCIÓN CONTACTO
======================================== */
/* ========================================
   SECCIÓN CONTACTO Y TESTIMONIOS
======================================== */
.contacto-testimonios {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.contacto-testimonios h2 {
    color: #2e7d32;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.contacto-form-section,
.testimonio-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contacto-form-section h3,
.testimonio-form-section h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contacto-form-section > p,
.testimonio-form-section > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Formularios */
.contact-form,
.testimonio-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.testimonio-form input,
.testimonio-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.testimonio-form input:focus,
.testimonio-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Sistema de calificación */
.rating-container {
    text-align: center;
    margin: 1rem 0;
}

.rating-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.rating-stars {
    display: inline-flex;
    gap: 0.5rem;
    cursor: pointer;
}

.rating-stars .star {
    font-size: 2rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.rating-stars .star.active {
    color: #FFD700;
}

.rating-stars .star:hover {
    color: #FFD700;
}

/* Información de contacto */
.contact-info-section {
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-item h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Mensajes de éxito y error */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Estados de validación */
input.error,
textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

input.success,
textarea.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacto-testimonios h2 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 50%, #2E7D32 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    color: #81C784;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #A5D6A7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #E8F5E8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #81C784;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    color: #E8F5E8;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: rgba(129, 199, 132, 0.2);
    color: #81C784;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    color: #BDBDBD;
    font-size: 0.9rem;
}

/* ========================================
   BOTONES FLOTANTES DE CONTACTO
======================================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1000;
}

.floating-btn {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 50%, #66BB6A 100%);
}

.floating-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* WhatsApp - lado derecho */
.whatsapp-btn {
    right: 20px;
}

/* Llamada - lado izquierdo */
.call-btn {
    left: 20px;
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 50%, #2196F3 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.call-btn:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #64B5F6 50%, #42A5F5 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .productos-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .acerca {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .floating-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-icon {
        font-size: 1rem;
    }

    .btn-text {
        font-size: 0.8rem;
    }

    .whatsapp-btn {
        right: 10px;
    }

    .call-btn {
        left: 10px;
    }
}