/* ================================
   AQUELA - PÁGINA PRÓXIMAMENTE
   styles.css - Archivo completo
   ================================ */

:root {
    --primary-color: #d946ef;
    --secondary-color: #d946ef;
    --accent-color: #ffffff;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 17, 17, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Network background animation */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Main container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

/* Logo */
.logo {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Main heading */
.heading {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #d946ef 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Contact section */
.contact-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(217, 70, 239, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(217, 70, 239, 0.2);
    transition: all 0.3s ease;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(217, 70, 239, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Formas geométricas simples */
.shape {
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: inherit;
}

/* Email - Rombo */
.shape-diamond {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Pentesting - Hexágono */
.shape-hexagon {
    width: 20px;
    height: 12px;
    border: 2px solid currentColor;
    border-left: none;
    border-right: none;
    position: relative;
}

.shape-hexagon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-bottom: none;
    border-right: none;
    transform: rotate(30deg);
}

.shape-hexagon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: none;
    border-right: none;
    transform: rotate(-30deg);
}

/* DevSecOps - Círculo con punto central */
.shape-circle-dot {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.shape-circle-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Desarrollo Seguro - Triángulo */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid currentColor;
}

/* Hardening - Cuadrado con cruz */
.shape-square-cross {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    position: relative;
}

.shape-square-cross::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: currentColor;
}

.shape-square-cross::after {
    content: '';
    position: absolute;
    left: 6px;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: currentColor;
}

/* IA Security - Rectángulo con líneas */
.shape-rectangle-lines {
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
    position: relative;
}

.shape-rectangle-lines::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    height: 2px;
    background: currentColor;
}

.shape-rectangle-lines::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    height: 2px;
    background: currentColor;
}

/* Agentes IA - Estrella simple */
.shape-star {
    width: 20px;
    height: 20px;
    position: relative;
}

.shape-star::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    width: 4px;
    height: 16px;
    background: currentColor;
}

.shape-star::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 16px;
    height: 4px;
    background: currentColor;
}

.contact-icon .shape {
    color: white;
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(217, 70, 239, 0.1);
    color: var(--primary-color);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.4);
}

/* Progress indicator */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
}

.step.completed {
    background: var(--primary-color);
    color: white;
}

/* Services grid - 3 columnas desktop, 2 mobile */
.services-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Contact section reubicada */
.contact-section-bottom {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-section-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.contact-item-single {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(217, 70, 239, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(217, 70, 239, 0.2);
    transition: all 0.3s ease;
    justify-content: center;
    max-width: 400px;
    margin: 2rem auto 0;
}

.contact-item-single:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(217, 70, 239, 0.1);
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.service-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .services-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo {
        font-size: 2.5rem;
    }

    .heading {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 2rem;
    }

    .contact-section-bottom {
        padding: 2rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-item-single {
        gap: 1rem;
        padding: 1.5rem;
    }
}