:root {
    --bg-color: #000000;
    --card-bg: #0c0d0d;
    --text-main: #ffffff;
    --text-dim: #999999;
    
    --brand-orange: #ff9d2a; 
    --brand-cyan: #14cdb8;   
    --brand-green-wa: #25d366; 
    
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Oswald', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #00ff00 2px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

h1 {
    font-size: 2rem; /* Móvil */
    line-height: 1.1;
    margin-bottom: 15px;
    color: #ffffff; 
}

h1 .no-solo {
    color: #ffb152; 
    display: block;
    text-shadow: 0 0 10px rgba(255, 157, 42, 0.5);
}

@media (min-width: 900px) {
    h1 { font-size: 3.5rem; }
    h1 .no-solo { display: inline; }
}

h2 {
    font-size: 1.2rem;
    color: #d1d1d1; 
    margin-bottom: 20px;
    border-left: 3px solid var(--brand-orange);
    padding-left: 10px;
}

.bio {
    color: #d1d1d1; 
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.hero-image-container {
    width: 100%;
    max-width: 300px;
    position: relative;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: var(--brand-orange);
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: auto;
    display: block !important;
}

@media (max-width: 900px) {
    .hero {
        padding-bottom: 0px !important;
        margin-bottom: 5px !important;
    }
}

.dev-name {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 1);
}

.dev-role {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 150;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-left: 3px solid var(--brand-orange);
    padding-left: 12px;
}

@media (min-width: 900px) {
    .dev-role {
        font-size: 1rem;
    }
}

.dev-slogan {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    color: #d1d1d1;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.dev-slogan .no-solo {
    color: #ffb152;
    text-shadow: 0 0 10px rgba(255, 157, 42, 0.4);
}

@media (min-width: 900px) {
    .dev-name { font-size: 4rem; }
    .dev-role { font-size: 1.4rem; }
    .dev-slogan { font-size: 1.5rem; }
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon img {
    height: 20px;
    filter: grayscale(1) brightness(2);
    transition: var(--transition);
}

.social-icon:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.2);
}

.bio {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 2px 4px rgba(0, 0, 0, 1);
    max-width: 650px;
    margin: 0 0 30px 0;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 900px) {
    .bio {
        margin: 0 auto 30px;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 80px 0;
    }
    .hero-image-container { max-width: 450px; }
    .social-links { justify-content: flex-start; }
    .bio { margin: 0 0 30px 0; }
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .grid-layout {
        grid-template-columns: 1.8fr 1fr;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 900px) {
    .projects-grid { 
        grid-template-columns: 1fr 1fr; 
    }
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible !important;
}

.packages-section .projects-grid {
    margin-top: 20px;
}

.project-card:not(.cta-card):hover {
    border-color: var(--brand-orange);
    transform: translateY(-5px);
}

.card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080808;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
}

.project-card:hover .project-img {
    opacity: 1;
    transform: scale(1.1);
}

.project-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

