:root {
    --bg: #0F1115;
    --bg-card: #1A1D24;
    --bg-hover: #22262F;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --border: #2A2D35;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── LOGO SVG ── */
.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.logo-descriptor {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── NAV ── */
header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(26, 29, 36, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

.nav-links a:not(.btn-nav) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-main);
}

/* Botón Hablemos en el Nav */
.nav-links a.btn-nav,
.btn-nav {
    background: var(--accent);
    color: #000 !important;
    /* Forzamos el negro para contraste perfecto */
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    /* Más negrita para que resalte */
    font-size: 0.875rem;
    font-family: var(--font-display);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

.nav-links a.btn-nav:hover,
.btn-nav:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    color: #000 !important;
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--text-muted);
}

.hero>.container>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

/* ── SECTIONS ── */
section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
}

/* ── SERVICES ── */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 380px;
    background: var(--bg-card);
    padding: 36px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform 0.3s;
}

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

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.stag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ── CÓMO TRABAJO ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── PORTFOLIO ── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.portfolio-tag {
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.portfolio-tag-muted {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.portfolio-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.portfolio-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.portfolio-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.portfolio-link:hover {
    opacity: 0.75;
}

.portfolio-card-next {
    border-style: dashed;
    opacity: 0.55;
    pointer-events: none;
}

.portfolio-img-placeholder {
    width: 100%;
    height: 220px;
    background: var(--bg-hover);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 380px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
}

.about-content h2 em {
    font-style: normal;
    color: var(--text-muted);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.stat h4 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.about-chip {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── TESTIMONIOS ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonios-placeholder {
    grid-column: 1 / -1;
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.testimonios-placeholder p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── CONTACT ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 18px;
}

.contact-info>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checklist li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent);
    display: flex;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

/* form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #000;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-main);
}

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

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-copy {
    padding-top: 20px;
    text-align: center;
}

/* ── FADE IN ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fondo1 {
    background-color: #0f111500;
}

.fondo2 {
    background-color: #0e0e1198;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 20px;
        border-radius: 16px;
        border: 1px solid var(--border);
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

    .mobile-toggle {
        display: block;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    header {
        top: 10px;
    }

    section {
        padding: 0 0;

    }
}

/* ═══════════════════════════════════════════
   TAILWIND SITE — Shared custom classes
   ═══════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

.data-grid-bg {
    background-image: radial-gradient(#F59E0B10 1px, transparent 1px);
    background-size: 40px 40px;
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.primary-gradient {
    background: linear-gradient(135deg, #ffc174 0%, #F59E0B 100%);
    color: #472a00;
}

.ghost-border {
    border: 1px solid rgba(42, 45, 53, 0.8);
}

.glass-card {
    background: rgba(42, 45, 53, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-fill {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.contact-icon-bg {
    background: rgba(71, 42, 0, 0.1);
}

.fab-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
}

/* ── CONTACTO PAGE ── */
.project-type input[type="radio"] {
    display: none;
}

.project-type label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid rgba(42, 45, 53, 0.8);
    background: #1A1D24;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    font-family: 'Space Grotesk', sans-serif;
}

.project-type label .material-symbols-outlined {
    font-size: 1.5rem;
    color: #9CA3AF;
    transition: color 0.2s;
}

.project-type input[type="radio"]:checked+label {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    color: #F59E0B;
}

.project-type input[type="radio"]:checked+label .material-symbols-outlined {
    color: #F59E0B;
}

.project-type label:hover {
    border-color: rgba(245, 158, 11, 0.4);
    color: #F3F4F6;
}

.project-type label:hover .material-symbols-outlined {
    color: #F3F4F6;
}

.form-input {
    width: 100%;
    background: #22262F;
    border: 1px solid rgba(42, 45, 53, 0.8);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #F3F4F6;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder {
    color: #9CA3AF;
    opacity: 0.7;
}

.form-input:focus {
    border-color: #F59E0B;
    background: #1A1D24;
}

textarea.form-input {
    resize: vertical;
    min-height: 130px;
}

.channel-card {
    transition: transform 0.25s, border-color 0.25s;
}

.channel-card:hover {
    transform: translateY(-4px);
}

.timeline-line {
    width: 1px;
    background: linear-gradient(to bottom, #F59E0B40, #F59E0B10);
    flex-shrink: 0;
}

/* ── PORTFOLIO MODAL ── */
.portfolio-card-modal {
    cursor: pointer;
}

#project-modal {
    transition: opacity 0.25s ease;
}

#modal-card {
    animation: modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-in {
    from {
        transform: scale(0.88) translateY(24px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}