/* Estilos compartidos de las páginas interiores de WIK Creations (mismo diseño que las páginas legales). */

:root {
    --carbon: #0B0D10;
    --steel: #1C2229;
    --metallic: #2B343D;
    --spark: #FF6A00;
    --arc: #2DA8FF;
    --white: #E6EDF3;
    --glow-spark: 0 0 20px rgba(255, 106, 0, 0.3);
    --glow-arc: 0 0 20px rgba(45, 168, 255, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--carbon);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--spark); border-radius: 3px; }

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--spark); color: var(--carbon);
    padding: 8px 16px; z-index: 10000;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    text-decoration: none; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* NAVIGATION */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 40px; display: flex; justify-content: space-between;
    align-items: center; transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(11, 13, 16, 0.92); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 106, 0, 0.1); padding: 15px 40px;
}
.logo {
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.4rem;
    letter-spacing: 2px; color: var(--white); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--spark); text-shadow: 0 0 20px rgba(255, 106, 0, 0.5); }
.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a {
    font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.95rem;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--white);
    text-decoration: none; position: relative; padding: 5px 0; transition: color 0.3s ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--spark); box-shadow: var(--glow-spark); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--spark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible {
    outline: 2px solid var(--spark); outline-offset: 4px; border-radius: 2px;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 5px; }
.mobile-menu-btn:focus-visible { outline: 2px solid var(--spark); border-radius: 4px; }

/* SECTIONS BASE */
.section { position: relative; padding: 100px 40px; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-tag {
    font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.85rem;
    letter-spacing: 4px; text-transform: uppercase; color: var(--spark); margin-bottom: 15px;
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.section-tag::before, .section-tag::after { content: ''; width: 40px; height: 1px; background: rgba(255, 106, 0, 0.3); }
.section-header h2 { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.section-header p { font-weight: 300; font-size: 1.05rem; color: rgba(230, 237, 243, 0.6); max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* DIVIDER */
.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.2), transparent); margin: 0 auto; max-width: 800px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* VISUALLY HIDDEN */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* LEGAL PAGE SPECIFIC */
.legal-section { padding-top: 140px; min-height: 60vh; }
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-intro {
    background: linear-gradient(135deg, rgba(28, 34, 41, 0.6), rgba(11, 13, 16, 0.8));
    border: 1px solid rgba(255, 106, 0, 0.15);
    border-radius: 12px; padding: 30px 35px; margin-bottom: 40px;
    color: rgba(230, 237, 243, 0.8); line-height: 1.7; font-size: 0.98rem;
}
.legal-body {
    background: linear-gradient(135deg, rgba(28, 34, 41, 0.4), rgba(11, 13, 16, 0.6));
    border: 1px solid rgba(255, 106, 0, 0.1);
    border-radius: 16px; padding: 45px;
    color: rgba(230, 237, 243, 0.75); line-height: 1.8; font-size: 0.95rem;
}
.legal-body h2 {
    font-family: 'Orbitron', sans-serif; font-size: 1.2rem;
    margin: 35px 0 15px; color: var(--white);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: 1.05rem; margin: 25px 0 10px; color: var(--arc);
}
.legal-body p { margin-bottom: 15px; }
.legal-body ul, .legal-body ol { margin: 10px 0 20px; padding-left: 25px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--spark); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--white); }
.legal-body em { color: rgba(230, 237, 243, 0.5); }

