/* =============================================
   Pececilla - Estilos
   Apoyo administrativo · solounclic.cl
   ============================================= */

:root {
  /* Paleta acuática - cálida y confiable */
  --color-sea: #0d7377;
  --color-sea-light: #14a3a8;
  --color-sea-dark: #095456;
  --color-coral: #e07a5f;
  --color-sand: #f4f1de;
  --color-cream: #faf8f5;
  --color-ink: #1a1a2e;
  --color-slate: #4a4a68;
  
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 115, 119, 0.12);
  --shadow-hover: 0 8px 32px rgba(13, 115, 119, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Login Page ---------- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--color-cream) 0%, #e8f4f4 50%, #d4ebe9 100%);
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%230d7377' fill-opacity='0.08' d='M0,64 L48,69.3 C96,75 192,85 288,80 C384,75 480,53 576,48 C672,43 768,53 864,58.7 C960,64 1056,64 1152,58.7 C1248,53 1344,43 1392,37.3 L1440,32 L1440,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 720px 120px;
  animation: wave 12s linear infinite;
}

.wave-2 { bottom: 20px; opacity: 0.6; animation-duration: 15s; animation-direction: reverse; }
.wave-3 { bottom: 40px; opacity: 0.3; animation-duration: 18s; }

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-sea-dark);
}

.tagline {
  font-size: 0.95rem;
  color: var(--color-slate);
  margin-top: 0.25rem;
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.login-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e5e5;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--color-sea);
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.form-error {
  color: var(--color-coral);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  min-height: 1.25rem;
}

.login-form .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-sea);
  color: white;
}

.btn-primary:hover {
  background: var(--color-sea-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-sea);
  border: 1.5px solid var(--color-sea);
}

.btn-outline:hover {
  background: rgba(13, 115, 119, 0.08);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

/* ---------- Navbar ---------- */
.navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-sea-dark);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user {
  font-size: 0.9rem;
  color: var(--color-slate);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-sea-light);
  top: -150px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--color-coral);
  bottom: -80px;
  left: -80px;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
}

.hero .highlight {
  color: var(--color-sea);
}

.hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--color-slate);
}

/* ---------- Main Content ---------- */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--color-slate);
  margin-bottom: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tool-card.coming-soon {
  opacity: 0.9;
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--color-slate);
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-sand);
  color: var(--color-slate);
  border-radius: 100px;
}

.cta-section {
  text-align: center;
  padding: 2rem;
  background: rgba(13, 115, 119, 0.06);
  border-radius: var(--radius-lg);
}

.cta-section p {
  color: var(--color-slate);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate);
  border-top: 1px solid rgba(0,0,0,0.06);
}
