/* ===========================
   COLOR PALETTE & TYPOGRAPHY
   =========================== */

:root {
    /* Color Palette */
    --cream: #fffcf2;           /* Main background */
    --beige: #ccc5b9;           /* Secondary background */
    --dark-gray: #403d39;       /* Body text */
    --charcoal: #252422;        /* Headlines */
    --accent: #eb5e28;          /* Accent/CTA */
    
    /* Typography - Use these font families or replace with Le Monde Livre and Acumin Pro if you have them */
    --font-headline: 'Lora', serif;              /* Fallback for Le Monde Livre */
    --font-body: 'Inter', sans-serif;            /* Fallback for Acumin Pro */
    
    /* Spacing */
    --section-padding: 5rem;
    --container-width: 1200px;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    color: var(--charcoal);
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 252, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(64, 61, 57, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    transition: color 0.3s;
}

.logo:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-gray);
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--accent);
}

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

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.85rem;
    opacity: 0.7;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

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

/* ===========================
   BUTTONS
   =========================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--cream);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--cream);
}

/* ===========================
   SECTION STYLES
   =========================== */

section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--charcoal);
}

.section-description {
    text-align: center;
    font-size: 1.15rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    background-color: var(--cream);
}

/* Profile Image + About layout (photo left, text right, stats column) */
.about-main {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;  /* centra la foto dentro de su columna */
}

.profile-photo {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text .lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background-color: rgba(204, 197, 185, 0.3);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--accent);
}

.stat-number {
    display: block;
    font-family: var(--font-headline);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* ===========================
   EXPERTISE SECTION
   =========================== */

.expertise-section {
    background-color: var(--beige);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* siempre 2 columnas en desktop */
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;        /* controla el ancho total */
    margin-left: auto;
    margin-right: auto;      /* centra el grid */
}

.expertise-card {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(37, 36, 34, 0.1);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.expertise-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Skills Section */
.skills-section {
    margin-top: 4rem;
    text-align: center;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.skill-tag {
    background-color: var(--cream);
    color: var(--dark-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--cream);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    background-color: rgba(235, 94, 40, 0.1);
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */

.portfolio-section {
    background-color: var(--cream);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.portfolio-item {
    background-color: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--beige);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(37, 36, 34, 0.15);
    border-color: var(--accent);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--beige);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-placeholder {
    font-size: 1.2rem;
    color: var(--dark-gray);
    opacity: 0.5;
    font-weight: 500;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.project-type {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-tags span {
    background-color: rgba(204, 197, 185, 0.4);
    color: var(--dark-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background-color: var(--beige);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.contact-method a {
    color: var(--accent);
    transition: opacity 0.3s;
}

.contact-method a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid rgba(64, 61, 57, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--beige);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--cream);
    color: var(--dark-gray);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form button {
    width: 100%;
    border: none;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: var(--charcoal);
    color: var(--cream);
    padding: 2.5rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.95rem;
}

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

@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }

    /* About: stack photo above text on small screens */
    .about-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .about-image {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
