@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-primary: #070a13;
    --bg-secondary: #0d1222;
    --bg-card: rgba(17, 24, 43, 0.55);
    --bg-card-hover: rgba(25, 35, 60, 0.7);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 242, 254, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00f2fe;
    --accent-purple: #9d4edd;
    --accent-emerald: #05ffc5;
    --accent-pink: #ff007f;
    --accent-whatsapp: #25d366;
    
    --gradient-hero: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9d4edd 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(157, 78, 221, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, #070a13 0%, #0d1222 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15), transparent 60%);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.25);
    --shadow-neon-emerald: 0 0 20px rgba(5, 255, 197, 0.4);
    --shadow-neon-purple: 0 0 20px rgba(157, 78, 221, 0.25);
    --shadow-whatsapp: 0 0 25px rgba(37, 211, 102, 0.5);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- RESET & GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--gradient-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid tecnológico — líneas finas estilo circuito */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(157, 78, 221, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.025) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    z-index: 0;
    pointer-events: none;
    animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
    0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 80px 80px, 80px 80px, 20px 20px, 20px 20px; }
}

/* Decorative ambient lights — ahora animados */
.ambient-glow-1 {
    position: fixed;
    width: 800px;
    height: 800px;
    top: -100px;
    right: 0px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 220, 255, 0.75) 0%, rgba(0, 180, 255, 0.4) 30%, transparent 65%);
    z-index: 0;
    pointer-events: none;
    animation: aurora1 12s ease-in-out infinite alternate;
    filter: blur(80px);
    mix-blend-mode: screen;
}

.ambient-glow-2 {
    position: fixed;
    width: 1000px;
    height: 1000px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle at 50% 50%, rgba(180, 60, 255, 0.70) 0%, rgba(140, 40, 220, 0.35) 30%, transparent 65%);
    z-index: 0;
    pointer-events: none;
    animation: aurora2 15s ease-in-out infinite alternate;
    filter: blur(90px);
    mix-blend-mode: screen;
}

/* Tercer blob aurora */
.ambient-glow-3 {
    position: fixed;
    width: 600px;
    height: 600px;
    top: 30%;
    left: 20%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 180, 0.55) 0%, rgba(0, 200, 150, 0.25) 35%, transparent 65%);
    z-index: 0;
    pointer-events: none;
    animation: aurora3 18s ease-in-out infinite alternate;
    filter: blur(70px);
    mix-blend-mode: screen;
}

@keyframes aurora1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    33%  { transform: translate(-80px, 60px) scale(1.15); opacity: 1; }
    66%  { transform: translate(60px, -40px) scale(0.9); opacity: 0.85; }
    100% { transform: translate(-40px, 80px) scale(1.1); opacity: 0.95; }
}
@keyframes aurora2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    33%  { transform: translate(100px, -70px) scale(1.2); opacity: 1; }
    66%  { transform: translate(-60px, 50px) scale(0.85); opacity: 0.85; }
    100% { transform: translate(80px, -30px) scale(1.05); opacity: 0.95; }
}
@keyframes aurora3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50%  { transform: translate(-120px, 80px) scale(1.3); opacity: 1; }
    100% { transform: translate(100px, -60px) scale(0.8); opacity: 0.75; }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4facfe 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- BUTTONS & INTERACTIVES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-cyan) 0%, #3b82f6 100%);
    color: #030712;
    border: none;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-neon-purple);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.45);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 40px -15px rgba(0, 242, 254, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(7, 10, 19, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo img, .logo svg {
    filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.8));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover img, .logo:hover svg {
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 1));
}

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

#logo-svg.spinning {
    animation: logo-spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: var(--transition-fast);
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
    box-shadow: var(--shadow-neon);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero-stats .stat-item {
    min-width: 0;
}
/* Nav CTA button hide on mobile */
@media (max-width: 768px) {
    .nav-cta { display: none !important; }
}

.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num-row {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    animation: pulse 4s infinite alternate;
}

/* Hero con foto real */
.hero-photo-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    z-index: 0;
    opacity: 0.7;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 26px;
    display: block;
    object-fit: cover;
    object-position: center top;
    max-height: 520px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 3px solid var(--bg-primary);
    border-radius: 26px;
}

.hero-photo-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(7, 10, 19, 0.95);
    border: 1px solid rgba(5, 255, 197, 0.35);
    color: var(--accent-emerald);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(5, 255, 197, 0.15), 0 8px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Mantener compatibilidad con hero-image original si se necesita */
.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

/* --- SECTION GENERAL --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.service-card:hover .service-icon-box {
    background: var(--accent-cyan);
    color: #030712;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-neon);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.service-features svg {
    color: var(--accent-emerald);
}

/* --- SAAS SHOWCASE / PORTFOLIO --- */
.portfolio-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-search-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-neon);
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.search-box input:focus + svg {
    color: var(--accent-cyan);
}

.filter-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.filter-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    transition: var(--transition-smooth);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    padding: 2rem 2rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-active {
    background: rgba(5, 255, 197, 0.08);
    border: 1px solid rgba(5, 255, 197, 0.2);
    color: var(--accent-emerald);
}

