:root {
    --bg: #050505;
    --accent: #8b5cf6;
    --text: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Creamos el fondo animado */
body {
    margin: 0;
    padding: 0;
    background: #050505;
    min-height: 100vh;
    color: #fff;
    font-family: sans-serif;
    overflow-x: hidden;
}


.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #050505;
}

.animated-background::before,
.animated-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
}

.animated-background::before {
    width: 45vw;
    height: 45vw;
    max-width: 700px;
    max-height: 700px;
    background: var(--accent);
    opacity: 0.18;
    top: -15%;
    left: -10%;
    animation: meshMove1 18s ease-in-out infinite;
}

.animated-background::after {
    width: 40vw;
    height: 40vw;
    max-width: 600px;
    max-height: 600px;
    background: #3b82f6;
    opacity: 0.14;
    bottom: -10%;
    right: -5%;
    animation: meshMove2 22s ease-in-out infinite;
}

.mesh-blob-3 {
    position: fixed;
    width: 35vw;
    height: 35vw;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    background: #ec4899;
    filter: blur(130px);
    opacity: 0.1;
    top: 40%;
    left: 55%;
    z-index: -1;
    animation: meshMove3 25s ease-in-out infinite;
}

@keyframes meshMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15%, 10%) scale(1.15); }
    66% { transform: translate(-5%, 15%) scale(0.9); }
}

@keyframes meshMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10%, -15%) scale(1.1); }
    66% { transform: translate(10%, -5%) scale(0.95); }
}

@keyframes meshMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20%, -20%) scale(1.2); }
}



/* Header: Ajustado para ser más compacto */
header {
    padding: 2rem 5%; /* Más altura para el header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Línea mucho más sutil */
    background: rgba(5, 5, 5, 0.8); /* Fondo semi-transparente */
    backdrop-filter: blur(10px); /* Efecto cristal desenfocado */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 45vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
}

.animate-hero {
    animation: heroFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.hero-content h1 {
    font-size: 3.5rem;          /* Tu tamaño original */
    letter-spacing: 8px;        /* Look alargado */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
}

/* Subtítulo principal */
.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Bajada descriptiva */
.hero-content p.hero-description {
    font-size: 1rem;
    color: #a0a0a0;             /* Tu gris de contraste */
    margin-bottom: 2rem;
    max-width: 580px;           /* Un poco más amplio para albergar la bajada comercial */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-content p.hero-description strong {
    color: #fff;
}

/* Eyebrow (Etiqueta superior) */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Botones y acciones */
.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE DEL HERO PARA CELULARES
   ========================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding: 2.5rem 1rem 1.5rem 1rem !important;
    }

    .hero-content h1 {
        font-size: 2.3rem !important; /* Se achica sutilmente para que no quiebre renglón mal */
        letter-spacing: 4px !important;  /* Reducimos un poco el tracking en mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .hero-content p.hero-description {
        font-size: 0.92rem !important;
        max-width: 100% !important;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
}

.cta-secondary {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cta-secondary:hover {
    color: #fff;
}

/* Stack: Reducción de márgenes y paddings */
.stack {
    padding: 1rem 2rem 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stack h2 {
    text-align: center;
    margin-bottom: 1.5rem; /* Acercado a las tarjetas */
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* Menos espacio entre tarjetas */
}

.card {
    background: #0a0a0a;
    padding: 1.2rem;
    border: 1px solid #222;
    border-radius: 10px;
    transition: 0.3s ease;
}


/* Botón: Ajustes finos */
.cta-button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 15px;
    display: inline-block; /* NUEVO — necesario para que un <a> se vea como botón */
    text-decoration: none;  /* NUEVO — saca el subrayado típico de link */
}

.cta-button:hover {
    background: var(--accent);
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding-left: 0; /* Eliminamos el padding extra para que use el de la navbar */
}

/* Quitar los puntos y alinear el menú */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px; /* Mucho más espacio entre enlaces */
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent); /* Tu color de acento */
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}



.project-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.card-style {
    background: #0a0a0a !important;
    border: 1px solid #222 !important;
    border-radius: 15px !important;
    padding: 15px !important;
    display: block !important;
}

.card-style img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}



.project-info {
    padding: 1.5rem;
}

.label {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.project-info p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Asegurar que el logo de la tarjeta se vea perfecto */
.project-logo {
    width: 150px;       /* Tamaño fijo para que se vea pequeño y elegante */
    height: 150px;      /* Mismo alto para que sea un cuadrado */
    object-fit: contain; /* Muestra el logo completo sin recortar */
    background: #050505; /* Fondo oscuro para la transparencia */
    padding: 15px;      /* Espacio interno para que no toque los bordes */
    display: block;     /* Permite usar márgenes para centrar */
    margin: 0 auto;     /* Centra horizontalmente el logo dentro de la tarjeta */
    border-radius: 10px; /* Opcional: esquinas redondeadas al fondo del logo */
    
    /* Un extra para que se vea más prolijo al cargar */
    border: 1px solid #222; 
}

/* El link "Ver Proyecto" con estilo moderno */
.view-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 10px;
    transition: 0.3s;
}

