* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta Oficial Ocean Focus */
  --text: #0c4a6e;
  --muted: #0369a1;
  --primary: #0284c7;
  --secondary: #0369a1;
  --accent: #06b6d4;
  --border: rgba(2, 132, 199, 0.16);
  --shadow: 0 20px 60px rgba(2, 132, 199, 0.14);
  --shadow-soft: 0 10px 30px rgba(2, 132, 199, 0.08);
  --white: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(2, 132, 199, 0.14), transparent 22%),
    linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.topbar {
  width: 100%;
  padding: 18px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.7px;
}

.nav {
  display: flex;
  gap: 34px;
}

.nav a {
  transition: 0.25s ease;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 15px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.lang-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 600;
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(2, 132, 199, 0.22);
  color: var(--secondary);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--white);
  border-color: var(--primary);
}

/* PAGE */
.converter-page {
  padding: 60px 7% 90px;
}

.converter-hero {
  text-align: center;
  margin-bottom: 34px;
}

.badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  color: var(--secondary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(2, 132, 199, 0.18);
}

.converter-hero h1 {
  font-size: 3rem;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -1px;
  color: var(--text);
}

.converter-hero p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.04rem;
}

.converter-box {
  display: flex;
  justify-content: center;
}

.converter-card {
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.converter-card h2 {
  margin-bottom: 22px;
  font-size: 2rem;
  letter-spacing: -0.5px;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.form-group select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: #f8fafc;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: 0.25s ease;
}

.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

/* DROP ZONE */
.drop-zone {
  border: 2px dashed rgba(2, 132, 199, 0.35);
  padding: 36px 22px;
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.04);
}

.drop-zone:hover {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.drop-zone.dragover {
  background: #e0f2fe;
  border-color: var(--primary);
}

.drop-zone p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
}

.drop-zone i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.drop-zone input {
  display: none;
}

/* ACTION BUTTONS */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.full-width {
  width: 100%;
}

/* STATUS */
.status-message {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid rgba(2, 132, 199, 0.18);
  line-height: 1.6;
}

/* PREVIEW */
.preview-container {
  margin-top: 20px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid rgba(2, 132, 199, 0.18);
  text-align: center;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.preview-container p {
  color: var(--muted);
  font-weight: 500;
}

.preview-container strong {
  margin-top: 8px;
  color: var(--text);
}

.preview-container img {
  width: 220px !important;
  height: 160px !important;
  object-fit: contain;
  border-radius: 14px;
  margin-top: 12px;
  background: var(--white);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

/* FOOTER */
.footer {
  padding: 50px 7% 30px;
}

.footer-content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* FOOTER DE ALTO IMPACTO */
.footer {
  padding: 60px 7% 40px;
  background: transparent;
}

.footer-content {
  background: linear-gradient(135deg, #001e38, #003366);
  color: var(--white);
  border-radius: 36px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  box-shadow: 0 25px 50px rgba(0, 30, 56, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.footer-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.footer-brand h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: #bae6fd;
  font-size: 1.05rem;
  max-width: 380px;
  line-height: 1.6;
}

.footer-links-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-column a {
  display: block;
  color: #bae6fd;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--accent);
  transform: translateX(6px);
}
/* RESPONSIVE MEJORADO PARA DISPOSITIVOS MÓVILES */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 50px 5% 60px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 14px 5%;
    flex-wrap: nowrap; /* Evita que el logo y el botón se rompan en filas feas */
  }

  .logo {
    font-size: 1.6rem;
  }

  .top-actions {
    gap: 8px;
  }

  .lang-btn {
    display: none; /* Oculta el selector de idioma en pantallas muy pequeñas para ganar espacio limpio */
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .hero {
    padding: 30px 5% 40px;
  }

  .badge {
    font-size: 0.85rem;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat h3 {
    font-size: 1.4rem;
  }

  .hero-card {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-card h3 {
    font-size: 1.4rem;
  }

  .footer {
    padding: 40px 5% 20px;
  }

  .footer-content {
    padding: 24px;
    border-radius: 24px;
    flex-direction: column;
    gap: 30px;
  }

  .footer-links-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .hero-content h1 {
    font-size: 1.9rem;
  }
}