/* =========================================
   RESETS Y ESTILOS GLOBALES
   ========================================= */
:root {
    /* Paleta de colores inspirada en tus imágenes */
    --dark-bg: #1a1d21;        /* Fondo oscuro charcoal */
    --light-bg: #f0f3f4;       /* Fondo claro gray-blue */
    --white: #ffffff;
    --text-on-dark: #e1e8ea;    /* Texto claro en fondo oscuro */
    --text-on-light: #1a1d21;   /* Texto oscuro en fondo claro */
    --accent-blue: #518c9f;    /* Azul-grisáceo de los botones */
    --accent-blue-hover: #60a0b5;
    --red-accent: #b03a2e;     /* Un acento rojo oscuro para detalles */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth; /* Desplazamiento suave */
    font-size: 16px;
    color: var(--text-on-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   ESTILOS DE SECCIONES (Temas alternos)
   ========================================= */
.dark-section {
    background-color: var(--dark-bg);
    color: var(--text-on-dark);
    padding: 100px 0;
}

.light-section {
    background-color: var(--light-bg);
    color: var(--text-on-light);
    padding: 100px 0;
}

/* Títulos de sección (inspirados en image_5) */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    font-weight: 300;
    margin-bottom: 70px;
    opacity: 0.8;
}

/* =========================================
   ESTILOS DE BOTONES
   ========================================= */
.btn-main {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.btn-main:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-3px);
}

.btn-main.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-main.secondary-btn:hover {
    background-color: var(--accent-blue);
    color: var(--white);
}

/* =========================================
   HEADER
   ========================================= */
header {
    background-color: var(--dark-bg);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; /* Se queda arriba */
    top: 0;
    z-index: 100;
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

nav a {
    color: var(--text-on-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-left: 30px;
}

nav a:hover:not(.btn-contact) {
    color: var(--red-accent);
}

nav a.btn-contact {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 5px;
}

nav a.btn-contact:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =========================================
   ABOUT / HERO SECTION
   ========================================= */
.grid-hero {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 70px;
    align-items: center;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--accent-blue);
    object-fit: cover;
    margin-bottom: 20px;
}

.hero-right .greeting {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.hero-right h1 {
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    margin-bottom: 30px;
}

.hero-right h1 strong {
    font-weight: 700;
    color: var(--red-accent);
}

.hero-right .summary {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-tags span {
    background-color: rgba(255,255,255,0.05); /* Tags oscuros de image_5 */
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* =========================================
   EXPERIENCE SECTION
   ========================================= */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.experience-item {
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Sombra suave elegente */
}

.circular-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.circular-icon svg {
    width: 40px;
    height: 40px;
}

.experience-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.experience-item .company {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.experience-item .date {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 25px;
}

.experience-item .details {
    list-style-type: disc;
    padding-left: 20px;
    font-weight: 300;
    font-size: 1rem;
}

.center-btn {
    text-align: center;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.project-info p {
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 25px;
    min-height: 80px; /* Asegura altura similar */
}

.btn-small {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-small:hover {
    color: var(--accent-blue-hover);
}

/* =========================================
   FOOTER SECTION
   ========================================= */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.footer-left h1 {
    font-size: 2.2rem;
    color: var(--accent-blue);
    text-transform: none;
    margin-bottom: 20px;
}

.footer-left p {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.7;
}

.footer-right h2 {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    margin-top: 20px;
}

.footer-right .contact-link {
    color: var(--text-on-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-right .contact-link:hover {
    color: var(--red-accent);
}

.footer-right p {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.9;
}

/* =========================================
   RESPONSIVIDAD (Asegurar que se vea bien en celular)
   ========================================= */
@media (max-width: 992px) {
    .grid-hero, .experience-grid, .projects-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
}