.view-link:hover {
    letter-spacing: 2px;
}


/* ==========================================
   ESTILOS FOOTER CON CTA DE PRESUPUESTO
   ========================================== */

.site-footer {
    width: 100% !important;
    max-width: 100% !important;
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #222;
    background: #050505;
    color: #666;
    font-size: 0.85rem;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Call To Action (Solicitar Presupuesto) */
.footer-cta h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.footer-cta p {
    color: #8f8f9d;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

.btn-budget-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0ab !important;
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 99px;
    transition: all 0.25s ease;
}

.btn-budget-cta:hover {
    background: #0f0f14;
    border-color: rgba(168, 85, 247, 0.3);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-budget-cta .btn-arrow {
    width: 14px;
    height: 14px;
    color: #666675;
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn-budget-cta:hover .btn-arrow {
    transform: translateX(3px);
    color: #a855f7;
}

/* Fila Inferior (Copyright y Links) */
.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    margin: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent, #a855f7);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Contenedor de la página legal */
/* ==========================================
   ESTILO EDITORIAL MINIMALISTA - LEGALES
   ========================================== */

.legal-container {
    max-width: 740px !important;
    margin: 5rem auto !important;
    padding: 0 30px !important;
    color: #a1a1aa !important;
    font-family: inherit !important;
    line-height: 1.8 !important;
    box-sizing: border-box !important;
}

/* Título principal de la página */
.legal-container h1 {
    color: #ffffff !important;
    font-size: 2.3rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 8px 0 !important;
}

/* Fecha de última actualización */
.legal-container .update-date {
    display: block !important;
    color: #71717a !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    margin-bottom: 3.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 1.5rem !important;
}

/* Párrafos principales */
.legal-container p {
    font-size: 0.98rem !important;
    color: #a1a1aa !important;
    margin-bottom: 1.4rem !important;
}

/* Textos en negrita con buen contraste */
.legal-container strong {
    color: #f4f4f5 !important;
    font-weight: 600 !important;
}

/* Textos en cursiva (etiquetas secundarias) */
.legal-container em {
    color: #d4d4d8 !important;
    font-style: italic !important;
}

/* Títulos de sección (h2) con la barra vertical violeta de acento */
.legal-container h2 {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-top: 3rem !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    position: relative !important;
    padding-left: 16px !important;
}

.legal-container h2::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    bottom: 2px !important;
    width: 3px !important;
    background: #a855f7 !important;
    border-radius: 4px !important;
}

/* Adaptabilidad perfecta para celulares */
@media (max-width: 768px) {
    .legal-container {
        margin: 2rem 15px !important;
        padding: 0 15px !important;
    }
    .legal-container h1 {
        font-size: 1.8rem !important;
    }
}

/* Fecha de actualización */
.update-date {
    display: block;
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

/* Títulos de sección */
.legal-container h2 {
    color: var(--accent);
    margin-top: 2.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Párrafos */
.legal-container p {
    margin-bottom: 1.2rem;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .legal-container {
        margin: 2rem auto;
    }
    .legal-container h1 {
        font-size: 1.8rem;
    }
}

.legal-container h2 {
    cursor: pointer;
    transition: color 0.3s ease;
}

.legal-container h2:hover {
    color: #fff; /* O el color que prefieras para el resaltado */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #888;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Asegura que el overlay siempre gane y sea la capa superior absoluta */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 999999; /* Aumentado por seguridad */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

/* ESTO ES LO QUE SE ACTIVA AL HACER CLIC */
.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================
   MEJORAS VISUALES PORTFOLIO (GLOWS & CARDS)
   ========================================== */

/* Contenedor principal con posicionamiento para los glows */
.portfolio-section, 
main.portfolio-container {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Evita scrollbars innecesarios por los glows */
    padding-bottom: 60px;
}

/* 1. Ambient Glows de Fondo */
.portfolio-section::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.portfolio-section::after {
    content: "";
    position: absolute;
    bottom: 20%;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

/* 2. Tarjetas con Glassmorphic Glow y Hover */
.portfolio-card, 
.project-card,
.portfolio-item {
    background: rgba(13, 13, 18, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.3) !important; /* Detalle violeta superior */
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover en Tarjetas */
.portfolio-card:hover, 
.project-card:hover,
.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.2) !important;
}

/* 3. Título PORTFOLIO más potente */
.portfolio-title, 
h1.section-title {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

/* Subtítulos (Aplicaciones Móviles / Sitios Web) */
.portfolio-section h2,
.category-title {
    color: #a855f7;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.radio-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.radio-card {
    background: rgba(13, 13, 18, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(168, 85, 247, 0.35) !important; /* Resplandor púrpura superior */
    border-radius: 18px !important;
    padding: 12px !important;
    width: 220px !important;
    height: 420px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.radio-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.25) !important;
}

.radio-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 10px !important;
}


/* --- Brand Story Section --- */
.brand-story {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px;
  text-align: left;
}

.brand-story {
    max-width: 720px;
    margin: 4rem auto !important; /* Lo aleja con fuerza de los elementos de arriba y abajo */
    padding: 80px 24px !important; /* Más aire interno para que no se sienta apretado */
    text-align: left;
}

.brand-story h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px !important; /* Separa el título de los párrafos interiores */
    color: #ffffff;
    letter-spacing: 0.05em;
}

.brand-story-content {
  line-height: 1.8;
  font-size: 0.98rem;
  color: #aaaaaa;
}

.brand-story-content p {
    margin-bottom: 1.5rem !important; /* Separa cada párrafo individualmente */
}

.story-lead {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.story-block {
  margin-top: 28px;
}

.story-block h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: left;
}

.story-intro {
  margin-bottom: 12px;
}

/* Lista limpia de servicios */
.story-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.story-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #aaaaaa;
}

.story-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
}

.story-list li strong {
  color: #ffffff;
}


.phone-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    padding: 10px;
    border: 2px solid #2a2a2a;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.phone-mockup img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}


.project-description {
    text-align: center;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}



.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-text {
    color: #a0a0a0;
    margin-bottom: 2rem;
}



.before-after-container {
    max-width: 500px;
    margin: 3rem auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
}

.before-after-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.before-wrapper .img-before {
    width: 200%; /* mismo ancho que el contenedor completo original */
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--accent);
    pointer-events: none;
    z-index: 2;
    transform: translateX(-50%);
}



.project-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.breadcrumb-container {
    margin-bottom: 2.5rem;
}

.back-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

/* Grilla de 2 columnas */
.project-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Columna de la imagen */
.project-media-col {
    background: rgba(18, 18, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.detail-logo {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Columna de texto */
.project-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-info-col .label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #818cf8;
}

.project-info-col h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.project-tagline {
    font-size: 1.05rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.project-actions {
    margin-top: 10px;
}

.btn-primary {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.project-sections {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.info-block h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.info-block p {
    font-size: 0.92rem;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.tech-stack {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #d1d5db;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==========================================================
   ESTILOS EXCLUSIVOS: DETALLE Y GALERÍA DE LA APP DE RADIO
   ========================================================== */

.app-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    color: #fff;
}

.app-breadcrumb {
    margin-bottom: 2.5rem;
}

.app-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.app-breadcrumb a:hover {
    color: #fff;
}

/* Grilla principal de 2 columnas */
.app-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Columna Izquierda: Información Fija */
.app-fixed-info {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-detail-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #050505;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #222;
    margin: 0;
}

.app-fixed-info .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.app-fixed-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.app-tagline {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

.app-actions-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-store-dl {
    background: #0a0a0a;
    border: 1px solid #222;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-store-dl:hover {
    border-color: var(--accent);
    background: #111;
}

/* Columna Derecha: Galería de Mockups de la App */
.app-mockup-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.app-gallery-title {
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.app-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.app-mockup-item {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.app-mockup-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.app-mockup-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.app-mockup-caption {
    font-size: 0.75rem;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

/* Tamaños distribuidos de los mockups en la grilla */
.app-mockup-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.app-mockup-item.medium {
    grid-column: span 1;
}

.app-mockup-item.small {
    grid-column: span 1;
}

.app-mockup-item.wide {
    grid-column: span 3;
}

/* Sección de tecnologías interna */
.app-tech-section {
    margin-top: 20px;
    border-top: 1px solid #222;
    padding-top: 25px;
}

.app-tech-stack {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-tech-stack li {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #d1d5db;
}

/* Adaptabilidad Responsive para Celulares */
@media (max-width: 900px) {
    .app-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-fixed-info {
        position: relative;
        top: 0;
        align-items: center;
        text-align: center;
    }
    
    .app-mockup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-mockup-item.large,
    .app-mockup-item.wide {
        grid-column: span 2;
    }
}

/* Contenedor principal de la sección de estadísticas */
.stats-section {
    display: flex;                 /* Pone los elementos en fila horizontal */
    justify-content: space-around; /* Separa los bloques de forma equitativa */
    gap: 2rem;                     /* Espacio mínimo entre cada bloque */
    padding: 3rem 1rem;            /* Espacio interno arriba/abajo y a los costados */
    background: rgba(255, 255, 255, 0.02); /* Fondo oscuro translúcido muy sutil */
    border-top: 1px solid rgba(255, 255, 255, 0.06);    /* Línea divisoria superior */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Línea divisoria inferior */
    margin: 4rem 0;                /* Margen externo para separarlo del resto de la web */
}

/* Cada bloque individual que contiene el número y su etiqueta */
.stat-box {
    text-align: center; /* Centra todo el texto horizontalmente */
}

/* El número grande que se anima */
.stat-number {
    font-size: 2.5rem;   /* Tamaño grande y destacado */
    font-weight: 800;    /* Bien negrita para que tenga peso visual */
    color: #ffffff;      /* Blanco puro */
    letter-spacing: -0.02em; /* Junta un poquito los caracteres para que se vea más moderno */
}

/* El texto chiquito de abajo (ej: "Proyectos Completados") */
.stat-label {
    display: block;      /* Hace que salte a la línea de abajo del número */
    margin-top: 0.5rem;  /* Separación entre el número y el texto */
    font-size: 0.85rem;  /* Tamaño pequeño */
    color: #888888;      /* Gris elegante para que no compita con el número */
    text-transform: uppercase; /* Todo en mayúsculas para estética pro */
    letter-spacing: 0.05em;    /* Letras un poco más separadas (estilo tech) */
}

/* Adaptabilidad para celulares (pantallas chicas) */
@media (max-width: 768px) {
    .stats-section {
        flex-direction: column; /* Pone los bloques uno abajo del otro en vez de al lado */
        gap: 2rem;              /* Espacio vertical entre los bloques */
    }
}


/* ==========================================
   PRESUPUESTO / BUDGET SECTION
   ========================================== */

/* ==========================================
   BUDGET PAGE - HIGH-END DARK THEME
   ========================================== */

/* Corrección del body para ocupar pantalla completa y centrar verticalmente */
body.budget-page {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #050508; /* Color de fondo base de la página */
}

/* Forzado del Menú / Header a estirarse completo en la parte superior */
body.budget-page header,
body.budget-page nav,
body.budget-page .main-header,
body.budget-page .navbar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Corrección para que el Footer quede al 100% de ancho y abajo */
body.budget-page footer,
body.budget-page .footer,
body.budget-page .site-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-top: auto !important; /* Empuja el footer siempre al final de la pantalla */
}

/* Sección de Presupuesto: Ocupa todo el espacio restante y centra el contenido */
.budget-section {
  width: 100%;
  max-width: 820px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centrado vertical en la pantalla */
  align-items: center;    /* Centrado horizontal */
  box-sizing: border-box;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: #a855f7;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 300px;
  height: 300px;
  background: #6366f1;
  bottom: -50px;
  right: -50px;
}

/* Contenedor Principal (Tarjeta Glassmorphism) */
.budget-card {
  width: 100%; /* Para ocupado el ancho del contenedor máx 820px */
  box-sizing: border-box;
  background: rgba(13, 13, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(168, 85, 247, 0.4); /* Detalle púrpura superior */
  border-radius: 20px;
  padding: 44px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.08);
}

.budget-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #a855f7;
  font-weight: 700;
  margin-bottom: 8px;
}

.budget-header h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.budget-intro {
  color: #8f8f9d;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Formulario */
.budget-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label, .group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d1d6;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group.half { flex: 1; }

/* Inputs y Selects Estilizados */
.budget-form input[type="text"],
.budget-form input[type="email"],
.budget-form select,
.budget-form textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: #08080b;
  border: 1px solid #1c1c24;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.budget-form input:focus,
.budget-form select:focus,
.budget-form textarea:focus {
  border-color: #a855f7;
  background-color: #0d0d12;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.budget-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNhODU1ZjciIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwb2x5bGluZSBwb2ludHM9IjYgOSAxMiAxNSAxOCA5Ij48L3BvbHlsaW5lPjwvc3ZnPg==");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

/* Pills Compactas para Selección de Servicio */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.pill-item {
  position: relative;
  cursor: pointer;
}

.pill-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-box {
  background-color: #08080b;
  border: 1px solid #1c1c24;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.pill-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e0e0;
}

.pill-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}

.pill-item:hover .pill-box {
  border-color: #383845;
  background-color: #0e0e14;
}

/* Estado Pill Seleccionada */
.pill-item input:checked + .pill-box {
  border-color: #a855f7;
  background-color: #170e24;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.pill-item input:checked + .pill-box .pill-title {
  color: #ffffff;
}

/* Botón Submit */
.submit-btn {
  margin-top: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

.btn-arrow { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 600px) {
  .budget-card { padding: 24px 18px; }
  .form-row { flex-direction: column; }
  .pill-grid { grid-template-columns: 1fr; }
  .submit-btn { width: 100%; }
}