.tech-tag {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.tag-type {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tag-stack {
    color: var(--brand-orange);
    background: rgba(255, 157, 42, 0.1);
    border-color: rgba(255, 157, 42, 0.2);
}

.tag-platform {
    color: var(--brand-cyan);
    background: rgba(20, 205, 184, 0.1);
    border-color: rgba(20, 205, 184, 0.2);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-headings);
    line-height: 1.2;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.cta-card {
    border: 2px dashed #222;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    cursor: default;
    background: #060606;
}

.cta-card h3 {
    font-size: 1.6rem;
    color: var(--brand-orange);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: var(--text-dim);
    max-width: 300px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(255, 157, 42, 0.4);
}

.btn-whatsapp-full {
    background-color: var(--brand-green-wa);
    color: #fff;
    width: 100%;
    margin-top: 15px;
}

input, textarea {
    width: 100%;
    padding: 14px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1rem;
}

input:focus, textarea:focus {
    border-color: var(--brand-orange);
    outline: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    background: var(--brand-green-wa);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.whatsapp-float img { width: 30px; }

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.popup-overlay.show { display: flex; }

.popup-content {
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 40px 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--brand-orange);
}

.popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
}

.popup-avatar { 
    width: 100px;
    height: auto;
    margin-bottom: 20px; 
    border-radius: 0; 
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.main-footer {
    text-align: center;
    padding: 30px 20px 20px;
    border-top: 1px solid #111;
    margin-top: 20px;
}

.footer-logo-small {
    height: 30px;
    opacity: 0.6;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials img {
    height: 18px;
    opacity: 0.4;
    transition: var(--transition);
}

.footer-socials a:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.ia-message-container {
    background: #080808;
    border: 1px dashed #222;
    padding: 15px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.ia-tag {
    font-family: var(--font-headings);
    font-size: 0.7rem;
    color: var(--brand-orange);
    display: block;
    margin-bottom: 5px;
}

.daily-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.copyright {
    font-size: 0.75rem;
    color: #333;
}

.experience {
    grid-column: 1 / -1;
    overflow: hidden;
    padding: 60px 0;
    width: 100%;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    width: calc(250px * 8);
    animation: scroll 45s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    filter: brightness(0) invert(1) contrast(150%);
    opacity: 0.9;
    transition: var(--transition);
    cursor: pointer;
}

.logo-item:hover {
    filter: brightness(1) invert(0) contrast(100%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-item img {
    max-width: 180px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); }
}

@media (max-width: 768px) {
    .carousel-track {
        width: calc(200px * 8);
    }
    .logo-item {
        width: 200px;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 4)); }
    }
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-orange);
    background: rgba(255, 157, 42, 0.05);
    padding: 3px 12px;
    border: 1px solid rgba(255, 157, 42, 0.3);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-family: var(--font-headings);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.project-card:hover .btn-text {
    border-bottom: 1px solid var(--brand-orange);
}

#twitch-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-bottom: 1px solid #1a1a1a; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#twitch-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

.twitch-section h2 {
    color: #a970ff;
    border-left: 4px solid #a970ff;
}

#project-cta {
    position: relative;
    overflow: visible !important;
}

.card-sticker {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 82px;
    height: auto;
    background-color: transparent;
    padding: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 5; 
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

#project-cta:hover .card-sticker {
    transform: rotate(8deg) scale(1.1);
}

@media (max-width: 600px) {
    .card-sticker {
        width: 60px;
        bottom: -10px;
        right: -5px;
    }
}

.curso-placeholder {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
}

.curso-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-sticker-inline {
    width: 70px;
    height: auto;
    box-shadow: none !important;
    image-rendering: pixelated;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-youtube {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    background-color: #cc0000 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    transform: scale(1.02);
}

.curso-text-content {
    flex: 1;
}

.curso-placeholder h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: var(--brand-orange);
}

.curso-placeholder p {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

.curso-placeholder:hover .card-sticker-inline {
    transform: scale(1.1);
}

.whatsapp-container {
    position: fixed;
    bottom: 35px; 
    right: 25px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 10;
    position: relative;
}

.card-sticker-wa {
    position: absolute;
    right: 75px;
    bottom: 0;
    width: 65px;
    height: auto;
    image-rendering: pixelated;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
    z-index: 5;
}

.wa-bubble {
    position: absolute;
    right: 145px;
    bottom: 15px;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.wa-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #fff;
}

.whatsapp-container:hover .card-sticker-wa {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-container:hover .wa-bubble {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

#dev-name {
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#dev-name:hover {
    transform: scale(1.01);
    text-shadow: 0 0 15px rgba(255, 165, 0, 0.4);
}

#flores-span {
    position: relative;
    cursor: pointer;
}

.mau-sentado-sticker {
    position: absolute;
    bottom: 0.4em;
    right: -10%;
    

    width: 1.3em;
    height: auto;
    
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 10;
}

#flores-span:hover .mau-sentado-sticker {
    opacity: 1;
    transform: translateY(-5px);
}

#modal-servicio {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999; 
    justify-content: center;
    align-items: center;
}

#modal-servicio.active {
    display: flex !important;
}

.packages-section {
    width: 100%;
    display: block;
    clear: both; 
}

