/* ============================================ */
/* RESET Y VARIABLES - NUEVA PALETA             */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3F6D62;
    --primary-dark: #2D544A;
    --primary-light: #5A8A7E;
    --secondary: #03F28A;
    --secondary-dark: #02C975;
    --dark: #010101;
    --dark-light: #2D2E29;
    --accent: #6B4D35;
    --accent-light: #8A6B4D;
    --gray-light: #f3f4f6;
    --gray: #9ca3af;
    --gray-dark: #4b5563;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
}

/* ============================================ */
/* BANNER SUPERIOR                              */
/* ============================================ */
.top-banner {
    background: var(--dark);
    color: var(--white);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.banner-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.banner-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.banner-title {
    font-size: 0.75rem;
    color: var(--gray);
}

.banner-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.banner-contact a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.banner-contact a:hover {
    color: var(--secondary);
}

.banner-contact i {
    color: var(--secondary);
}

/* ============================================ */
/* NAVBAR                                       */
/* ============================================ */
.navbar {
    background: var(--dark-light);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    position: sticky;
    top: 62px;
    z-index: 1000;
    border-bottom: 1px solid rgba(3, 242, 138, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.logo-text span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-menu li a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.nav-menu li a.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.nav-cta a {
    background: var(--secondary);
    color: var(--dark) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    border-bottom: none !important;
    font-weight: 700;
}

.nav-cta a:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 242, 138, 0.4);
    border-bottom: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================ */
/* HERO - IMAGEN CON EFECTO DE ÓRBITA           */
/* ============================================ */
.hero {
    padding: 4rem 0;
    background: var(--white);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background-color: rgb(57,47,45);
    color: #00ff91;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(3, 242, 138, 0.5);
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ============================================ */
/* ÓRBITA - VERSIÓN MEJORADA Y RESPONSIVE      */
/* ============================================ */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 1/1;
}

.hero-profile-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 55%;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    z-index: 2;
}

/* ============================================ */
/* TARJETAS FLOTANTES - ÓRBITA PERFECTA        */
/* ============================================ */
.floating-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-light);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(3, 242, 138, 0.2);
    z-index: 3;
    white-space: nowrap;
    animation: orbitAnimation 14s linear infinite;
}

.floating-card i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Radio de la órbita - usando unidades relativas */
.floating-card:nth-child(1) { --radius: 100%; animation-delay: 0s; }
.floating-card:nth-child(2) { --radius: 100%; animation-delay: -3.5s; }
.floating-card:nth-child(3) { --radius: 100%; animation-delay: -7s; }
.floating-card:nth-child(4) { --radius: 100%; animation-delay: -10.5s; }
.floating-card:nth-child(5) { --radius: 100%; animation-delay: -14s; }
.floating-card:nth-child(6) { --radius: 100%; animation-delay: -17.5s; }

/* ============================================ */
/* ANIMACIÓN DE ÓRBITA - RESPONSIVE             */
/* ============================================ */
@keyframes orbitAnimation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(var(--radius, 100%)) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(var(--radius, 100%)) rotate(-360deg);
    }
}

/* ============================================ */
/* RESPONSIVE - TAMAÑOS DE ÓRBITA               */
/* ============================================ */

/* Pantallas grandes (escritorio > 1200px) */
@media (min-width: 1201px) {
    .profile-wrapper { max-width: 480px; }
    .hero-profile-img { width: 52%; height: 52%; }
    .floating-card { 
        padding: 0.7rem 1.5rem; 
        font-size: 1rem;
        --radius: 50%;
    }
    .floating-card i { font-size: 1.2rem; }
    .floating-card { animation-duration: 16s; }
}

/* Pantallas medianas (tablet/escritorio) */
@media (min-width: 993px) and (max-width: 1200px) {
    .profile-wrapper { max-width: 420px; }
    .hero-profile-img { width: 55%; height: 55%; }
    .floating-card { 
        padding: 0.6rem 1.3rem; 
        font-size: 0.9rem;
        --radius: 49%;
    }
    .floating-card i { font-size: 1.1rem; }
    .floating-card { animation-duration: 14s; }
}

