/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    --primary-color: #00BFFF;
    --secondary-color: #007BFF;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --hover-bg: #252525;
}

/* ==========================================
   ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.nav-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #0a1628 100%);
    background-attachment: fixed;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    padding: 2rem;
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
    animation: zoomIn 1s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 191, 255, 0.5);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-image-placeholder {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 123, 255, 0.2) 100%);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: fadeInRight 1s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.4);
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
section {
    padding: 6rem 0;
    width: 100%;
    position: relative;
    background: var(--dark-bg);
    z-index: 10;
}

.section-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==========================================
   SERVICIOS
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card.visible {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 123, 255, 0.1));
    border-radius: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 123, 255, 0.2));
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   SOBRE MÍ
   ========================================== */
.about-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==========================================
   STACK TECNOLÓGICO
   ========================================== */
.stack-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.stack-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
}

.stack-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stack-category h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-pill {
    background: rgba(0, 191, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ==========================================
   CONTACTO
   ========================================== */
.contact-section {
    background: var(--darker-bg);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrapper h3,
.contact-whatsapp-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper p,
.contact-whatsapp-wrapper p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

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

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

/* ==========================================
   WHATSAPP PREVIEW
   ========================================== */
.whatsapp-preview {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.whatsapp-header svg {
    width: 40px;
    height: 40px;
    color: #25D366;
}

.whatsapp-header span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.whatsapp-message {
    background: rgba(0, 191, 255, 0.05);
    border-left: 3px solid #25D366;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.whatsapp-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.whatsapp-message p:last-child {
    margin-bottom: 0;
}

.whatsapp-message strong {
    color: var(--primary-color);
}

.whatsapp-send-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.whatsapp-send-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-send-btn svg {
    width: 24px;
    height: 24px;
}

.whatsapp-features {
    display: flex;
    gap: 1rem;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 8px;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-bg);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.contact-methods {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--darker-bg);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.footer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.footer-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 123, 255, 0.2) 100%);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   CONTADOR DE ESTADÍSTICAS
   ========================================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   BARRA DE PROGRESO
   ========================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================
   WHATSAPP FLOTANTE
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease 1s backwards;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================
   BOTÓN VOLVER ARRIBA
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.6);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   ¿POR QUÉ YO?
   ========================================== */
.why-me-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-me-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.why-me-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.microsoft-logo-inline {
    width: 24px;
    height: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
    object-fit: contain;
}

.why-me-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* ==========================================
   CÓMO TRABAJO
   ========================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.process-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.process-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-time {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================
   PROYECTOS
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ==========================================
   FAQ
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 191, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 191, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   BOTÓN VER MÁS EN SERVICIOS
   ========================================== */
.service-more-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 10;
}

.service-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   MODALES
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    max-width: 70%;
    width: 70%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(0, 191, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

.modal-body h3 {
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body p, .modal-body ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

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

.benefit-item {
    padding: 1.2rem;
    background: rgba(0, 191, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.benefit-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* ==========================================
   FORMULARIO MEJORADO
   ========================================== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 191, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

.form-error {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
}

.form-success {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 100, 0.1);
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 12px;
    text-align: center;
    animation: successBounce 0.5s ease;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.form-success svg {
    width: 50px;
    height: 50px;
    color: #00ff64;
    margin-bottom: 1rem;
}

.form-success p {
    color: #00ff64;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================
   TOOLTIPS
   ========================================== */
.tech-pill {
    position: relative;
    cursor: pointer;
}

.tech-pill[data-cert]::after {
    content: '🏆';
    margin-left: 0.3rem;
    font-size: 0.9rem;
}

.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
}

.tech-pill:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ==========================================
   MENÚ MÓVIL
   ========================================== */
.mobile-menu-btn {
    display: none;
    position: absolute;
    left: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Pantallas muy grandes */
@media (min-width: 1920px) {
    .nav-container,
    .hero-container,
    .section-container {
        max-width: 1600px;
    }
}

@media (max-width: 1200px) {
    .services-grid,
    .stack-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-me-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 2rem;
        max-width: 90%;
    }

    .nav-container {
        max-width: 90%;
    }

    .section-container {
        max-width: 90%;
    }

    .modal-content {
        width: 85%;
        max-width: 85%;
    }

    .hero-content {
        text-align: center;
        order: 2;
        padding: 1rem;
    }

    .hero-image {
        order: 1;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* Hero Section - MUY reducido */
    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    /* Botón CTA - MUY compacto */
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    /* Stats - MUY pequeños */
    .stats-container {
        flex-direction: row;
        gap: 0.5rem;
        margin: 1rem 0;
        justify-content: space-between;
    }

    .stat-item {
        padding: 0.5rem;
        flex: 1;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Navbar - Mejorada */
    .nav-container {
        padding: 0 1rem;
    }

    /* Navbar móvil - Sin barra, solo icono */
    .navbar {
        padding: 0.8rem 0;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
    }

    .mobile-menu-btn {
        left: 1rem;
        width: 35px;
        height: 35px;
        background: rgba(10, 10, 10, 0.9);
        border-radius: 8px;
        padding: 0.5rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 191, 255, 0.2);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    /* Secciones - MUY reducido */
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Foto de perfil - Más pequeña */
    .profile-image,
    .profile-image-placeholder {
        width: 150px;
        height: 150px;
    }

    /* Contacto */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whatsapp-features {
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        padding: 0 1.5rem;
        max-width: 95%;
    }

    .section-container {
        max-width: 95%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-container {
        padding: 3rem 1.5rem;
        max-width: 95%;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 4rem 0;
    }

    .about-content {
        padding: 2rem 1.5rem;
    }

    .services-grid,
    .stack-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .stack-category {
        padding: 1rem;
    }

    .service-card h3,
    .stack-category h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .service-icon,
    .stack-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .service-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-top: 0.8rem;
    }

    .tech-pills {
        gap: 0.4rem;
    }

    .tech-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Modales móvil - MUY reducidos */
    .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 0.5rem;
        padding: 1rem;
    }

    .modal-body h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .modal-body h3 {
        font-size: 0.95rem;
        margin: 0.8rem 0 0.5rem 0;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .modal-benefits {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .benefit-item {
        padding: 0.6rem;
    }

    /* FAQ móvil */
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .why-me-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .why-me-card {
        padding: 0.8rem;
    }

    .why-me-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .why-me-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .microsoft-logo-inline {
        height: 14px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .process-step {
        padding: 0.8rem;
    }

    .process-step h3 {
        font-size: 0.9rem;
    }

    .process-step p {
        font-size: 0.8rem;
    }

    .process-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .project-card {
        padding: 0.8rem;
    }

    .project-card h3 {
        font-size: 0.9rem;
    }

    .project-card p {
        font-size: 0.8rem;
    }

    .project-image {
        height: 150px;
    }

    /* Botones flotantes móvil */
    .whatsapp-float,
    .scroll-top {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
    }

    .scroll-top {
        right: 15px;
        bottom: 80px;
    }

    /* Form móvil - MUY reducido */
    .contact-form {
        padding: 1rem;
    }

    .contact-form-wrapper h3,
    .contact-whatsapp-wrapper h3 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .submit-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    /* WhatsApp Preview móvil - Reducido */
    .whatsapp-preview {
        padding: 1rem;
    }

    .whatsapp-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .whatsapp-header svg {
        width: 30px;
        height: 30px;
    }

    .whatsapp-header span {
        font-size: 1rem;
    }

    .whatsapp-message {
        padding: 1rem;
    }

    .whatsapp-message p {
        font-size: 0.8rem;
    }

    .whatsapp-send-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .feature-item {
        padding: 0.7rem;
    }

    .feature-item span {
        font-size: 0.75rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .modal-content {
        width: 90%;
        max-width: 90%;
        padding: 2rem 1.5rem;
    }

    .modal-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Hero SUPER compacto */
    .hero h1 {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .nav-container {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .section-container {
        max-width: 100%;
        padding: 0 0.8rem;
    }

    .hero-container {
        padding: 1.5rem 0.8rem;
        max-width: 100%;
    }

    /* Botón CTA SUPER compacto */
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    /* Stats SUPER pequeños */
    .stats-container {
        flex-direction: row;
        gap: 0.3rem;
        margin: 0.8rem 0;
    }

    .stat-item {
        padding: 0.4rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .about-content {
        padding: 0.8rem;
    }

    .about-content p {
        font-size: 0.8rem;
    }

    .profile-image,
    .profile-image-placeholder {
        width: 130px;
        height: 130px;
    }

    .services-grid,
    .stack-container {
        gap: 0.6rem;
    }

    .service-card,
    .stack-category {
        padding: 0.7rem;
    }

    .service-card h3,
    .stack-category h3 {
        font-size: 0.85rem;
    }

    .service-card p {
        font-size: 0.75rem;
    }

    .service-icon {
        width: 30px;
        height: 30px;
    }

    .service-more-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .tech-pill {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .faq-answer {
        font-size: 0.75rem;
        padding: 0.7rem;
    }

    .modal-content {
        width: 98%;
        max-width: 98%;
        padding: 0.8rem;
        margin: 0.3rem;
    }

    .modal-body h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .modal-body h3 {
        font-size: 0.85rem;
        margin: 0.6rem 0 0.4rem 0;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .benefit-item {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    /* Cards SUPER compactas */
    .why-me-card,
    .process-step,
    .project-card {
        padding: 0.7rem;
    }

    .why-me-card h3,
    .process-step h3,
    .project-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .why-me-card p,
    .process-step p,
    .project-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .process-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .project-image {
        height: 120px;
    }

    .microsoft-logo-inline {
        height: 12px;
    }

    /* Form SUPER compacto */
    .contact-form,
    .whatsapp-preview {
        padding: 0.8rem;
    }

    .contact-form-wrapper h3,
    .contact-whatsapp-wrapper h3 {
        font-size: 1rem;
    }

    .contact-form-wrapper p,
    .contact-whatsapp-wrapper p {
        font-size: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .submit-button {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .whatsapp-message p {
        font-size: 0.75rem;
    }

    .whatsapp-send-btn {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    .feature-item {
        padding: 0.5rem;
    }

    .feature-item svg {
        width: 18px;
        height: 18px;
    }

    .feature-item span {
        font-size: 0.7rem;
    }

    /* FAQ ultra compacto */
    .faq-answer {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    /* Navbar SUPER compacta - Sin barra */
    .navbar {
        padding: 0.6rem 0;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
    }

    .mobile-menu-btn {
        width: 30px;
        height: 30px;
        left: 0.8rem;
        background: rgba(10, 10, 10, 0.9);
        border-radius: 6px;
        padding: 0.4rem;
        backdrop-filter: blur(10px);
    }

    .nav-links {
        padding: 1rem;
        gap: 0.3rem;
        top: 50px;
    }

    .nav-links a {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }

    /* Botones flotantes SUPER pequeños */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        right: 8px;
        bottom: 8px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        right: 8px;
        bottom: 60px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

