/* Estilos de Secciones Específicas */

/* Navbar Container */
#navbar-container {
    min-height: 70px; /* Altura mínima para evitar layout shift */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: var(--z-navbar);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 20px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.logo-image {
    height: 56px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-normal);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: var(--border-radius-full);
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.hero-name {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.metric-item {
    background: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.metric-item:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
    white-space: nowrap;
}

.metric-label {
    color: var(--secondary);
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Especialista Section */
.specialist-section {
    background: var(--light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Timeline */
.experience-section {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 4px 15px var(--shadow);
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--shadow);
    width: 45%;
    transition: transform var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: var(--font-weight-semibold);
}

.timeline-company {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.timeline-period {
    color: var(--secondary);
    font-size: 0.9rem;
}

.timeline-description {
    font-style: italic;
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
}

.timeline-achievements {
    margin: var(--spacing-md) 0;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.achievement-item i {
    color: var(--success);
}

.timeline-tech {
    margin-top: var(--spacing-md);
}

.timeline-section {
    margin: var(--spacing-md) 0;
}

.timeline-section-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    color: var(--dark);
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.timeline-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--primary);
}

.tech-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--light);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.achievement-item i {
    color: var(--success);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.achievement-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.achievement-item strong {
    color: var(--dark);
    font-weight: var(--font-weight-semibold);
}

.achievement-item span {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Proyectos */
.projects-section {
    background: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--shadow);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px var(--shadow-lg);
}

.project-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.project-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
    font-size: 0.9rem;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.project-description {
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.6;
}

.project-result {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--dark);
}

.project-result i {
    color: var(--success);
}

/* Servicios */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.service-description {
    font-style: italic;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.service-features i {
    color: var(--success);
}

/* Stack Tecnológico */
.tech-section {
    background: var(--light);
}

.tech-categories {
    margin-top: var(--spacing-xl);
}

.tech-category {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 15px var(--shadow);
}

.tech-category-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.tech-category-title i {
    color: var(--primary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.certifications {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--shadow);
    margin-top: var(--spacing-lg);
}

.certifications-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--light);
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
}

.cta-section .section-title {
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.cta-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.cta-description {
    font-size: 1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--light);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Formulario de Contacto */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
}

.form-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--white);
}

.contact-form .form-group label {
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: var(--secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

