/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --topo-green: #2d5a27;
    --topo-brown: #8b6914;
    --topo-blue: #1a4d6e;
    --topo-sand: #e8dcc4;
    --topo-cream: #f5f0e6;
    --topo-dark: #1a1a18;
    --accent-coral: #e07850;
    --accent-gold: #d4a84b;
    --accent-orange: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--topo-cream);
    color: var(--topo-dark);
    overflow-x: hidden;

}

/* ==========================================
   CURVAS DE NIVEL ANIMADAS (FONDO)
   ========================================== */
.topo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.12;
    overflow: hidden;
}

.topo-line {
    fill: none;
    stroke: var(--topo-brown);
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    animation: topoFlow 25s linear infinite;
}

.topo-line:nth-child(odd) {
    stroke: var(--topo-green);
    animation-direction: reverse;
}

@keyframes topoFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 1000; }
}

/* ==========================================
   ANIMACIONES DE VÍAS URBANAS
   ========================================== */
.urban-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.06;
}

.urban-line {
    position: absolute;
    background: var(--topo-dark);
}

.urban-line-h {
    height: 1px;
    width: 100%;
    animation: urbanFlowH 8s linear infinite;
}

.urban-line-v {
    width: 1px;
    height: 100%;
    animation: urbanFlowV 10s linear infinite;
}

@keyframes urbanFlowH {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes urbanFlowV {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Partículas de tráfico */
.traffic-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-coral);
    border-radius: 50%;
    opacity: 0.6;
}

.traffic-dot-h {
    animation: trafficH 6s linear infinite;
}

.traffic-dot-v {
    animation: trafficV 8s linear infinite;
}

@keyframes trafficH {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(calc(100vw + 20px)); }
}

@keyframes trafficV {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(calc(100vh + 20px)); }
}

/* ==========================================
   NAVEGACIÓN
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(245, 240, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 105, 20, 0.1);
}

.logo {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    border: 2px solid var(--topo-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(45, 90, 39, 0); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--topo-dark);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

@media (max-width: 768px) {
    nav { padding: 1rem; }
    .nav-links { display: none; }
}

/* ==========================================
   HERO SECTION CON GLOBO 3D
   ========================================== */
.hero-globe {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--topo-dark) 0%, #0d1f29 50%, #1a3a2a 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-globe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 90, 39, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 77, 110, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-globe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 5%;
    align-items: center;
    z-index: 2;
}

.hero-text {
    color: var(--topo-cream);
}

.hero-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-coral);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-tag::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-coral);
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.1);
    color: var(--topo-cream);
    padding: 0.8rem 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.35s;
}

.location-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-title .accent {
    color: var(--accent-coral);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.coords {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    display: flex;
    gap: 2rem;
    color: var(--accent-gold);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coord-label {
    opacity: 0.6;
}

.coord-value {
    font-weight: 500;
}

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

/* Globe Container */
#globe-container {
    width: 100%;
    height: 500px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.8s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.globe-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .hero-globe-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-tag { justify-content: center; }
    .coords { justify-content: center; flex-wrap: wrap; }
    #globe-container { height: 400px; }
}

@media (max-width: 768px) {
    #globe-container { height: 300px; }
    .coords { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================
   PROFILE SECTION CON FOTO Y FONDO
   ========================================== */
.profile-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.profile-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.profile-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.7) 0%, rgba(26, 77, 110, 0.7) 100%);
}

.profile-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: center;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.profile-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--accent-coral);
    opacity: 0.5;
}

.profile-coords-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: white;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.profile-info {
    color: var(--topo-cream);
}

.profile-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.profile-info p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-stat {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-coral);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.profile-stat:hover {
    transform: translateX(10px);
}

.profile-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.profile-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-image-container {
        max-width: 300px;
        margin: 0 auto;
    }
    .profile-stats {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-coral);
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--topo-brown), transparent);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    background: var(--topo-cream);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(139, 105, 20, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--topo-green), var(--accent-coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--topo-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: var(--topo-cream);
    color: var(--topo-green);
    letter-spacing: 1px;
}

/* ==========================================
   PROJECTS SECTION CON GOOGLE DRIVE
   ========================================== */
.projects {
    background: linear-gradient(180deg, var(--topo-cream) 0%, var(--topo-sand) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
    background: var(--topo-dark);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-bg,
.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 24, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(180deg, rgba(26, 26, 24, 0.3) 0%, rgba(26, 26, 24, 0.98) 100%);
}

.project-category {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-coral);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.5rem;
}

