/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary-color: #0f172a; /* Dark Navy */
    --accent-color: #2563eb; /* Bright Blue */
    --secondary-color: #64748b; /* Slate Gray */
    --bg-light: #f8fafc;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en el menú */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* --- HEADER & LOGO --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-color); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- LOGOS / TRUST SECTION --- */
.trust-section {
    padding: 40px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    opacity: 0.5;
    flex-wrap: wrap;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* --- FEATURES SECTION --- */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
}

.services .section-title p { color: #cbd5e1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.client-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CTA / CONTACT --- */
.cta-section {
    padding: 100px 0;
    background-color: var(--white); /* Cambio a blanco para contraste con testimonios */
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
}

/* --- FOOTER --- */
footer {
    background-color: #020617;
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    margin: 0 15px;
    color: #94a3b8;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hero-buttons { flex-direction: column; }
    
    .logo-img { height: 40px; } /* Logo un poco más pequeño en móvil */
}

/* --- MODAL STYLES (Pop-ups) --- */
.service-link-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    padding: 0;
    font-family: inherit;
    transition: color 0.3s;
}

.service-link-btn:hover {
    color: var(--white); /* Se vuelve blanco al pasar el mouse */
    text-decoration: underline;
}

/* El fondo oscuro del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo negro semitransparente */
    backdrop-filter: blur(5px); /* Efecto borroso elegante */
    overflow: auto;
    animation: fadeIn 0.3s;
}

/* El contenido blanco del modal */
.modal-content {
    background-color: var(--white);
    margin: 10% auto; /* Centrado vertical */
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: var(--primary-color); /* Asegura texto oscuro */
    text-align: left;
}

/* Botón de cerrar (X) */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.modal-content p {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Animación suave de aparición */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* --- CREATOR FOOTER STYLES (WEBZTER) --- */
.creator-credit {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.dev-link {
    color: var(--accent-color); /* Usa el azul corporativo (#2563eb) */
    font-weight: 800; /* Letra gruesa para destacar */
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.dev-link:hover {
    color: var(--white); /* Se vuelve blanco al pasar el mouse */
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.8); /* Efecto de brillo (Glow) sutil */
    text-decoration: none;
}