* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Work Sans', Arial, sans-serif; background: #f4f6fa; color: #8B4513; }
.top-nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: #ffffff; border-bottom: 1px solid #FFF8DC; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); flex-wrap: nowrap; }
.top-nav .brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; color: #ff6600; flex-shrink: 0; }
.brand-logo { width: 2rem; height: auto; border-radius: 0.35rem; object-fit: contain; }
.top-nav nav { display: flex; gap: 1rem; }
.top-nav nav a { color: #696969; text-decoration: none; font-weight: 600; transition: color 0.25s ease; }
.top-nav nav a:hover, .top-nav nav a:focus-visible { color: #ff6600; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 0.4rem; padding: 0.5rem; width: 44px; height: 44px; justify-content: center; align-items: center; }
.menu-toggle span { width: 24px; height: 2px; background: #ff6600; border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
.btn { border-radius: 0.55rem; padding: 0.55rem 0.95rem; font-size: 0.82rem;font-weight: 700; letter-spacing: 0.03em; text-decoration: none; }
.btn-primary { color: #fff; background: linear-gradient(120deg, #ff6600, #ff8533); border: 1px solid #ff6600; box-shadow: 0 8px 20px rgba(255, 102, 0, 0.26); }
.btn-secondary { color: #ff6600; background: #ffffff; border: 1px solid #dce6f8; }
.container { max-width: 1020px; margin: 0 auto; padding: 1.6rem 1.2rem; }
.hero { background: linear-gradient(145deg, #ff6600 0%, #ff8533 100%); border-radius: 1rem; color: #fff; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 2.2rem; margin-bottom: 1.8rem; }
.hero-copy h1 { margin: 0; font-size: 2.2rem; line-height: 1.15; color: #000; }
.hero-copy p { margin: 1rem 0; color: #fff; font-size: 1.03rem; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-img { background: radial-gradient(circle at 30% 40%, rgba(255,253,255,0.3), transparent 40%), linear-gradient(160deg, rgba(255,255,255,0.2), rgba(255, 102, 0, 0.36)); border-radius: 0.8rem; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.hero-img img { max-width: 100%; max-height: 100%; border-radius: 0.8rem; object-fit: cover; }
.footprint-trail { position: fixed; top: 18vh; left: 1rem; width: 100px; height: 70vh; pointer-events: none; z-index: 0; }
.footprint-trail::before { content: ""; position: absolute; inset: 0; background: url('huella-lateral.webp') no-repeat center/contain; opacity: 0.08; }
.footprint-trail .fox { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; transform: translate(-50%, 0); background: #ff6600; border-radius: 50%; transition: transform 0.12s ease; }
.footprint-trail .paw { position: absolute; left: 50%; width: 32px; height: 32px; background: url('huella-lateral.webp') no-repeat center/contain; opacity: 0; transform: translate(-50%, 12px) scale(0.78); transition: transform 0.35s ease, left 0.35s ease; }
.footprint-trail .paw.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.section { margin-bottom: 1.8rem; position: relative; overflow: hidden; }
#portfolio::before, #skills::before, #testimonials::before { content: ""; position: absolute; width: 160px; height: 160px; opacity: 0.06; background: url('logo-Alvaro-Diaz.webp') no-repeat center/contain; pointer-events: none; }
#portfolio::before { top: 1rem; right: 1rem; }
#skills::before { bottom: 1rem; left: 1rem; }
#testimonials::before { top: 40%; left: 1rem; transform: translateY(-50%); }
.section h3 { margin: 1rem 0 0.5rem; color: #ff6600; font-size: 1.3rem; }
.section ul { list-style: none; padding: 0; }
.section li { margin-bottom: 0.5rem; }
.accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion details { background: #fff; border: 1px solid #e4ecf8; box-shadow: 0 6px 20px rgba(255, 102, 0, 0.08); border-radius: 0.8rem; padding: 1rem; }
.accordion summary { cursor: pointer; font-weight: 600; color: #ff6600; display: flex; align-items: center; gap: 0.75rem; list-style: none; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { display: none; }
.accordion summary::before { content: ""; width: 24px; height: 24px; display: inline-block; border: 2px solid #ff6600; border-radius: 50%; flex-shrink: 0; }
.accordion summary::after { content: ""; width: 10px; height: 10px; display: inline-block; margin-left: auto; border-right: 2px solid #ff6600; border-bottom: 2px solid #ff6600; transform: rotate(45deg); transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(-135deg); }
.accordion summary:hover { color: #ff8533; }
.accordion p { margin: 0.5rem 0 0; color: #4e5f81; }
.card { background: #fff; border: 1px solid #e4ecf8; box-shadow: 0 6px 20px rgba(255, 102, 0, 0.08); border-radius: 0.8rem; padding: 1rem; }
.case { background: #fff; border: 1px solid #e4ecf8; box-shadow: 0 6px 20px rgba(255, 102, 0, 0.08); border-radius: 0.8rem; padding: 1rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.skill-item svg { display: none; }
.skill-item::before { content: ""; display: inline-block; width: 24px; height: 24px; margin-right: 0.65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23ff6600' stroke-width='2'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 10' fill='none' stroke='%23ff6600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.skill-item { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid #e4ecf8; box-shadow: 0 6px 20px rgba(255, 102, 0, 0.08); border-radius: 0.8rem; padding: 0.5rem 1rem; font-weight: 600; color: #ff6600; transition: transform 0.3s ease; }
.skill-item:hover { transform: scale(1.05); }
@media (max-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: 1fr; } .footprint-trail { display: none; } }
.skill-item { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid #e4ecf8; box-shadow: 0 6px 20px rgba(255, 102, 0, 0.08); border-radius: 0.8rem; padding: 0.5rem 1rem; font-weight: 600; color: #ff6600; transition: transform 0.3s ease; }
.skill-item:hover { transform: scale(1.05); }
.testimonials { display: grid; gap: 1rem; }
blockquote { margin: 0; background: #fff8e1; border-left: 4px solid #ff6600; padding: 1rem; border-radius: 0.6rem; color: #213858; }
blockquote cite { display: block; margin-top: 0.6rem; font-size: 0.86rem; color: #696969; }
.languages-list { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.language-pill { background: #ff6600; color: #fff; padding: 0.5rem 1rem; border-radius: 1rem; font-weight: 600; }
.contact-section form { background: #fff; border: 1px solid #e2eaf8; border-radius: 0.8rem; padding: 1rem; box-shadow: 0 6px 18px rgba(21, 46, 101, 0.1); }
.contact-section label { display: block; margin-bottom: 0.33rem; color: #696969; font-weight: 600; }
.contact-section input, .contact-section textarea { width: 100%; border: 1px solid #d1dcf1; border-radius: 0.6rem; padding: 0.7rem; font: inherit; color: #8B4513; }
.contact-section button[type='submit'] { background: linear-gradient(120deg, #ff6600, #ff8533); color: #fff; border: none; cursor: pointer; padding: 0.65rem 1rem; border-radius: 0.6rem; }
.footer { text-align: center; padding: 1rem 0.6rem; color: #696969; font-size: 0.85rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .top-nav { flex-wrap: wrap; gap: 0.7rem; } .top-nav nav { width: 100%; justify-content: center; } .container { padding: 1rem; }}@media (max-width: 768px) { .top-nav nav { gap: 0.5rem; } .top-nav nav a { font-size: 0.85rem; } .btn-primary { padding: 0.4rem 0.7rem; font-size: 0.75rem; } }
@media (max-width: 640px) { .top-nav { padding: 0.8rem 0.6rem; flex-direction: row; } .top-nav .brand { font-size: 0.9rem; flex: 1; } .brand-logo { width: 1.5rem; } .menu-toggle { display: flex !important; order: 2; margin: 0 0.5rem; } .top-nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #ffffff; flex-direction: column; gap: 0; z-index: 101; border-bottom: 1px solid #FFF8DC; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); } .top-nav nav.open { display: flex; } .top-nav nav a { padding: 0.8rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; color: #696969; } .top-nav nav a:hover { color: #ff6600; background: #f9f9f9; } .btn-primary { padding: 0.4rem 0.7rem; font-size: 0.75rem; order: 3; } }