/* ============================================
   CYBERDEVTECHART-CREATIVA - MAIN STYLES
   by Liliana Salinas
   ============================================ */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #2d3436;
    --darker: #1a1a2e;
    --light: #f8f9fa;
    --gray: #636e72;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
    --gradient-3: linear-gradient(135deg, #fd79a8 0%, #fab1a0 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d3436 50%, #6c5ce7 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: var(--dark);
    background: var(--light);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 15px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand span {
    font-weight: 300;
    font-size: 0.85rem;
    display: block;
    -webkit-text-fill-color: rgba(255,255,255,0.6);
    margin-top: -5px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover { color: white !important; }
.nav-link:hover::after { width: 80%; }

.btn-nav {
    background: var(--gradient-1);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white !important;
}

.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.3);
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.6; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    color: #a29bfe;
    font-size: 0.9rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #a29bfe 0%, #00cec9 50%, #fd79a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns { animation: fadeInUp 1s ease 0.3s both; }

.btn-hero-primary {
    background: var(--gradient-1);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5);
    color: white;
}

.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    margin-left: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.hero-stats {
    margin-top: 50px;
    display: flex;
    gap: 40px;
    animation: fadeInUp 1s ease 0.5s both;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-item p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, rgba(0, 206, 201, 0.2) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-circle::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px dashed rgba(162, 155, 254, 0.3);
    animation: rotate-slow 20s linear infinite reverse;
}

