:root {
    --fondo: #06080f;
    --fondo-secundario: #0f1320;
    --texto-claro: #f4f4f7;
    --texto-secundario: #c7c7d0;
    --accento: #f0c419;
    --accento-claro: #ffc857;
    --borde: #1b2030;
    --card: #111623;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(240, 196, 25, 0.16), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(61, 126, 255, 0.16), transparent 25%),
        var(--fondo);
    color: var(--texto-claro);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
    animation: drift 12s ease-in-out infinite alternate;
}

body::before {
    top: -90px;
    left: -110px;
    background: rgba(240, 196, 25, 0.3);
}

body::after {
    right: -120px;
    bottom: -90px;
    background: rgba(61, 126, 255, 0.28);
    animation-duration: 16s;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px 48px;
    position: relative;
    z-index: 1;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto 220px;
    align-items: start;
    gap: 24px;
    padding: 16px 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 8, 15, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.brand-tag {
    margin: 4px 0 0;
    color: var(--texto-secundario);
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-self: start;
    padding-top: 28px;
    white-space: nowrap;
}

.site-header #chat-contenedor {
    margin-left: 0;
    width: 220px !important;
}

.main-nav a {
    color: var(--texto-secundario);
    font-weight: 600;
    transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
    color: var(--accento);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
    min-height: 560px;
}

.section-about,
.section-contact,
.showcase-section {
    scroll-margin-top: 120px;
}

.hero-copy {
    padding: 24px 0;
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accento);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero-copy h1 {
    display: block;
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 3vw, 3.8rem);
    line-height: 1.05;
    background: linear-gradient(120deg, #ffffff 0%, #ffe8a3 45%, var(--accento) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 40px rgba(240, 196, 25, 0.14);
}

.hero-copy p {
    display: block;
    position: relative;
    max-width: 680px;
    color: var(--texto-secundario);
    font-size: clamp(1rem, 1.05vw, 1.05rem);
    margin: 0 0 28px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--texto-secundario);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.stat-card {
    padding: 14px 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card strong {
    display: block;
    color: var(--accento);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.stat-card span {
    color: var(--texto-secundario);
    font-size: 0.86rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    min-width: 160px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accento), var(--accento-claro));
    color: #0d0d0d;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--texto-claro);
    background: rgba(255, 255, 255, 0.04);
}

.ventana-codigo {
    background: linear-gradient(180deg, #111625, #0a0f1b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    min-height: 420px;
    transform: perspective(1200px) rotateY(-4deg);
}

.barra-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
}

.botones {
    display: flex;
    gap: 10px;
}

.boton {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.cerrar { background-color: #ff5f56; }
.minimizar { background-color: #ffbd2e; }
.maximizar { background-color: #27c93f; }

.titulo-archivo {
    color: rgba(255, 255, 255, 0.7);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.85rem;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
    animation: floatCard 8s ease-in-out infinite;
}

.preview-image,
.project-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.section-about,
.section-projects,
.section-contact,
.showcase-section {
    margin-bottom: 48px;
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-about h2,
.section-projects h2,
.section-contact h2 {
    margin: 0 0 18px;
    font-size: 2rem;
}

.section-about p,
.section-contact p,
.section-header p {
    color: var(--texto-secundario);
    max-width: 760px;
}

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

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--accento);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-heading p {
    margin: 0;
    max-width: 480px;
    color: var(--texto-secundario);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.service-card h3 {
    margin: 0;
    color: var(--texto-claro);
    font-size: 1.25rem;
    line-height: 1.3;
}

.service-card p {
    margin: 0;
    color: var(--texto-secundario);
}

.showcase-card {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 270px;
    justify-content: flex-start;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 196, 25, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.showcase-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
    margin-top: 4px;
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240, 196, 25, 0.08), transparent 45%);
    pointer-events: none;
}

.showcase-card--desktop,
.showcase-card--mobile {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.showcase-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.preview-bar {
    height: 6px;
    width: 70px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(240, 196, 25, 0.9), rgba(255, 255, 255, 0.25));
}

.showcase-icon {
    font-size: 1.8rem;
    margin: 0;
    color: var(--accento);
    filter: drop-shadow(0 4px 10px rgba(240, 196, 25, 0.16));
}

.showcase-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--texto-claro);
}

.showcase-card p {
    margin: 0;
    color: var(--texto-secundario);
    font-size: 0.96rem;
}

.showcase-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.showcase-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 7px 10px 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-list li {
    color: var(--texto-claro);
    font-size: 0.95rem;
    padding-left: 14px;
    position: relative;
}

.showcase-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.showcase-image {
    width: 100%;
    max-width: 220px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto 4px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.section-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.site-footer {
    text-align: center;
    padding: 22px 0 8px;
    color: var(--texto-secundario);
    margin-top: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) perspective(1200px) rotateY(-4deg);
    }
    50% {
        transform: translateY(-8px) perspective(1200px) rotateY(-2deg);
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(20px, -20px, 0) scale(1.08);
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }
    .hero-copy {
        padding: 0;
    }
    .hero-panel {
        min-height: auto;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-contact {
        grid-template-columns: 1fr;
    }
    .ventana-codigo {
        min-height: auto;
    }
}

@media (max-width: 780px) {
    .site-shell {
        padding: 22px 20px 40px;
    }
    .site-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .site-header #chat-contenedor {
        width: 100% !important;
        flex-basis: 220px;
    }
    .brand {
        width: 100%;
    }
    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
        padding-top: 0;
        white-space: normal;
    }
    .hero-copy h1 {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .section-heading {
        flex-direction: column;
        align-items: start;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        min-width: unset;
    }
    .project-card {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
    }
}

