
/* ========================================
   DV DIGITAL SOLUTIONS
   IDENTIDAD CORPORATIVA CLARA
======================================== */

:root {
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --primary: #7042D4;
    --accent: #7042D4;
    --text: #191622;
    --muted: #625C70;
    --border: #E5DFEF;
    --lavender: #F5F3FA;
    --dark: #191622;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ========================================
   NAVEGACIÓN
======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 35px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 13px;
    color: var(--muted);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .nav-button {
    background: var(--primary);
    color: white;
    padding: 11px 24px;
    border-radius: 8px;
}

.nav-links .nav-button:hover {
    background: #5D32BA;
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
}

/* ========================================
   PRESENTACIÓN PRINCIPAL
======================================== */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 85% 35%,
            rgba(182, 160, 245, 0.35),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #FFFFFF,
            #F7F3FF
        );
}

.hero-content {
    padding: 90px 0;
    position: relative;
}

.hero-content > :not(.hero-visual) {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -3px;
    max-width: 65%;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    font-size: 17px;
    max-width: 52%;
    color: var(--muted);
    margin-top: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5D32BA;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 66, 212, 0.22);
}

.btn-secondary {
    background: white;
    border-color: var(--border);
    color: var(--primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: #F5F0FF;
}

.hero-location {
    margin-top: 35px;
    font-size: 12px;
    color: var(--muted);
}

/* IMAGEN PRINCIPAL */

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;

    mask-image: radial-gradient(
        ellipse at center,
        black 40%,
        transparent 72%
    );

    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   SECCIONES GENERALES
======================================== */

.section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.section-description {
    color: var(--muted);
    max-width: 700px;
    font-size: 15px;
    margin-bottom: 45px;
}

/* ========================================
   SERVICIOS
======================================== */

#servicios {
    background: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 25px;

    box-shadow: 0 5px 20px rgba(40, 25, 70, 0.04);

    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #B6A0F5;
    box-shadow: 0 12px 35px rgba(112, 66, 212, 0.12);
}

.service-card h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
}

.service-card svg {
    width: 56px;
    height: 56px;
    padding: 14px;
    color: var(--primary);
    background: #F0E9FF;
    border: 1px solid #E7DCFF;
    border-radius: 14px;
    margin-bottom: 22px;
    stroke-width: 1.6;
    transition: 0.3s ease;
}

.service-card:hover svg {
    background: #E7DCFF;
    transform: translateY(-4px);
}

/* ========================================
   PORTFOLIO COMERCIAL
======================================== */

.projects-section {
    background: var(--lavender);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 6px 25px rgba(40, 25, 70, 0.05);

    transition: 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #B6A0F5;
    box-shadow: 0 15px 40px rgba(112, 66, 212, 0.12);
}

.project-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #191622;
}

.project-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.project-card:hover .project-preview img {
    transform: scale(1.04);
}

.project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.project-category {
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 15px 0;
}

.project-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* FUNCIONALIDADES */

.project-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.project-features span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
}

.project-features svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--primary);
    stroke-width: 2;
}

.project-note {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: auto;
    margin-bottom: 18px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #F5F0FF;
    border: 1px solid #DDD0F8;
    border-radius: 9px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    transition: 0.3s ease;
}

.project-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.project-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* ========================================
   SOBRE MÍ
======================================== */

#sobre-mi {
    background: white;
}

.about-content {
    max-width: 900px;
}

.about-content h3 {
    font-size: 25px;
    margin-top: 25px;
}

.professional-title {
    color: var(--primary) !important;
    font-size: 14px !important;
}

.about-content p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 15px;
}

/* ========================================
   METODOLOGÍA
======================================== */

.process-section {
    background: var(--lavender);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    margin-top: 45px;
}

.process-card {
    background: white;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 12px;
    padding: 25px;
}

.process-card span {
    color: var(--primary);
    font-size: 35px;
    font-weight: 300;
}

.process-card h3 {
    margin: 15px 0;
    font-size: 19px;
}

.process-card p {
    font-size: 13px;
    color: var(--muted);
}

/* ========================================
   CONTACTO - CONTRASTE OSCURO
======================================== */

#contacto {
    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(112, 66, 212, 0.25),
            transparent 50%
        ),
        #191622;

    color: #FFFFFF;
}

#contacto .eyebrow {
    color: #B6A0F5;
}

.contact-content {
    max-width: 800px;
}

.contact-content > p {
    color: #C4BDCF;
    margin-bottom: 35px;
}

#contact-form {
    background: #252030;
    border: 1px solid #40364F;
    border-radius: 18px;
    padding: 35px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #F5F3FF;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #51455F;
    border-radius: 8px;
    background: #191622;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #B6A0F5;
}

.form-group textarea {
    resize: vertical;
}

#contact-form button {
    width: 100%;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#form-status {
    font-size: 12px;
    color: #C4BDCF;
    margin-top: 15px;
    text-align: center;
}

/* ========================================
   PIE DE PÁGINA
======================================== */

.footer {
    background: #131118;
    color: white;
    padding: 45px 0;
    border-top: 1px solid #352E43;
    text-align: center;
}

.footer .logo span {
    color: #B6A0F5;
}

.footer p {
    font-size: 12px;
    color: #B4B0C0;
    margin-top: 12px;
}

/* ========================================
   DISEÑO RESPONSIVE
======================================== */

@media (max-width: 1000px) {

    .services-grid,
    .projects-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: white;
        padding: 25px;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(40, 25, 70, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: 75vh;
    }

    .hero-content {
        padding: 45px 0 65px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
        max-width: 100%;
    }

    .hero p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-visual {
        position: relative;
        width: 85%;
        top: auto;
        right: auto;
        transform: none;
        margin: 0 auto 35px;
    }

    .hero-visual img {
        max-height: 300px;
    }

    .section {
        padding: 65px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-info {
        padding: 22px;
    }

}

@media (max-width: 480px) {

    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    #contact-form {
        padding: 22px;
    }

    .logo {
        font-size: 12px;
    }

}

/* ACCESIBILIDAD */

:focus-visible {
    outline: 3px solid #9361E8;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }

}