.hero-circle-inner {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    animation: float-icon 4s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

.floating-icon:nth-child(2) { top: 10%; left: 5%; animation-delay: 0s; color: #a29bfe; }
.floating-icon:nth-child(3) { top: 20%; right: 5%; animation-delay: 1s; color: #00cec9; }
.floating-icon:nth-child(4) { bottom: 20%; left: 0; animation-delay: 2s; color: #fd79a8; }
.floating-icon:nth-child(5) { bottom: 15%; right: 10%; animation-delay: 0.5s; color: #fab1a0; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========== SECTIONS GENERAL ========== */
.section-padding { padding: 100px 0; }

.section-title { text-align: center; margin-bottom: 60px; }

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title h2 .highlight { color: var(--primary); }

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services { background: white; }

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.5s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:nth-child(1) .service-icon { background: rgba(108, 92, 231, 0.1); color: var(--primary); }
.service-card:nth-child(2) .service-icon { background: rgba(0, 206, 201, 0.1); color: var(--secondary); }
.service-card:nth-child(3) .service-icon { background: rgba(253, 121, 168, 0.1); color: var(--accent); }
.service-card:nth-child(4) .service-icon { background: rgba(250, 177, 160, 0.1); color: #e17055; }

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

.service-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.service-tag {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== PORTFOLIO / DEMO ========== */
.portfolio {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.portfolio-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.portfolio-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.portfolio-img .demo-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.portfolio-img.farmacia .demo-screen { background: linear-gradient(135deg, #e8f5f1 0%, #e3f0fd 100%); color: #00b894; }
.portfolio-img.tienda .demo-screen { background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%); color: #e17055; }
.portfolio-img.dashboard .demo-screen { background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%); color: #6c5ce7; }
.portfolio-img.app .demo-screen { background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%); color: #00cec9; }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.btn-view-demo {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-view-demo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-body { padding: 30px; }

.portfolio-body h5 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.portfolio-body p { color: var(--gray); font-size: 0.9rem; margin-bottom: 15px; }

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

.portfolio-tag {
    background: #f8f9fa;
    color: var(--gray);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========== PROCESS ========== */
.process { background: white; }

.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

.process-step:last-child::after { display: none; }

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.process-step h4 { font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--gray); font-size: 0.95rem; }

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3436 100%);
    color: white;
}

.testimonials .section-title h2 { color: white; }
.testimonials .section-title p { color: rgba(255,255,255,0.6); }

.testimonial-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 92, 231, 0.4);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.stars { color: #fdcb6e; margin-bottom: 15px; font-size: 0.9rem; }

.testimonial-card p {
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.testimonial-card h5 { font-weight: 600; margin-bottom: 5px; color: white; }
.testimonial-card small { color: rgba(255,255,255,0.4); }

/* ========== CTA ========== */
.cta {
    background: var(--gradient-1);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cta::before { width: 400px; height: 400px; top: -150px; right: -100px; }
.cta::after { width: 300px; height: 300px; bottom: -100px; left: -80px; }

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-cta-light {
    background: white;
    color: var(--primary);
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: var(--dark);
    color: white;
}

/* ========== CONTACT ========== */
.contact { background: white; }

.contact-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ede9fe 100%);
    padding: 40px;
    border-radius: 25px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.1);
}

.contact-info-text h5 { font-weight: 600; margin-bottom: 3px; font-size: 1rem; }
.contact-info-text p { color: var(--gray); margin: 0; font-size: 0.9rem; }

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-control-custom {
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
    outline: none;
}

.btn-submit {
    background: var(--gradient-1);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--darker);
    color: white;
    padding: 80px 0 30px;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
}

.footer p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

.footer h5 {
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
    font-size: 1.05rem;
}

.footer-links { padding: 0; }
.footer-links li { margin-bottom: 12px; list-style: none; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(5deg);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ADMIN NAV BUTTON ========== */
.btn-admin-nav {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    margin-left: 5px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(253, 121, 168, 0.3);
}

.btn-admin-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.5);
    color: white !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.3rem; }
    .hero-stats { gap: 25px; flex-wrap: wrap; }
    .btn-hero-outline { margin-left: 0; margin-top: 15px; }
    .section-title h2 { font-size: 2rem; }
    .hero-circle { width: 300px; height: 300px; }
    .hero-circle-inner { width: 180px; height: 180px; font-size: 3.5rem; }
    .process-step::after { display: none; }
}

@media (max-width: 767px) {
    .hero { padding: 130px 0 80px; text-align: center; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { margin: 0 auto 30px; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; min-height: 350px; }
    .hero-circle { width: 250px; height: 250px; }
    .hero-circle-inner { width: 150px; height: 150px; font-size: 3rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .btn-hero-outline { margin-left: 0; margin-top: 15px; }
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
    }
    .btn-nav { margin-left: 0; margin-top: 10px; display: inline-block; }
}

/* ============================================
   PLANTILLAS A LA VENTA
   ============================================ */
.templates {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef0f7 100%);
}

.template-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(108, 92, 231, 0.08);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(108, 92, 231, 0.3);
}

.template-thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 3rem;
}

.template-thumb.farmacia  { background: var(--gradient-2); }
.template-thumb.tienda    { background: var(--gradient-3); }
.template-thumb.dashboard { background: var(--gradient-1); }
.template-thumb.app       { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }

.template-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.template-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.template-body h5 {
    font-weight: 700;
    margin: 8px 0 10px;
    font-size: 1.15rem;
}

.template-body p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.template-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.template-includes li {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 7px;
}

.template-includes i {
    color: var(--secondary);
    margin-right: 8px;
    font-size: 0.75rem;
}

.template-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.template-price {
    font-weight: 800;
    color: var(--dark);
    font-size: 1rem;
}

.btn-template {
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-template:hover {
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.templates-note {
    margin-top: 45px;
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 15px;
    padding: 22px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.templates-note i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
}

.templates-note strong { display: block; margin-bottom: 5px; }

.templates-note p {
    margin: 0;
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   MODAL DE VISTA PREVIA
   ============================================ */
.preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-modal.open { display: flex; }

.preview-box {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.preview-head {
    background: var(--darker);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.preview-head h5 { margin: 0; font-weight: 700; font-size: 1.05rem; }
.preview-head small { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

.preview-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preview-close:hover { background: var(--accent); transform: rotate(90deg); }

.preview-frame-wrap {
    position: relative;
    flex-grow: 1;
    background: #f1f2f6;
    overflow: hidden;
}

.preview-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Capa que impide interactuar con la plantilla: solo se puede mirar */
.preview-shield {
    position: absolute;
    inset: 0;
    cursor: not-allowed;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
}

.preview-watermark {
    background: rgba(26, 26, 46, 0.75);
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 7px 20px;
    border-radius: 20px;
    user-select: none;
}

.preview-foot {
    padding: 15px 24px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.preview-foot p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray);
}

.preview-actions { display: flex; gap: 10px; }

.btn-preview-ghost {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-preview-ghost:hover { background: var(--primary); color: white; }

.btn-preview-buy {
    background: #25D366;
    color: white;
    border-radius: 25px;
    padding: 9px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
}

.btn-preview-buy:hover { background: #1da851; color: white; }

@media (max-width: 767px) {
    .preview-box { height: 94vh; }
    .preview-foot { justify-content: center; text-align: center; }
    .preview-foot p { order: 2; }
    .preview-actions { width: 100%; justify-content: center; }
}

/* ============================================
   FEEDBACK DEL FORMULARIO
   ============================================ */
.form-feedback {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.form-feedback.show { display: block; }

.form-feedback.ok {
    background: rgba(0, 184, 148, 0.12);
    color: #00875f;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.form-feedback.error {
    background: rgba(214, 48, 49, 0.1);
    color: #c0392b;
    border: 1px solid rgba(214, 48, 49, 0.25);
}

.form-feedback a { color: inherit; font-weight: 700; }

.form-alt {
    margin: 18px 0 0;
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
}

.form-alt a {
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
}

.form-alt a:hover { text-decoration: underline; }

/* Enlaces dentro de la tarjeta de contacto */
.contact-info-text a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
}

.contact-info-text a:hover { color: var(--primary); }