.status-beta {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-dev {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active .status-dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.status-beta .status-dot {
    background: #ffa500;
    box-shadow: 0 0 8px #ffa500;
}

.status-dev .status-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.project-body {
    padding: 0 2rem 1.5rem;
    flex-grow: 1;
}

.project-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.project-footer {
    padding: 1.2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.project-metrics {
    display: flex;
    gap: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.metric svg {
    color: var(--accent-cyan);
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

/* Delete button for active admin editing */
.project-admin-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: none; /* Controlled by JS admin state */
    gap: 0.5rem;
}

.btn-admin-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-admin-delete:hover {
    background: #ef4444;
    color: #fff;
}

body.admin-mode .project-admin-actions {
    display: flex;
}

/* Empty portfolio state */
.portfolio-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.portfolio-empty svg {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- INTERACTIVE CALCULATOR --- */
.calculator-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: stretch;
}

.calc-form {
    padding: 3rem;
}

.calc-group {
    margin-bottom: 2rem;
}

.calc-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.calc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.calc-option-card {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.calc-option-card svg {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.calc-option-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.calc-option-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.calc-option-card.selected {
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.calc-option-card.selected svg {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.calc-option-card.selected span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Range sliders */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-val-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.slider-val {
    color: var(--accent-cyan);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results-card {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 18, 34, 0.8) 0%, rgba(20, 28, 52, 0.8) 100%);
    border: 1px solid rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.05);
}

.calc-results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    margin: 1rem 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.price-currency {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.breakdown-row .label {
    color: var(--text-secondary);
}

.breakdown-row .val {
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.breakdown-total .val {
    color: var(--accent-emerald);
}

/* --- THE PROCESS --- */
.timeline {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 5rem;
    position: relative;
    width: 50%;
    padding: 0 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    top: 15px;
    z-index: 2;
    box-shadow: var(--shadow-neon);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.timeline-img-box {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-card:hover .timeline-img-box img {
    transform: scale(1.05);
}

.timeline-text-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.timeline-item:nth-child(odd) .timeline-text-box h3 {
    justify-content: flex-end;
}

.timeline-step {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.contact-method-card {
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-details a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.contact-form-card {
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-neon);
}

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

/* --- FOOTER --- */
footer {
    background: #04060d;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1.8fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info p {
    font-size: 0.92rem;
    margin-top: 1.2rem;
    margin-bottom: 1.8rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--accent-cyan);
    color: #030712;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

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

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* --- WHATSAPP FLOATING WIDGET (PULSATING GLOW) --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-whatsapp);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-whatsapp);
    z-index: 99;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 35px rgba(37, 211, 102, 0.8);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(13, 18, 34, 0.95);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateX(15px);
    transition: var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), var(--shadow-neon-emerald);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- ADMIN PANEL MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.1);
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.icon-selector-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.icon-select-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-select-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.icon-select-btn.selected {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Auth Section in Admin Dashboard */
.admin-badge-indicator {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--accent-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-badge-indicator.active {
    background: rgba(5, 255, 197, 0.1);
    border: 1px solid rgba(5, 255, 197, 0.3);
    color: var(--accent-emerald);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: rgba(13, 18, 34, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(10px);
}

.toast-success {
    border-color: rgba(5, 255, 197, 0.3);
    box-shadow: 0 5px 20px rgba(5, 255, 197, 0.05);
}

.toast-success svg {
    color: var(--accent-emerald);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-error svg {
    color: #ef4444;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(0.5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- TRUST BAR --- */
.trust-bar {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.trust-bar-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
}

.trust-logo-item:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 242, 254, 0.25);
    background: rgba(0, 242, 254, 0.03);
}

.trust-logo-item svg {
    opacity: 0.6;
}

/* --- WHY US SECTION --- */
.why-us {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(13,18,34,0.6) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.why-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgba(0,242,254,0.15) 0%, rgba(157,78,221,0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

/* --- TEAM SECTION --- */
.team {
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.team-photo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.team-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    z-index: 0;
    animation: pulse 3s infinite;
}

.team-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-secondary);
}

.team-photo-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,242,254,0.1), rgba(157,78,221,0.15));
    border: 3px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.team-info h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 0.8rem;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.team-skill-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    font-weight: 600;
}

.team-social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

/* Join card */
.team-join-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.2rem;
    border: 2px dashed rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.01);
}

.team-join-card:hover {
    border-color: rgba(0, 242, 254, 0.2);
}

.team-join-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.team-join-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* --- CUSTOM SELECT --- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.04);
    box-shadow: var(--shadow-neon);
}

.custom-select-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.custom-select-options {
    position: fixed; /* fixed para escapar de cualquier overflow:hidden padre */
    background: rgba(10, 14, 30, 0.98);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.08);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-6px) scaleY(0.97);
    transform-origin: top;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: all;
}

.custom-select-option {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(0, 242, 254, 0.06);
    color: var(--text-primary);
}

.custom-select-option.selected {
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-cyan);
}

.custom-select-option.selected .option-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.option-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.option-label { flex-grow: 1; }

.option-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.option-badge.badge-std    { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }
.option-badge.badge-adv    { background: rgba(0,242,254,0.08);  color: var(--accent-cyan); border: 1px solid rgba(0,242,254,0.2); }
.option-badge.badge-ent    { background: rgba(157,78,221,0.08); color: var(--accent-purple); border: 1px solid rgba(157,78,221,0.2); }

/* --- CALC DISCLAIMER --- */
.calc-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.2rem;
    line-height: 1.5;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        height: 60px;
    }
    
    nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #070a13;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    nav.open {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-photo-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-photo {
        max-height: 380px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 1.4rem !important;
        right: auto !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-card h3 {
        justify-content: flex-start;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-form {
        padding: 2rem 1.5rem;
    }
    
    .calc-results-card {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .portfolio-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}
