:root {
    /* Paleta "Tech-Industrial" */
    --primary: #0F172A;
    /* Azul Petróleo Oscuro */
    --secondary: #F59E0B;
    /* Amarillo Solar */
    --accent: #06B6D4;
    /* Cyan IT */
    --text-main: #334155;
    --bg-alt: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: white;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-weight: 800;
}

/* --- HEADER MODIFICADO (Fondo Blanco / Texto Azul) --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.logo-text span {
    color: var(--secondary);
}

.tagline {
    font-size: 0.7rem;
    color: #64748B;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-nav {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-solid {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-solid:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.88) 100%), url('IMG 14.jpg');
    background-size: cover;
    background-position: center 25%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 950px;
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-content h1 span {
    color: var(--secondary);
    border-bottom: 4px solid var(--secondary);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 35px;
    color: #E2E8F0;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

/* --- SECCIÓN TRAYECTORIA (SLIDER) --- */
.section-container {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.slider-container {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 20px 20px 0px var(--bg-alt);
    border: 1px solid #E2E8F0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.profile-list {
    list-style: none;
    margin-top: 25px;
}

.profile-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.profile-list i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 1.2rem;
}

.profile-list strong {
    color: var(--primary);
    font-weight: 700;
}

/* --- SKILLS CARDS --- */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    margin-top: 20px;
}

.tech-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.tech-list i {
    color: var(--accent);
    margin-right: 10px;
}

/* --- PORTFOLIO --- */
.bg-gray {
    background-color: var(--bg-alt);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

@media(min-width: 768px) {
    .project-card {
        flex-direction: row;
    }
}

.project-body {
    padding: 2.5rem;
    flex: 2;
}

.project-meta {
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-tech {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 5px;
}

/* --- CONTACTO --- */
.contact-section {
    background: rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 5rem 5%;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

/* Estilo del título */
.contact-section h2 {
    color: var(--primary) !important;
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.contact-item:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.contact-item:hover a,
.contact-item:hover i {
    color: var(--primary);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {

    /* Header Mobile */
    header {
        padding: 10px 4%;
        flex-direction: column;
        gap: 15px;
    }

    .logo-container {
        gap: 10px;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.6rem;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Hero Section Mobile */
    .hero {
        height: auto;
        min-height: 85vh;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-badges {
        gap: 8px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    /* Section Container Mobile */
    .section-container {
        padding: 3rem 4%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .slider-container {
        box-shadow: 10px 10px 0px var(--bg-alt);
    }

    .about-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .profile-list li {
        font-size: 0.95rem;
    }

    /* Section Titles Mobile */
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* Skills Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 2rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    /* Project Cards Mobile */
    .project-card {
        flex-direction: column;
    }

    .project-body,
    .project-meta {
        padding: 1.5rem;
    }

    .project-body h3 {
        font-size: 1.2rem;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 3rem 4%;
    }

    .contact-section h2 {
        font-size: 1.8rem;
    }

    .contact-box {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-container {
        padding: 4rem 4%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .about-text h2,
    .section-title h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .btn-nav {
        font-size: 0.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