/* Pantallas pequeñas (tablet) */
@media (min-width: 769px) and (max-width: 992px) {
    .profile-wrapper { max-width: 380px; }
    .hero-profile-img { width: 55%; height: 55%; }
    .floating-card { 
        padding: 0.5rem 1.1rem; 
        font-size: 0.8rem;
        --radius: 48%;
    }
    .floating-card i { font-size: 1rem; }
    .floating-card { animation-duration: 12s; }
}

/* Pantallas tablet/móvil grande */
@media (min-width: 577px) and (max-width: 768px) {
    .profile-wrapper { max-width: 320px; }
    .hero-profile-img { width: 55%; height: 55%; }
    .floating-card { 
        padding: 0.4rem 0.9rem; 
        font-size: 0.7rem;
        --radius: 47%;
    }
    .floating-card i { font-size: 0.9rem; }
    .floating-card { animation-duration: 10s; }
}

/* Pantallas móviles medianas */
@media (min-width: 421px) and (max-width: 576px) {
    .profile-wrapper { max-width: 260px; }
    .hero-profile-img { width: 55%; height: 55%; }
    .floating-card { 
        padding: 0.3rem 0.8rem; 
        font-size: 0.65rem;
        --radius: 46%;
    }
    .floating-card i { font-size: 0.8rem; }
    .floating-card { animation-duration: 9s; }
}

/* Pantallas móviles pequeñas */
@media (max-width: 420px) {
    .profile-wrapper { max-width: 220px; }
    .hero-profile-img { width: 55%; height: 55%; }
    .floating-card { 
        padding: 0.25rem 0.6rem; 
        font-size: 0.55rem;
        --radius: 45%;
    }
    .floating-card i { font-size: 0.7rem; }
    .floating-card { animation-duration: 8s; }
    
    /* Mostrar solo 3 tarjetas en móviles muy pequeños */
    .floating-card:nth-child(4),
    .floating-card:nth-child(5),
    .floating-card:nth-child(6) {
        display: none;
    }
}

/* ============================================ */
/* BOTONES                                      */
/* ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 242, 138, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================ */
/* SECCIONES                                    */
/* ============================================ */
.section {
    padding: 4rem 0;
}

.section-dark {
    background: var(--dark-light);
    color: var(--white);
}

.section-dark .section-subtitle {
    color: var(--gray);
}

.section-dark .section-title {
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: #2D2E29;
    box-shadow: var(--shadow);
    color: var(--secondary);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray-dark);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================ */
/* PROYECTOS                                    */
/* ============================================ */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.proyecto-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.proyecto-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--primary);
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.05);
}

.proyecto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.proyecto-contenido {
    padding: 1.5rem;
}

.proyecto-contenido h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.proyecto-contenido p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tecnologias span {
    background: rgba(63, 109, 98, 0.1);
    color: var(--primary);
    padding: 0.15rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================ */
/* HABILIDADES - 3 BARRAS INDEPENDIENTES        */
/* ============================================ */

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.categoria-habilidad h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
    border-bottom: 2px solid rgba(3, 242, 138, 0.2);
    padding-bottom: 0.3rem;
}

.section-dark .categoria-habilidad h4 {
    color: var(--secondary);
}

