/* Base styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.dark {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #a78bfa;
    --accent: #22d3ee;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --background: #0f172a;
    --background-alt: #1e293b;
    --background-dark: #020617;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #a78bfa 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.025em;
}

h2::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.25rem;
    background: var(--gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.95);
}

.dark .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

#themeToggle {
    background: var(--background-alt);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background: var(--border);
    transform: rotate(15deg);
}

.sun-icon {
    display: none;
}

.dark .moon-icon {
    display: none;
}

.dark .sun-icon {
    display: block;
    color: #fbbf24;
}

/* Hero Section - Full Screen with Video */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin: 1.5rem auto;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--background-alt);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px var(--shadow);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card svg {
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover svg {
    transform: scale(1.1);
    color: var(--secondary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card ul {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
}

.service-card li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Why Choose Us Section */
.why-us {
    padding: 6rem 0;
    background: var(--background-alt);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-us-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--background);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.why-us-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px var(--shadow);
}

.why-us-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.why-us-card svg {
    color: var(--primary);
    transition: all 0.3s ease;
}

.why-us-card:hover svg {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--background);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--background-alt);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 25px var(--shadow);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.portfolio-card:hover h3 {
    color: var(--primary);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--background-alt);
}

.faq-grid {
    max-width: 48rem;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
}

.faq-card:hover {
    box-shadow: 0 6px 15px var(--shadow);
    transform: translateY(-2px);
}

.faq-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.contact-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 6px 15px var(--shadow);
}

.contact-card svg {
    color: var(--primary);
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover svg {
    transform: scale(1.1);
    color: var(--secondary);
}

.contact-form {
    max-width: 48rem;
    margin: 0 auto;
    background: var(--background-alt);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid #1e293b;
}

footer p {
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    text-decoration: none;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(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);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: fadeInLeft 0.8s ease forwards;
    opacity: 0;
}

.slide-in-right {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
    opacity: 0;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scroll down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .why-us-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* CSS */
.aviso-copyright {
  /* Añade 20 píxeles de espacio arriba del párrafo */
  margin-top: 20px; 
  /* Asegura que no haya un margen abajo, si quieres */
  margin-bottom: 0; 
}

