/* ===== VARIABLES CSS ===== */
:root {
    /* Colores oficiales CAETA */
    --primary-color: #06AEF5;
    --primary-dark: #0096D1;
    --primary-darker: #0178A8;
    --primary-darkest: #005C80;
    --primary-navy: #003E57;
    
    /* Colores complementarios */
    --white: #FAFAFA;
    --gray-light: #CCCCCC;
    --gray-dark: #282828;
    --accent-green: #0AA87F;
    --accent-red: #A83613;
    
    /* Tipografía */
    --font-family: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espaciado */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== UTILIDADES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-green) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark);
    opacity: 0.8;
    line-height: 1.7;
}

/* ===== NAVEGACIÓN ===== */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 174, 245, 0.1);
    transition: all var(--transition-fast);
    padding: 1rem 0;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
    padding: 0.5rem 0;
}

.logo {
    height: 40px;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--gray-dark);
    margin: 0 0.5rem;
    position: relative;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, rgba(6, 174, 245, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 1rem 2rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    transition: all var(--transition-fast);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Hero Stats */
.hero-stats {
    opacity: 0.9;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    opacity: 0.7;
    margin: 0;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-animation {
    position: relative;
    width: 400px;
    height: 400px;
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.element-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    background: linear-gradient(135deg, var(--accent-green), #089968);
}

.element-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-darkest));
}

.element-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

.element-5 {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    background: linear-gradient(135deg, var(--accent-green), #089968);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding);
    background: var(--white);
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(6, 174, 245, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-green));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.service-card p {
    color: var(--gray-dark);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(6, 174, 245, 0.05) 0%, var(--white) 100%);
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-medium);
}

.feature-item i {
    color: var(--accent-green);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    border: 1px solid rgba(6, 174, 245, 0.1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-box h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--gray-dark);
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(6, 174, 245, 0.1);
}

.contact-form .form-control {
    border: 2px solid rgba(6, 174, 245, 0.1);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 174, 245, 0.25);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-dark);
    color: white;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== ANIMACIONES ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .tech-animation {
        width: 250px;
        height: 250px;
    }
    
    .central-hub {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .element {
        width: 40px;
        height: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== EFECTOS ADICIONALES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling para navegación */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