/* FOOTER */
.footer { background: linear-gradient(180deg, var(--carbon), rgba(11, 13, 16, 0.98)); border-top: 1px solid rgba(255, 106, 0, 0.1); padding: 55px 40px 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 35px; max-width: 1400px; margin: 0 auto 45px; }
.footer-brand h3 { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--spark); }
.footer-brand p { color: rgba(230, 237, 243, 0.5); line-height: 1.7; font-size: 0.88rem; }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(230, 237, 243, 0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--spark); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 25px; border-top: 1px solid rgba(255, 106, 0, 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-bottom p { color: rgba(230, 237, 243, 0.35); font-size: 0.82rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 38px; height: 38px; background: rgba(28, 34, 41, 0.5); border: 1px solid rgba(255, 106, 0, 0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(230, 237, 243, 0.5); text-decoration: none; transition: all 0.3s ease; font-size: 0.8rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.social-links a:hover { border-color: var(--spark); color: var(--spark); transform: translateY(-3px); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .section { padding: 70px 20px; }
    .legal-section { padding-top: 110px; }
    .legal-body { padding: 30px 20px; }
    .legal-intro { padding: 25px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .navbar { padding: 15px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
.legal-body .table-wrap { overflow-x: auto; margin: 10px 0 25px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid rgba(255, 106, 0, 0.12); }
.legal-body th { color: var(--spark); font-weight: 600; }
    
/* ===== Herramientas ===== */
.tool-section { padding-top: 140px; }
.tool-intro { max-width: 860px; margin: 0 auto 30px; text-align: center; color: rgba(230, 237, 243, 0.75); font-size: 1.05rem; line-height: 1.7; }
.calc {
  max-width: 860px; margin: 0 auto 40px; padding: 30px;
  background: var(--steel); border: 1px solid rgba(255, 106, 0, 0.25); border-radius: 16px;
}
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.calc label { display: grid; gap: 6px; font-size: 0.9rem; color: rgba(230, 237, 243, 0.8); }
.calc input, .calc select {
  font: inherit; color: var(--white); background: var(--carbon);
  border: 1px solid var(--metallic); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.calc input:focus-visible, .calc select:focus-visible { outline: 2px solid var(--spark); outline-offset: 1px; }
.calc .hint { font-size: 0.8rem; color: rgba(230, 237, 243, 0.45); }
.calc-results { margin-top: 26px; display: grid; gap: 14px; }
.result-card { background: var(--carbon); border-left: 3px solid var(--spark); border-radius: 10px; padding: 16px 18px; }
.result-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.15rem; color: var(--white); margin-bottom: 6px; }
.result-big { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: var(--spark); }
.result-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 4px 0; }
.result-row span { color: rgba(230, 237, 243, 0.85); }
.result-row strong { color: var(--white); }
.result-note { color: rgba(230, 237, 243, 0.65); font-size: 0.92rem; margin-top: 6px; }
.result-warning { border-left-color: #ffb020; }
.calc-disclaimer { margin-top: 18px; font-size: 0.82rem; color: rgba(230, 237, 243, 0.45); }
.tools-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tool-card {
  display: block; padding: 24px; border-radius: 14px; text-decoration: none; color: var(--white);
  background: var(--steel); border: 1px solid rgba(255, 106, 0, 0.18); transition: border-color 0.2s, transform 0.2s;
}
.tool-card:hover, .tool-card:focus-visible { border-color: var(--spark); transform: translateY(-2px); }
.tool-card h2, .tool-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; margin-bottom: 8px; }
.tool-card p { color: rgba(230, 237, 243, 0.65); font-size: 0.95rem; line-height: 1.6; }
.related { max-width: 860px; margin: 40px auto 0; }
.related h2 { font-family: 'Rajdhani', sans-serif; margin-bottom: 14px; }
.breadcrumb { max-width: 860px; margin: 0 auto 20px; font-size: 0.85rem; color: rgba(230, 237, 243, 0.5); }
.breadcrumb a { color: var(--spark); text-decoration: none; }
@media (max-width: 600px) { .calc { padding: 20px; } .tool-section { padding-top: 110px; } }
@media (max-width: 768px) {
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: rgba(11, 13, 16, 0.95); padding: 20px; backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 106, 0, 0.2); z-index: 999;
  }
}
.calc [hidden] { display: none !important; }
.tool-intro a, .result-note a { color: var(--spark); }
