/* =================================================================
   ENREVESADO - Estilos CSS
   ================================================================= */

/* Variables */
:root {
    --color-magenta: #FF00FF;
    --color-lime: #DFFF00;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-dark: #1a1a1a;
    --color-gray-medium: #333333;
    --color-gray-light: #cccccc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =================================================================
   NAVIGATION
   ================================================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-svg {
    width: 48px;
    height: 48px;
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.brand:hover {
    color: var(--color-magenta);
}

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

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-lime);
}

.nav-cta {
    background-color: var(--color-magenta);
    padding: 8px 24px;
    border-radius: 0;
    font-weight: 700;
}

.nav-cta:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--color-magenta);
    transition: all 0.3s;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--color-black), var(--color-gray-dark), var(--color-black));
    opacity: 0.9;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 24px;
    max-width: 1200px;
}

.hero-icon svg {
    width: 96px;
    height: 96px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 32px;
}

.title-line {
    display: inline-block;
    border-bottom: 8px solid var(--color-white);
    padding: 0 8px;
}

.hero-subtitle-container {
    position: relative;
    display: inline-block;
    margin-bottom: 48px;
}

.subtitle-decoration {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 128px;
    height: 128px;
    opacity: 0.7;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-magenta);
    position: relative;
    z-index: 10;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-gray-light);
}

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

.btn {
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
    transform: scale(1.05);
}

.hero-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 48px;
}

.hero-social a {
    color: var(--color-magenta);
    transition: all 0.3s;
}

.hero-social a:hover {
    color: var(--color-lime);
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 32px;
    height: 48px;
    border: 4px solid var(--color-magenta);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 8px;
    height: 12px;
    background-color: var(--color-magenta);
    border-radius: 4px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =================================================================
   SERVICIOS SECTION
   ================================================================= */
.servicios {
    padding: 96px 0;
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.decoration-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    opacity: 0.1;
}

.servicios-header {
    margin-bottom: 64px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

.title-underline {
    display: inline-block;
    border-bottom: 8px solid var(--color-black);
}

.header-icon {
    width: 160px;
    height: 160px;
    margin-top: 16px;
}

.proyectos-section {
    margin-bottom: 64px;
}

.proyectos-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 32px;
}

.bars-container {
    max-width: 800px;
}

.bar-item {
    position: relative;
    margin-bottom: 48px;
}

.bar-label {
    position: absolute;
    top: -32px;
    left: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.bar-wrapper {
    background-color: #e0e0e0;
    height: 12px;
    width: 100%;
}

.bar-fill {
    background-color: var(--color-magenta);
    height: 100%;
    transition: width 1s ease;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.servicio-card {
    background: linear-gradient(to bottom right, #f5f5f5, #e0e0e0);
    padding: 32px;
    transition: all 0.3s;
    border-top: 8px solid;
}

.border-magenta {
    border-top-color: var(--color-magenta);
}

.border-lime {
    border-top-color: var(--color-lime);
}

.servicio-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    margin-bottom: 16px;
    transition: transform 0.3s;
}

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

.servicio-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.servicio-card p {
    color: #333;
    line-height: 1.8;
}

/* =================================================================
   QUIEN SOY SECTION
   ================================================================= */
.quien-soy {
    padding: 96px 0;
    background-color: var(--color-black);
    position: relative;
}

.quien-soy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 64px;
    align-items: center;
}

.section-title-large {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 32px;
}

.text-magenta {
    display: block;
    color: var(--color-magenta);
}

.text-lime {
    color: var(--color-lime);
    font-weight: 700;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.text-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-light);
}

.stats-container {
    display: flex;
    gap: 16px;
    margin-top: 48px;
}

.stat-box {
    flex: 1;
    padding: 24px;
    text-align: center;
}

.bg-magenta {
    background-color: var(--color-magenta);
}

.bg-lime {
    background-color: var(--color-lime);
    color: var(--color-black);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.875rem;
    margin-top: 8px;
}

.proceso-container {
    position: relative;
}

.proceso-card {
    background: linear-gradient(to bottom right, var(--color-magenta), var(--color-lime));
    padding: 8px;
    border-radius: 8px;
}

.proceso-inner {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: var(--color-black);
}

.proceso-inner svg {
    margin-bottom: 16px;
}

.proceso-inner h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.proceso-list {
    list-style: none;
}

.proceso-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.proceso-number {
    background-color: var(--color-magenta);
    color: var(--color-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* =================================================================
   CONTACTO SECTION
   ================================================================= */
.contacto {
    padding: 96px 0;
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.contacto-decoration {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.decoration-circle {
    position: absolute;
    top: 80px;
    left: 80px;
    width: 256px;
    height: 256px;
    border: 8px solid var(--color-magenta);
    border-radius: 50%;
}

.decoration-square {
    position: absolute;
    bottom: 80px;
    right: 80px;
    width: 384px;
    height: 384px;
    border: 8px solid var(--color-lime);
}

.contacto-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--color-magenta);
}

.cta-icon {
    width: 128px;
    height: 128px;
    margin: 32px auto 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.contacto-info {
    background: linear-gradient(to bottom right, var(--color-gray-dark), var(--color-black));
    padding: 32px;
    border-radius: 8px;
    border: 4px solid var(--color-magenta);
}

.contacto-info-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-lime);
    margin-bottom: 32px;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.contacto-item:hover {
    color: var(--color-magenta);
}

.contacto-item svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.contacto-item:hover svg {
    transform: scale(1.1);
}

.item-label {
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.item-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.social-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-medium);
}

.social-label {
    color: var(--color-gray-light);
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    background-color: var(--color-magenta);
    padding: 12px;
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
}

.contacto-form-container {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 8px;
    color: var(--color-black);
}

.form-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-gray-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--color-magenta);
}

.contacto-form textarea {
    resize: none;
}

.form-submit {
    width: 100%;
    background-color: var(--color-magenta);
    color: var(--color-white);
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
    transform: scale(1.05);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
    background-color: var(--color-black);
    border-top: 4px solid var(--color-magenta);
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 900;
}

.footer-tagline {
    color: var(--color-gray-light);
}

.footer-col h4 {
    font-weight: 900;
    color: var(--color-lime);
    margin-bottom: 16px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
    color: var(--color-gray-light);
}

.footer-col a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--color-gray-medium);
    padding-top: 32px;
    text-align: center;
    color: var(--color-gray-light);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

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

    .menu-toggle {
        display: flex;
    }

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

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

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .quien-soy-grid {
        grid-template-columns: 1fr;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
    }

    .decoration-circle,
    .decoration-square {
        display: none;
    }
}