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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-2px);
}

.highlight {
    color: #0066cc;
}

.hero-strong {
    font-weight: 500;
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.logo-img {
    height: 52px;
    width: auto;
}

.logo-img--footer {
    height: 40px;
    filter: invert(1);
}

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

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 300;
    color: #666;
    position: relative;
    padding: 5px 0;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background-color: #0066cc;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background-color: #fff;
    background-image: radial-gradient(circle, #b0b8c8 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    animation: waveGrid 8s ease-in-out infinite;
    overflow: hidden;
}

@keyframes waveGrid {
    0%   { background-position: 0 0; }
    25%  { background-position: 14px 8px; }
    50%  { background-position: 28px 0; }
    75%  { background-position: 14px -8px; }
    100% { background-position: 0 0; }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.92) 55%, transparent 100%);
    padding: 40px 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #000;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-divider {
    width: 40px;
    height: 1px;
    background-color: #0066cc;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 0;
    justify-content: center;
}

/* Servicios */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-underline {
    width: 0;
    height: 1px;
    background-color: #0066cc;
    margin: 24px auto 36px;
    transition: width 0.8s ease;
}

.section-underline.visible {
    width: 100px;
}

.section-title {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 1px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-left: 4px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 102, 204, 0.08);
    border-left-color: #0066cc;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.servicio-title {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.servicio-desc {
    color: #666;
    margin-bottom: 1.5rem;
}

.servicio-list {
    margin-top: 1.5rem;
}

.servicio-list li {
    color: #666;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.servicio-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0066cc;
}

/* Por qué nosotros */
.porque {
    background-color: #f8f9fa;
}

.porque-content {
    display: flex;
    justify-content: center;
}

.porque-text {
    max-width: 800px;
    width: 100%;
}

.porque-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.porque-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.porque-visual {
    flex: 1;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Contacto */
.contacto {
    background-color: #f8f9fa;
}

.contacto-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contacto-info {
    flex: 1;
}

.contacto-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.contacto-details {
    margin-top: 40px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contacto-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 30px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}


.footer-text {
    color: #aaa;
    max-width: 200px;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .porque-content,
    .contacto-content {
        flex-direction: column;
    }
    
    .visual-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .btn {
        width: 100%;
    }
}