@media (max-width: 540px) {
    .site-shell {
        padding: 18px 16px 32px;
    }
    .site-header {
        align-items: stretch;
    }
    .brand-logo {
        width: 56px;
        height: 56px;
    }
    .brand-tag {
        font-size: 0.9rem;
    }
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav a {
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .hero-copy h1 {
        font-size: 2rem;
    }
    .hero-copy p {
        font-size: 0.96rem;
    }
    .hero {
        gap: 22px;
    }
    .hero-actions {
        gap: 12px;
    }
    .project-card,
    .project-figure {
        border-radius: 18px;
    }
    .section-about h2,
    .section-projects h2,
    .section-contact h2 {
        font-size: 1.75rem;
    }
}

.boton-fiverr {
  background-color: #c19b02;
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease; /* Hace el cambio suave */
  cursor: pointer;
}

.boton-fiverr:hover {
  background-color: #1dbf73;
  color: #ffffff; 
}

.boton-github {
  background-color: #c19b02;
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease; /* Hace el cambio suave */
  cursor: pointer;
}

.boton-github:hover {
  background-color: #24292e;
  color: #ffffff; 
}

.boton-instagram {
  background-color: #c19b02;
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease; /* Hace el cambio suave */
  cursor: pointer;
}

.boton-instagram:hover {
  background-color: #e1306c;
  color: #ffffff; 
}

.boton-linkedin {
  background-color: #c19b02;
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease; /* Hace el cambio suave */
  cursor: pointer;
}
.boton-linkedin:hover {
  background-color: #0077b5;
  color: #ffffff; 
}

/* Forzar a que los botones de las tarifas tengan el look neón de la web */
.tarjeta-pie button {
    background-color: #c19b02 !important; /* Tu color amarillo neón */
    color: #0f172a !important;            /* Texto oscuro idéntico al de tus botones actuales */
    font-weight: 600 !important;
    padding: 10px 24px !important;        /* Tamaño estilizado de píldora */
    border: none !important;
    border-radius: 9999px !important;     /* Esquinas totalmente redondeadas */
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto hover elegante alineado al resto de la página */
.tarjeta-pie button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(236, 248, 51, 0.4);
}

.card-action-container {
    display: flex;
    justify-content: center; /* Centra el botón horizontalmente */
    align-items: center;     
    width: 100%;             
    margin-top: 25px;        
}

.btn-paypal {
    display: inline-flex;    
    align-items: center;
    justify-content: center;
    background-color: #ffc439; /* Amarillo PayPal */
    color: #000000;  
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;        /* Inclinación sutil estilo PayPal */
    padding: 12px 40px;        
    border: none;              /* Quita el borde gris por defecto de los botones */
    border-radius: 50px;       /* Forma de píldora */
    cursor: pointer;           /* Hace que aparezca la mano al pasar el cursor */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15); 
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Efectos de interacción */
.btn-paypal:hover {
    background-color: #f2ba36; 
}

.btn-paypal:active {
    transform: scale(0.97);    
}

/* Colores de las letras de PayPal */
.btn-paypal .pp-blue {
    color: #003087;            /* Azul oscuro */
    margin-left: 5px;          /* Separa el texto anterior */
    font-weight: 800;          /* Un poco más de grosor para simular el logo */
}

.btn-paypal .pp-light-blue {
    color: #0079c1;            /* Azul claro */
    font-weight: 800;
}