.habilidad-item {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.habilidad-item:last-child {
    border-bottom: none;
}

/* Nombre y nivel */
.habilidad-item .nombre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-dark .habilidad-item .nombre {
    color: var(--gray-light);
}

.habilidad-item .nombre .nivel-texto {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Colores del texto de nivel */
.nivel-texto.nivel-1 {
    color: #FCBC02;
    background: rgba(252, 188, 2, 0.15);
    border: 1px solid rgba(252, 188, 2, 0.2);
}

.nivel-texto.nivel-2 {
    color: #01D876;
    background: rgba(1, 216, 118, 0.15);
    border: 1px solid rgba(1, 216, 118, 0.2);
}

.nivel-texto.nivel-3 {
    color: #017D6F;
    background: rgba(1, 125, 111, 0.15);
    border: 1px solid rgba(1, 125, 111, 0.2);
}

/* Contenedor de las 3 barras */
.barras-nivel {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.barra-nivel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.barra-nivel .label {
    font-size: 0.55rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
    opacity: 0.7;
}

.section-dark .barra-nivel .label {
    color: var(--gray);
}

/* Cada barra individual */
.habilidad-item .barra {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Progreso de cada barra - INICIA EN 0% */
.habilidad-item .barra .progreso {
    height: 100%;
    border-radius: 50px;
    width: 0% !important;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* ============================================ */
/* COLORES DE CADA NIVEL - ACTIVADO            */
/* ============================================ */

/* NIVEL 1 - BÁSICO (#FCBC02) */
.habilidad-item .barra .progreso.activo.nivel-1 {
    background: linear-gradient(90deg, #FCBC02, #F59E0B);
    box-shadow: 0 0 15px rgba(252, 188, 2, 0.3);
    width: 100% !important;
}

/* NIVEL 2 - INTERMEDIO (#01D876) */
.habilidad-item .barra .progreso.activo.nivel-2 {
    background: linear-gradient(90deg, #01D876, #00B865);
    box-shadow: 0 0 15px rgba(1, 216, 118, 0.3);
    width: 100% !important;
}

/* NIVEL 3 - AVANZADO (#017D6F) */
.habilidad-item .barra .progreso.activo.nivel-3 {
    background: linear-gradient(90deg, #017D6F, #00635A);
    box-shadow: 0 0 15px rgba(1, 125, 111, 0.3);
    width: 100% !important;
}

/* ============================================ */
/* EFECTO SHIMMER - BRILLO ANIMADO             */
/* ============================================ */

.habilidad-item .barra .progreso.activo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================ */
/* EFECTO GLOW PULSANTE POR NIVEL              */
/* ============================================ */

@keyframes glowPulse-1 {
    0%, 100% { box-shadow: 0 0 15px rgba(252, 188, 2, 0.3); }
    50% { box-shadow: 0 0 30px rgba(252, 188, 2, 0.6), 0 0 60px rgba(252, 188, 2, 0.2); }
}

@keyframes glowPulse-2 {
    0%, 100% { box-shadow: 0 0 15px rgba(1, 216, 118, 0.3); }
    50% { box-shadow: 0 0 30px rgba(1, 216, 118, 0.6), 0 0 60px rgba(1, 216, 118, 0.2); }
}

@keyframes glowPulse-3 {
    0%, 100% { box-shadow: 0 0 15px rgba(1, 125, 111, 0.3); }
    50% { box-shadow: 0 0 30px rgba(1, 125, 111, 0.6), 0 0 60px rgba(1, 125, 111, 0.2); }
}

.habilidad-item .barra .progreso.activo.nivel-1 {
    animation: glowPulse-1 3s ease-in-out infinite;
}

.habilidad-item .barra .progreso.activo.nivel-2 {
    animation: glowPulse-2 3s ease-in-out infinite;
}

.habilidad-item .barra .progreso.activo.nivel-3 {
    animation: glowPulse-3 3s ease-in-out infinite;
}

/* Pausar animación al hacer hover */
.habilidad-item .barra .progreso.activo:hover {
    animation-play-state: paused;
}

/* ============================================ */
/* EFECTO HOVER EN LA BARRA                    */
/* ============================================ */

.habilidad-item .barra:hover {
    transform: scaleY(1.4);
    height: 7px;
}

.habilidad-item .barra:hover .progreso {
    filter: brightness(1.3);
}

/* ============================================ */
/* RESPONSIVE PARA 3 BARRAS                     */
/* ============================================ */

@media (max-width: 768px) {
    .barras-nivel {
        flex-direction: column;
        gap: 6px;
        margin-top: 6px;
    }
    
    .barra-nivel {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .barra-nivel .label {
        min-width: 70px;
        font-size: 0.5rem;
        text-align: left;
        opacity: 0.8;
    }
    
    .habilidad-item .barra {
        height: 5px;
        flex: 1;
    }
    
    .habilidad-item {
        margin-bottom: 1.2rem;
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .habilidad-item .nombre {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 0.3rem;
    }
    
    .habilidad-item .nombre .nivel-texto {
        font-size: 0.6rem;
        padding: 1px 8px;
    }
    
    .barra-nivel .label {
        min-width: 60px;
        font-size: 0.45rem;
    }
    
    .habilidad-item .barra {
        height: 4px;
    }
    
    .barras-nivel {
        gap: 4px;
    }
}

/* ============================================ */
/* EXPERIENCIA                                  */
/* ============================================ */
.experiencia-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experiencia-item {
    padding-left: 1.5rem;
    border-left: 3px solid var(--secondary);
    padding-bottom: 0.5rem;
}

.experiencia-item:last-child {
    border-left-color: var(--gray);
}

.experiencia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experiencia-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.experiencia-item .empresa {
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-top: 0.1rem;
}

.experiencia-item .fecha {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.experiencia-item ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

.experiencia-item ul li {
    color: var(--gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* ============================================ */
/* SERVICIOS                                    */
/* ============================================ */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.servicio-destacado {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, rgba(3, 242, 138, 0.05), #ffffff);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: rgba(63, 109, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.servicio-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.servicio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.servicio-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.servicio-caracteristicas {
    list-style: none;
    padding: 0;
}

.servicio-caracteristicas li {
    padding: 0.3rem 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.servicio-caracteristicas li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.servicio-etiqueta {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============================================ */
/* PROCESO DE TRABAJO                           */
/* ============================================ */
.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.proceso-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(3, 242, 138, 0.1);
}

.proceso-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.proceso-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.proceso-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.proceso-item p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================ */
/* PAGE HERO                                    */
/* ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 3px solid var(--secondary);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================ */
/* CONTACTO                                     */
/* ============================================ */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contacto-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contacto-item i {
    width: 40px;
    height: 40px;
    background: rgba(63, 109, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contacto-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.contacto-item p {
    font-size: 1rem;
    color: var(--dark);
}

.contacto-social {
    margin-top: 2rem;
}

.contacto-social h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.contacto-social .social-links {
    display: flex;
    gap: 0.8rem;
}

.contacto-social .social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    transition: var(--transition);
    text-decoration: none;
}

.contacto-social .social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contacto-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contacto-form .form-group {
    margin-bottom: 1.2rem;
}

.contacto-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--gray-light);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(3, 242, 138, 0.1);
}

.contacto-stats {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.contacto-stats i {
    color: var(--secondary);
}

/* ============================================ */
/* ALERTAS                                      */
/* ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(3, 242, 138, 0.1);
    color: var(--secondary-dark);
    border: 1px solid var(--secondary);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert i {
    font-size: 1.2rem;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-nota {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
    text-align: center;
}

/* ============================================ */
/* CTA SECTION                                  */
/* ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.footer-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.4rem;
}

.footer-links ul li a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-contact p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-contact p i {
    color: var(--secondary);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.footer-credit i {
    color: var(--secondary);
}

/* ============================================ */
/* RESPONSIVE GENERAL                           */
/* ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin: 0 auto 2rem;
    }
    .hero-badge {
        margin: 0 auto 1.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }
    .banner-contact {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner-contact a { font-size: 0.75rem; }
    .banner-name { font-size: 0.9rem; }
    .banner-title { font-size: 0.7rem; }
    .navbar { top: 80px; }
    
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0.5rem;
        background: var(--dark-light);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        justify-content: center;
        padding: 0.6rem 0;
        color: var(--gray-light);
    }
    .nav-cta { margin-top: 0.5rem; }
    
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .proyectos-grid, .servicios-grid {
        grid-template-columns: 1fr;
    }
    .proceso-grid { grid-template-columns: 1fr 1fr; }
    .page-hero h1 { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
    .banner-contact a i { display: none; }
    .banner-contact { gap: 0.5rem; }
    .navbar { top: 72px; }
    .proceso-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .contacto-form { padding: 1.5rem; }
}