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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background-color: #000;
    color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: #ffffff;
}

.desktop-only {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
}

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

.nav-mobile a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

.nav-mobile a:hover {
    color: #ffffff;
}

.nav-mobile .btn-primary {
    margin: 0 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-gradient-1 {
    top: 25%;
    left: 25%;
    background-color: rgba(75, 75, 75, 0.2);
}

.hero-gradient-2 {
    bottom: 25%;
    right: 25%;
    background-color: rgba(100, 100, 100, 0.2);
    animation-delay: 1s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
}

.badge svg {
    color: #d1d5db;
}

.badge span {
    font-size: 0.875rem;
    color: #d1d5db;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator-dot::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: #6b7280;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    color: #ffffff;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.service-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.service-features svg {
    color: #000000;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background-color: #f9fafb;
}

.projects-grid {
    display: grid;
    gap: 2rem;
    max-width: 1024px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.project-badge {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #4b5563;
}

.project-description {
    color: #6b7280;
    line-height: 1.6;
}

.project-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.project-card:hover .project-icon {
    color: #000000;
}

/*git 
====================================
METODOLOGÍA / PROCESO SECTION
(Adaptado al estilo minimalista y oscuro/claro de la web - FONDO NEGRO)
====================================
*/

.process-section {
    padding: 6rem 0;
    /* Cambiado a fondo negro para coincidir con el estilo oscuro */
    background-color: #000000;
}

/*
--- Estilos de Encabezado ---
Adaptados para fondo oscuro
*/
.process-section .section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 4rem;
}

.process-section .section-title {
    /* Color blanco para el título sobre fondo oscuro */
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-section .section-description {
    /* Color gris claro para la descripción sobre fondo oscuro */
    font-size: 1.25rem;
    color: #9ca3af;
}

/*
--- Contenedor de los Pasos (Grid) ---
*/
.process-steps {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Por defecto, una columna */
    gap: 2.5rem;
    max-width: 1024px;
    margin: 0 auto;
}


/*
--- Estilos de Cada Paso (Card) ---
Adaptado para fondo oscuro (tarjetas más claras sobre fondo oscuro)
*/
.method-card {
    background-color: #1a1a1a;
    /* Fondo más oscuro que blanco, pero no negro puro */
    border: 2px solid #2d2d2d;
    /* Borde sutil para resaltar */
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.method-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    /* Borde blanco semi-transparente al hover */
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
    /* Sombra clara */
    transform: translateY(-4px);
}

/*
--- Icono de Paso (Círculo Blanco/Dorado) ---
Adaptado a .service-icon en un contexto oscuro
*/
.step-icon {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    /* Fondo blanco para el círculo */
    border-radius: 50%;
    /* Circular */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #000000;
    /* Texto/Número negro dentro del círculo blanco */
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.method-card:hover .step-icon {
    transform: scale(1.1);
}

.step-title {
    /* Título blanco sobre la tarjeta oscura */
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.method-card p {
    /* Texto gris claro sobre la tarjeta oscura */
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1rem;
}

/* Separador (no lo necesitamos visualmente en este layout de tarjeta) */
.step-separator {
    display: none;
}

/*--- Call to Action (CTA) ---
Utilizamos el estilo de botón primario existente
*/
.process-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 0;
}

.process-cta p {
    /* Texto blanco sobre el fondo negro */
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Reutilizamos .btn-primary */
.process-cta .btn-primary {
    /* Aseguramos que sea el botón grande. El color del botón ya se define globalmente como blanco sobre negro, 
       lo cual es perfecto para resaltar aquí. */
    padding: 1rem 2rem;
    font-size: 1.125rem;
}


/*
====================================
MEDIA QUERIES (Responsividad)
====================================
*/

/* Tablet y Desktop (768px y más) */
@media (min-width: 768px) {
    .process-steps {
        /* 2 columnas en pantallas medianas */
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop (1024px y más) */
@media (min-width: 1024px) {
    .process-steps {
        /* 3 columnas en pantallas grandes */
        grid-template-columns: repeat(3, 1fr);
    }

    .process-section .section-title {
        /* Aumentamos el tamaño como en otras secciones */
        font-size: 3rem;
    }
}

/* Si quieres 5 columnas en pantallas muy grandes */
/*
@media (min-width: 1280px) {
    .process-steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}
*/

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: #f9fafb;
}

.contact-grid {
    display: grid;
    gap: 3rem;
    max-width: 1024px;
    margin: 0 auto;
}

.contact-card {
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.disabled-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.disabled-overlay-text {
    background-color: #000000;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background-color: #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    color: #ffffff;
}

.contact-item-label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #000000;
}

.contact-item p {
    color: #6b7280;
}

.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #000000;
}

.social-icon svg {
    color: #000000;
    transition: color 0.3s ease;
}

.social-icon:hover svg {
    color: #ffffff;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #000000;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    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: #000000;
}

.form-group textarea {
    resize: none;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col-main .logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
    max-width: 400px;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-col h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #2d2d2d;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(200%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .desktop-only {
        display: inline-flex;
    }

    .mobile-menu-btn {
        display: none;
    }

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

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }



    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

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

    .section-title {
        font-size: 3rem;
    }
}