/* VARIABLES Y RESET */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00ccff;
    --dark-bg: #0a1f3b;
    --light-bg: #f5f7fa;
    --text-dark: #1a3a52;
    --text-light: #555;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d2847 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

.tagline {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-portal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 20px;
    border-radius: 25px;
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0fa 100%);
    min-height: 600px;
}

.hero-content h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-svg {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.gears {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SERVICIOS SECTION */
.servicios {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.servicio-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 204, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.servicio-icon svg {
    width: 50px;
    height: 50px;
}

.servicio-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.servicio-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* POR QUE SECTION */
.por-que {
    padding: 100px 0;
    background: var(--light-bg);
}

.por-que-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.por-que-text h2 {
    font-size: 38px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: bold;
}

.features-list h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.features-list p {
    color: var(--text-light);
    font-size: 14px;
}

.por-que-svg {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* VISION Y MISION */
.vision-mision {
    padding: 80px 0;
    background: white;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.vm-card {
    background: linear-gradient(135deg, var(--dark-bg), #0d2847);
    color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.vm-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.vm-card p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* PROYECTOS SECTION */
.proyectos {
    padding: 100px 0;
    background: var(--light-bg);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.proyecto-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.proyecto-card.en-construccion {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.05), rgba(0, 102, 204, 0.05));
    border-color: var(--secondary-color);
}

.proyecto-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.proyecto-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 204, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.proyecto-icon svg {
    width: 60px;
    height: 60px;
}

.proyecto-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.proyecto-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: 10px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { width: 0; }
}

.progress-text {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.proyectos-info {
    text-align: center;
    margin-top: 60px;
}

.info-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.info-box h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.info-box p {
    color: var(--text-light);
    font-size: 16px;
}

/* CONTACTO SECTION */
.contacto {
    padding: 100px 0;
    background: white;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 5px;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--secondary-color);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contacto-form button {
    margin-top: 10px;
}

/* FOOTER */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--secondary-color);
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark-bg) 0%, #0d2847 100%);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        width: 100%;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .servicios-grid,
    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .por-que-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .vm-card {
        padding: 30px;
    }

    .vm-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .tagline {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .servicio-card,
    .proyecto-card {
        padding: 25px;
    }

    .contacto-content {
        gap: 30px;
    }

    .info-item {
        gap: 15px;
    }

    .info-icon {
        font-size: 30px;
    }
}