.project-location {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.project-card:hover .project-desc {
    max-height: 100px;
}

/* Input para URL de Google Drive */
.project-image-input {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-input {
    opacity: 1;
}

.project-image-input input {
    padding: 8px 12px;
    font-size: 0.75rem;
    border: none;
    background: rgba(255,255,255,0.95);
    font-family: 'DM Mono', monospace;
    width: 200px;
}

.project-image-input button {
    padding: 8px 12px;
    background: var(--accent-coral);
    color: white;
    border: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-image-input button:hover {
    background: var(--topo-green);
}

.project-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    pointer-events: none;
}

.project-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-image-input {
        opacity: 1;
        flex-direction: column;
    }
    .project-image-input input {
        width: 100%;
    }
}

/* ==========================================
   MAPA DE BOLIVIA SECTION
   ========================================== */
.map-section {
    background: var(--topo-dark);
    color: var(--topo-cream);
    padding: 6rem 5%;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.map-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.map-info p {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.project-locations-list {
    list-style: none;
}

.project-locations-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-locations-list li:hover {
    padding-left: 1rem;
    background: rgba(255,255,255,0.05);
}

.project-locations-list .location-name {
    font-weight: 500;
}

.project-locations-list .location-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-coral);
}

#bolivia-map {
    height: 500px;
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    background: var(--topo-dark) !important;
    color: var(--topo-cream) !important;
    border-radius: 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.leaflet-popup-tip {
    background: var(--topo-dark) !important;
}

@media (max-width: 1024px) {
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    #bolivia-map {
        height: 400px;
    }
}

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.experience {
    background: var(--topo-cream);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--topo-green), var(--accent-coral));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-content {
    background: white;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-coral);
    border: 4px solid var(--topo-cream);
    border-radius: 50%;
    top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: calc(50% - 10px);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: calc(50% - 10px);
}

.timeline-year {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--topo-green);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

.timeline-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
    .timeline-content {
        max-width: 100%;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--topo-green);
    color: var(--topo-cream);
    text-align: center;
    padding: 8rem 5%;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--topo-cream);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--topo-cream);
    color: var(--topo-green);
    border-color: var(--topo-cream);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--topo-dark);
    color: var(--topo-cream);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-coords {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==========================================
   ANIMACIONES DE SCROLL
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   MOBILE NAV TOGGLE
   ========================================== */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--topo-green);
    color: var(--topo-dark);
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(245, 240, 230, 0.98);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 2px solid var(--accent-coral);
    }
}

/* ==========================================
   GALERÍA DE FOTOS DE CAMPO
   ========================================== */
.photo-gallery {
    background: var(--topo-dark);
    color: var(--topo-cream);
    padding: 6rem 5%;
}

.gallery-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.8;
    max-width: 800px;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 0.8rem;
}

/* Fila 1: featured izq (4col) + 2 pequeñas apiladas (2col cada una ocupa 1 row) */
.gallery-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; } /* featured grande */
.gallery-item:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 5 / 7; grid-row: 2 / 3; }

/* Fila 2: 3 iguales */
.gallery-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
.gallery-item:nth-child(5) { grid-column: 3 / 5; grid-row: 3 / 4; }
.gallery-item:nth-child(6) { grid-column: 5 / 7; grid-row: 3 / 4; }

/* Fila 3: 2 pequeñas + featured der */
.gallery-item:nth-child(7) { grid-column: 1 / 3; grid-row: 4 / 5; }
.gallery-item:nth-child(8) { grid-column: 3 / 5; grid-row: 4 / 5; }
.gallery-item:nth-child(9) { grid-column: 5 / 7; grid-row: 4 / 6; } /* featured grande */

/* Fila 4: banner (4col al lado del featured) */
.gallery-item:nth-child(10) { grid-column: 1 / 5; grid-row: 5 / 6; }

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 220px;
    border: 1px solid rgba(255,255,255,0.06);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.45);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-coral);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.gallery-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.5;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
    .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(6) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(7) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(8) { grid-column: 1 / 2; grid-row: auto; }
    .gallery-item:nth-child(9) { grid-column: 2 / 3; grid-row: auto; }
    .gallery-item:nth-child(10) { grid-column: 1 / 3; grid-row: auto; }
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-item,
    .gallery-item:nth-child(n) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 200px;
    }
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: background 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    color: var(--topo-cream);
    margin-top: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 1px;
}

/* ==========================================
   DESARROLLO WEB SECTION
   ========================================== */
.webdev-section {
    background: linear-gradient(180deg, #0d1f14 0%, #1a2a1e 50%, #0d1820 100%);
    color: var(--topo-cream);
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.webdev-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(224, 120, 80, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(45, 90, 39, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.webdev-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    opacity: 0.85;
    max-width: 850px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.webdev-intro strong {
    color: var(--accent-coral);
    font-weight: 600;
}

/* Filter Buttons */
.webdev-filter {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--topo-cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

/* Web Dev Cards Grid */
.webdev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.webdev-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.webdev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.webdev-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.webdev-card:hover::before {
    transform: scaleX(1);
}

.webdev-card.hidden {
    display: none;
}

.webdev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.webdev-icon {
    font-size: 2rem;
}

.webdev-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent-gold);
}

.webdev-card-body {
    padding: 1.2rem 1.5rem;
    flex: 1;
}

.webdev-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: white;
}

.webdev-card-body p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.webdev-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.webdev-tech span {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    background: rgba(45, 90, 39, 0.3);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(45, 90, 39, 0.4);
}

.webdev-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--accent-coral);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.webdev-link:hover {
    background: rgba(224, 120, 80, 0.1);
    padding-left: 2rem;
}

.webdev-link svg {
    transition: transform 0.3s ease;
}

.webdev-link:hover svg {
    transform: translate(3px, -3px);
}

@media (max-width: 768px) {
    .webdev-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .webdev-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
