/**
 * Estilos Frontend Oficiales de AppDevelopment.lat
 * Paleta Cyber-Dark con acentos Mint (#00f5a0) y Cyan (#00d2ff)
 */

:root {
    --appdev-bg: #0f131c;
    --appdev-deep: #05080E;
    --appdev-card: #0D1525;
    --appdev-card-hover: #121d33;
    --appdev-border: #1A263D;
    --appdev-primary: #00f5a0;
    --appdev-primary-soft: #cdffde;
    --appdev-glow-mint: rgba(0, 245, 160, 0.22);
    --appdev-secondary: #00d2ff;
    --appdev-glow-cyan: rgba(0, 210, 255, 0.2);
    --appdev-text: #F6F8FD;
    --appdev-text-muted: #8A99AD;
    --appdev-radius: 16px;
    --appdev-font-title: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --appdev-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --appdev-font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Grid del Portafolio y Tarjetas de Proyecto
   ========================================================================== */

.appdev-portfolio-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    margin: 30px 0;
}

.appdev-portfolio-grid.appdev-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (min-width: 1024px) {
    .appdev-portfolio-grid.appdev-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.appdev-project-card {
    background-color: var(--appdev-card);
    border: 1px solid var(--appdev-border);
    border-radius: var(--appdev-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.appdev-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 245, 160, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px var(--appdev-glow-mint);
}

/* Imagen y Badge */
.appdev-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #151c2c;
    overflow: hidden;
}

.appdev-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.appdev-project-card:hover .appdev-card-img {
    transform: scale(1.06);
}

.appdev-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--appdev-text-muted);
    font-family: var(--appdev-font-mono);
    font-size: 13px;
    background: linear-gradient(135deg, #0c1220 0%, #151e32 100%);
}

.appdev-card-img-placeholder span.material-symbols-outlined {
    font-size: 36px;
    color: var(--appdev-primary);
}

