/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
    --primary: #70D6FF;       
    --secondary: #271457;     
    --light: #FFFFFF;
    --dark-bg: #1A0F3D;       
    --gray-bg: #F8FAFC;       
    --text-main: #334155;
    --transition: all 0.4s ease;
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
}

/* =========================================
   1. NAVEGACIÓN
========================================= */
nav {
    background-color: var(--secondary);
    height: 110px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden; 
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-img-full {
    height: 100px; 
    width: auto;
    transform: scale(2.8); 
    transform-origin: left center; 
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(112, 214, 255, 0.4));
}

.brand:hover .logo-img-full {
    transform: scale(3.0); 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover { 
    color: var(--primary); 
}

/* =========================================
   2. HERO SECTION
========================================= */
.hero {
    height: 80vh;
    background: radial-gradient(circle at top right, #3a1c71, var(--secondary), var(--dark-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    padding: 0 20px;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-button {
    background: var(--primary);
    color: var(--secondary);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(112, 214, 255, 0.4);
    transition: var(--transition);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(112, 214, 255, 0.6);
    background: #fff;
}

/* =========================================
   3. SERVICIOS
========================================= */
.services { 
    padding: 100px 8%; 
    background-color: var(--gray-bg); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 70px; 
}

.section-header h2 { 
    font-size: 2.8rem; 
    color: var(--secondary); 
}

.line { 
    width: 100px; 
    height: 5px; 
    background: var(--primary); 
    margin: 20px auto; 
    border-radius: 10px; 
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--light);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 6px solid var(--secondary);
}

.card:hover { 
    transform: translateY(-15px); 
    border-top-color: var(--primary); 
}

.card i { 
    font-size: 3.5rem; 
    color: var(--primary); 
    margin-bottom: 25px; 
    display: block; 
}

/* =========================================
   4. TECNOLOGÍAS
========================================= */
.tech {
    padding: 80px 8%;
    background-color: var(--light);
    text-align: center;
}

.tech .section-header h2 {
    color: var(--secondary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.tech-item {
    background: var(--gray-bg);
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(0,0,0,0.05);
}

.tech-item i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-10px);
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(39, 20, 87, 0.2);
}

.tech-item:hover i,
.tech-item:hover span {
    color: var(--primary);
}

/* =========================================
   5. CONTACTO
========================================= */
.contact {
    padding: 100px 8%;
    background-color: var(--secondary);
    color: var(--light);
}

.contact .section-header h2 {
    color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    background: var(--light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(112, 214, 255, 0.3);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* =========================================
   6. FOOTER & WHATSAPP
========================================= */
footer {
    background: #150a30;
    color: var(--light);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer span {
    color: var(--primary);
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

/* =========================================
   7. RESPONSIVE (Móviles)
========================================= */
@media (max-width: 992px) {
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-content h2 { font-size: 2.5rem; }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}