/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-nl: #FF4500;
    --primary-vl: #228B22;
    --primary-color: #0077b6;
    --primary-dark: #005a8c;
    --secondary-color: #00b4d8;
    --whatsapp-color: #25d366;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #0d1b2a;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    position: relative;
}

.logo-encom {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-vl);
    letter-spacing: -1px;
}

.logo-net {
    font-size: 26px;
    font-weight: 300;
    color: var(--primary-nl);
    letter-spacing: -1px;
}

.logo-tagline {
    position: absolute;
    bottom: -12px;
    left: 0;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link-autogestion {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-autogestion i {
    font-size: 12px;
}

.whatsapp-btn {
    width: 40px;
    height: 40px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn {
    width: 40px;
    height: 40px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 50%, #006466 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 200px;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    background: var(--text-dark);
    color: var(--white);
    justify-content: center;
}

.btn-submit:hover {
    background: #2d2d44;
}

/* WhatsApp Banner */
.whatsapp-banner {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 100, 70, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.whatsapp-icon {
    font-size: 40px;
    color: var(--white);
}

.whatsapp-text {
    text-align: left;
}

.whatsapp-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.whatsapp-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.whatsapp-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Features Section */
.features {
    background: var(--bg-light);
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 20px;
    color: var(--text-dark);
    width: 24px;
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-card-blue {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    padding: 30px;
    color: var(--white);
}

/* Iconos */
.service-card-icon {
    font-size: 30px;
    color: #2aa4df;
    background: rgba(42,164,223,0.3);
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.service-card-iconos {
    display: flex;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-text {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.service-card-image {
    position: relative;
}

.service-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.service-card-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
}

.service-card-white {
    background: #f8f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-card-title-dark {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card-text-dark {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-icon-dark {
    font-size: 40px;
    color: var(--text-light);
    align-self: flex-end;
}

.service-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
}

.service-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
}

.service-banner-text {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 500;
}

/* Coverage Section */
.coverage {
    position: relative;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 50%, #006466 100%);
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

#coverageCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.coverage-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.coverage-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.coverage-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.coverage-zones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.zone {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

.zone-separator {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    color: var(--white);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-phone:hover {
    color: var(--secondary-color);
}

.contact-illustration {
    margin-top: auto;
    text-align: center;
    opacity: 0.3;
}

.contact-illustration i {
    font-size: 120px;
}

.contact-form-wrapper {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group-large {
    flex: 2;
}

.form-group-small {
    flex: 1;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    text-decoration: none;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-phones {
    display: flex;
    gap: 20px;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-phone:hover {
    color: var(--white);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #2d2d44;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-banner {
        width: 90%;
        padding: 15px 20px;
    }
    
    .whatsapp-number {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .coverage-title {
        font-size: 32px;
    }
    
    .zone {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-phones {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 180px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .whatsapp-icon {
        font-size: 30px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .contact-title {
        font-size: 28px;
    }
}