.appdev-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(5, 8, 14, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 245, 160, 0.3);
    color: var(--appdev-primary);
    font-family: var(--appdev-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Cuerpo de la Tarjeta */
.appdev-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Tags de Tecnologías */
.appdev-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.appdev-tech-tag {
    font-family: var(--appdev-font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: #182235;
    color: var(--appdev-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.appdev-tech-tag.appdev-tag-primary {
    color: var(--appdev-secondary);
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.2);
}

/* Título */
.appdev-card-title {
    font-family: var(--appdev-font-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: var(--appdev-text);
}

.appdev-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.appdev-card-title a:hover {
    color: var(--appdev-primary);
}

/* Excerpt */
.appdev-card-excerpt {
    font-family: var(--appdev-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--appdev-text-muted);
    margin: 0 0 20px 0;
}

/* Strip de Métricas / Logros */
.appdev-card-metrics-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.appdev-metric-col {
    display: flex;
    flex-direction: column;
}

.appdev-metric-col.right {
    text-align: right;
}

.appdev-metric-label {
    font-family: var(--appdev-font-body);
    font-size: 11px;
    color: var(--appdev-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.appdev-metric-val {
    font-family: var(--appdev-font-mono);
    font-size: 14px;
    font-weight: 700;
}

.appdev-metric-val.mint {
    color: var(--appdev-primary);
}

.appdev-metric-val.cyan {
    color: var(--appdev-secondary);
}

/* Botón Ver Proyecto */
.appdev-card-footer-cta {
    margin-top: auto;
}

.appdev-card-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: #141f33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--appdev-text);
    text-decoration: none;
    font-family: var(--appdev-font-title);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.appdev-card-link-btn span.material-symbols-outlined {
    font-size: 16px;
    color: var(--appdev-primary);
    transition: transform 0.25s ease;
}

.appdev-card-link-btn:hover {
    background: var(--appdev-primary);
    color: #003921;
    border-color: var(--appdev-primary);
    box-shadow: 0 0 16px var(--appdev-glow-mint);
}

.appdev-card-link-btn:hover span.material-symbols-outlined {
    color: #003921;
    transform: translate(2px, -2px);
}

/* Estado Vacío */
.appdev-portfolio-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--appdev-card);
    border: 1px dashed var(--appdev-border);
    border-radius: var(--appdev-radius);
    color: var(--appdev-text-muted);
}

.appdev-portfolio-empty span.material-symbols-outlined {
    font-size: 48px;
    color: var(--appdev-secondary);
    margin-bottom: 12px;
}

.appdev-portfolio-empty h4 {
    color: var(--appdev-text);
    font-size: 18px;
    margin: 0 0 8px 0;
}

/* ==========================================================================
   KPIs Strip [appdev_kpis]
   ========================================================================== */

.appdev-kpis-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: var(--appdev-card);
    border: 1px solid var(--appdev-border);
    padding: 24px;
    border-radius: var(--appdev-radius);
    margin: 30px 0;
}

@media (min-width: 768px) {
    .appdev-kpis-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.appdev-kpi-item {
    display: flex;
    flex-direction: column;
}

.appdev-kpi-num {
    font-family: var(--appdev-font-title);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.appdev-kpi-num.mint {
    color: var(--appdev-primary);
}

.appdev-kpi-num.cyan {
    color: var(--appdev-secondary);
}

.appdev-kpi-title {
    font-family: var(--appdev-font-title);
    font-size: 14px;
    font-weight: 600;
    color: var(--appdev-text);
    margin-bottom: 2px;
}

.appdev-kpi-desc {
    font-family: var(--appdev-font-body);
    font-size: 12px;
    color: var(--appdev-text-muted);
}

/* ==========================================================================
   Formulario de Contacto Seguro [appdev_contacto]
   ========================================================================== */

.appdev-contact-wrapper {
    background: rgba(5, 8, 14, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--appdev-border);
    border-radius: var(--appdev-radius);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.appdev-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appdev-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .appdev-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.appdev-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appdev-label {
    font-family: var(--appdev-font-title);
    font-size: 12px;
    font-weight: 600;
    color: var(--appdev-text);
    letter-spacing: 0.02em;
}

.appdev-input,
.appdev-select,
.appdev-textarea {
    width: 100%;
    background-color: var(--appdev-card);
    border: 1px solid var(--appdev-border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--appdev-text);
    font-family: var(--appdev-font-body);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.appdev-input:focus,
.appdev-select:focus,
.appdev-textarea:focus {
    outline: none;
    border-color: var(--appdev-primary);
    box-shadow: 0 0 12px var(--appdev-glow-mint);
    background-color: #121c2e;
}

.appdev-input::placeholder,
.appdev-textarea::placeholder {
    color: rgba(138, 153, 173, 0.6);
}

.appdev-field-error {
    font-size: 11px;
    color: #ffb4ab;
    display: none;
    font-family: var(--appdev-font-mono);
}

.appdev-field-error.active {
    display: block;
}

.appdev-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #00f5a0 0%, #00d2ff 100%);
    color: #003921;
    font-family: var(--appdev-font-title);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(0, 245, 160, 0.35);
    transition: all 0.3s ease;
}

.appdev-btn-submit:hover:not(:disabled) {
    box-shadow: 0 0 36px rgba(0, 210, 255, 0.5);
    transform: translateY(-1px);
}

.appdev-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.appdev-feedback-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--appdev-font-body);
    font-size: 13px;
    line-height: 1.5;
}

.appdev-feedback-box.success {
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid var(--appdev-primary);
    color: var(--appdev-primary);
}

.appdev-feedback-box.error {
    background: rgba(255, 180, 171, 0.12);
    border: 1px solid #ffb4ab;
    color: #ffb4ab;
}

/* ==========================================================================
   Hello Elementor Free & Global Dark Background Overrides
   ========================================================================== */

body, html {
    background-color: var(--appdev-deep) !important;
    color: var(--appdev-text);
    margin: 0;
    padding: 0;
    font-family: var(--appdev-font-body);
}

/* Ocultar barra header y footer por defecto de Hello Elementor cuando usamos AppDev */
.site-header:not(#appdev-site-header),
.site-footer:not(#appdev-site-footer) {
    background-color: var(--appdev-deep) !important;
    border-color: var(--appdev-border) !important;
}

/* ==========================================================================
   Header de Navegación Sticky Glassmorphism
   ========================================================================== */

.appdev-sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(5, 8, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 38, 61, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.appdev-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.appdev-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.appdev-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0D1525 0%, #151e32 100%);
    border: 1px solid #1A263D;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 245, 160, 0.2);
}

.appdev-logo-badge .material-symbols-outlined {
    color: var(--appdev-primary);
    font-size: 22px;
}

.appdev-logo-text {
    font-family: var(--appdev-font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--appdev-text);
    letter-spacing: -0.02em;
}

.mint-accent {
    color: var(--appdev-primary);
}

.appdev-desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.appdev-desktop-nav a {
    font-family: var(--appdev-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--appdev-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.appdev-desktop-nav a:hover {
    color: var(--appdev-primary);
}

.appdev-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.appdev-header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--appdev-font-title);
    font-size: 13px;
    font-weight: 700;
    color: #003921 !important;
    background: linear-gradient(90deg, #00f5a0 0%, #00d2ff 100%);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(0, 245, 160, 0.3);
    transition: all 0.25s ease;
}

.appdev-header-cta-btn:hover {
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.5);
    transform: translateY(-1px);
}

.appdev-mobile-btn {
    display: none;
    background: #0D1525;
    border: 1px solid #1A263D;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: #F6F8FD;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.appdev-mobile-drawer {
    flex-direction: column;
    background: #05080E;
    border-top: 1px solid #1A263D;
    padding: 20px 24px;
    gap: 16px;
}

.appdev-mobile-drawer a {
    font-family: var(--appdev-font-body);
    font-size: 15px;
    color: #F6F8FD;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.appdev-drawer-cta {
    font-family: var(--appdev-font-title) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #003921 !important;
    text-align: center;
    background: linear-gradient(90deg, #00f5a0, #00d2ff);
    padding: 12px !important;
    border-radius: 8px;
    margin-top: 8px;
    border-bottom: none !important;
}

@media (max-width: 900px) {
    .appdev-desktop-nav {
        display: none !important;
    }
    .appdev-mobile-btn {
        display: flex !important;
    }
}

/* ==========================================================================
   Footer Oficial Cyber-Dark
   ========================================================================== */

.appdev-footer-wrap {
    background-color: #05080E;
    border-top: 1px solid var(--appdev-border);
    padding: 70px 24px 30px;
    margin-top: 60px;
}

.appdev-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.appdev-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 1024px) {
    .appdev-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
}

.appdev-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appdev-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appdev-footer-bio {
    font-size: 14px;
    color: var(--appdev-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.appdev-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--appdev-primary);
    font-family: var(--appdev-font-mono);
}

.appdev-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--appdev-primary);
    box-shadow: 0 0 8px var(--appdev-primary);
    animation: appdevPulse 2s infinite;
}

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

.appdev-footer-heading {
    font-family: var(--appdev-font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--appdev-text);
    margin: 0 0 16px 0;
}

.appdev-footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appdev-footer-links-col ul a {
    font-size: 14px;
    color: var(--appdev-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.appdev-footer-links-col ul a:hover {
    color: var(--appdev-primary);
}

.appdev-footer-text {
    font-size: 14px;
    color: var(--appdev-text-muted);
    margin: 0 0 8px 0;
}

.appdev-social-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.appdev-social-badge {
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--appdev-font-mono);
    color: var(--appdev-text);
    background: #0D1525;
    border: 1px solid var(--appdev-border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.appdev-social-badge:hover {
    border-color: var(--appdev-primary);
    color: var(--appdev-primary);
}

.appdev-footer-bottom {
    border-top: 1px solid rgba(26, 38, 61, 0.6);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--appdev-text-muted);
}

.appdev-footer-bottom p {
    margin: 0;
}

.appdev-footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appdev-footer-legal a {
    color: var(--appdev-text-muted);
    text-decoration: none;
}

.appdev-footer-legal a:hover {
    color: var(--appdev-primary);
}