.garantia-badge {
    background: rgba(255, 157, 42, 0.1);
    border: 1px dashed var(--brand-orange);
    color: var(--brand-orange);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.garantia-badge.highlight {
    background: var(--brand-orange);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(255, 157, 42, 0.3);
}

.garantia-layout {
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    background: #050505 !important;
    max-width: 550px !important;
}

.garantia-header h3 {
    color: #00ff00;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

#garantia-subtitulo {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 20px;
}

.verde-tech { color: #00ff00; margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; }
.rojo-soft { color: #ff4444; margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; }

.garantia-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.garantia-section li { margin-bottom: 6px; color: #eee; }

.garantia-condiciones {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.garantia-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #222;
    font-style: italic;
    font-size: 0.85rem;
    color: #00ff00;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background: #0c0d0d;
    border: 1px solid #222;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    position: relative;
}

.garantia-layout {
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    max-width: 550px;
}

.garantia-header h3 {
    color: #00ff00;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.verde-tech { color: #00ff00; font-weight: bold; }
.rojo-soft { color: #ff4444; font-weight: bold; }

#modal-lista, #garantia-cubre, #garantia-no-incluye, #garantia-meta {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

#modal-lista li, #garantia-cubre li, #garantia-no-incluye li, #garantia-meta li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

:root {
    --poison-green: #00ff00;
    --poison-green-glow: rgba(0, 255, 0, 0.4);
}

.garantia-badge {
    background: rgba(0, 255, 0, 0.05) !important;
    border: 2px solid var(--poison-green) !important;
    color: var(--poison-green) !important;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    margin-top: auto;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    z-index: 20;
    animation: neonPulse 2s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.garantia-badge.highlight {
    background: var(--poison-green-glow) !important;
    color: #000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px var(--poison-green);
}

.garantia-badge:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 0 25px var(--poison-green), 0 0 10px rgba(255, 255, 255, 0.3);
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.garantia-badge:active {
    transform: scale(0.98);
    box-shadow: 0 0 40px var(--poison-green), 0 0 20px #ffffff;
    transition: 0.1s;
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 5px var(--poison-green), 0 0 2px var(--poison-green-glow); }
    50% { box-shadow: 0 0 15px var(--poison-green), 0 0 5px var(--poison-green-glow); }
    100% { box-shadow: 0 0 5px var(--poison-green), 0 0 2px var(--poison-green-glow); }
}

.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0c0d0d;
    border: 2px solid var(--brand-orange);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.toast-container.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-avatar {
    width: 40px;
    height: auto;
    image-rendering: pixelated;
}

.toast-content p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.confirm-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    z-index: 110000; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.confirm-overlay.show {
    display: flex !important;
}

.confirm-layout {
    background: #050505 !important;
    border: 2px solid var(--brand-orange) !important;
    box-shadow: 0 0 20px rgba(255, 157, 42, 0.15);
    max-width: 400px !important;
    text-align: center;
    border-radius: 16px;
    padding: 30px 20px;
}

.confirm-avatar-container {
    width: 60px;
    height: auto;
    margin: 0 auto 20px;
}

.confirm-avatar {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

#confirm-titulo {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}

#confirm-mensaje {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 25px;
    line-height: 1.4;
}

.confirm-success h3 { color: var(--brand-cyan) !important; }
.confirm-error h3 { color: #ff4444 !important; }

.newsletter-confirm-inline {
    display: none; 
    position: absolute;
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff00; 
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    align-items: center;
    gap: 12px;
    z-index: 100;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    white-space: nowrap; 
}

.newsletter-confirm-inline.show {
    display: flex !important;
    animation: fadeInConfirm 0.4s ease-out;
}

.confirm-sticker-inline {
    width: 30px;
    height: auto;
    image-rendering: pixelated;
}

@keyframes fadeInConfirm {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.contact-confirm-inline {
    bottom: -60px;
}

.sam-responsive-sticker {
    position: relative;
    display: block;
    margin: 0 auto 20px auto;
    width: 100px;
    height: auto;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 900px) {
    .sam-responsive-sticker {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 150px;
    }

    .value-text-content {
        padding-left: 160px;
    }
}

.value-proposition:hover .sam-responsive-sticker {
  transform: scale(1.1) translateY(calc(-50% / 1.1));
}

@media (max-width: 899px) {
    .value-proposition:hover .sam-responsive-sticker {
        transform: scale(1.1);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
}

@media (min-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid var(--brand-orange) !important;
    background: linear-gradient(145deg, #0c0d0d 0%, #080808 100%);
    height: 100%;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.quote-icon {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--brand-orange);
    opacity: 0.3;
    height: 30px;
}

.stars {
    color: var(--brand-orange);
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem !important;
    color: #eee !important;
    margin-bottom: 20px !important;
    line-height: 1.5;
}

.testimonial-author {
    border-top: 1px solid #1a1a1a;
    padding-top: 15px;
    margin-top: auto;
}

.testimonial-author strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--brand-cyan);
    font-weight: 600;
}

.sam-active {
  animation: shakeAndPulse 5.0s ease-in-out infinite;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
}

@media (min-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

.money-bag-decoration {
    position: absolute;
    top: -20px; 
    right: 20px;  
    width: 80px;    
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 157, 42, 0.3));
}

.testimonials {
    position: relative;
    width: 100%;
}

.testimonial-card {
    width: 100%; 
    min-height: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .money-bag-decoration {
        width: 60px;
        top: -40px;
    }
}

/* --- ESTILOS DE PAQUETES (AISLADOS PARA REUBICACIÓN Y HOVER) --- */
.project-card.recommended-package:hover {
  transform: scale(1.02) translateY(-5px) !important;
  border-color: var(--brand-cyan) !important;
}

@media (max-width: 768px) {
  .project-card.recommended-package {
    transform: scale(1) !important;
  }
  .project-card.recommended-package:hover {
    transform: scale(1) translateY(-3px) !important;
  }
}

.package-card {
    overflow: visible !important;
}

.packages-section {
    padding-top: 50px; 
}

/* --- REFINAMIENTOS DE UX Y ESPACIADO --- */
section {
    padding: 30px 0 !important;
}

.hero {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
}

.package-wrapper {
    transition: transform 0.3s ease;
}

.project-card {
    overflow: visible !important;
    display: flex;
    flex-direction: column;
}

/* Alineación de listas en paquetes */
.project-card ul li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Ajuste móvil */
@media (max-width: 900px) {
    .hero {
        padding-bottom: 0px !important;
        margin-bottom: 5px !important;
    }
    h2 {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }
    .projects-grid {
        gap: 15px !important;
    }
}

/* --- SECCIÓN: MODALES RESPONSIVOS --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.popup-content, 
.garantia-layout {
    background: #0c0d0d;
    border: 1px solid #222;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px 20px;
    position: relative;
    margin: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem !important;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    padding: 5px;
}

body.modal-open {
    overflow: hidden !important;
}

/* --- SECCIÓN: STICKER MAU COLGADO --- */
#best-seller-wrapper {
    position: relative;
    overflow: visible !important;
}

#mau-colgado {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    top: -60px;
    right: -20px;
    width: 120px;
    height: auto;
    transition: all 0.4s ease-in-out;
}

#best-seller-card {
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

@media (max-width: 768px) {
    #mau-colgado {
        width: 100px;
    }
}

body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

#mau-colgado {
    display: block !important; 
    pointer-events: none; 
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

#best-seller-wrapper {
    overflow: visible !important;
    z-index: 5; 
}

#best-seller-card {
    cursor: pointer;
}

/* --- SECCIÓN: ESTILOS LEGALES (Aviso de Privacidad) --- */
.legal-content {
    background: rgba(12, 13, 13, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    margin: 40px auto 80px !important;
    padding: 80px 10% !important;
    max-width: 1200px !important;
    width: 90% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.legal-content h1 {
    color: var(--brand-orange);
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
}

.legal-content h2 {
    color: var(--brand-cyan);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p, 
.legal-content ul {
    color: #d1d1d1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 40px 25px !important;
    }
}
