/* =====================
   RESET BÁSICO
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0f0f0e;
  color: #f2f2f2;
  line-height: 1.5;
}

/* =====================
   HEADER
===================== */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
  border-bottom: 2px solid #ff7a00;
}

.hero img {
  width: 140px;
  margin-bottom: 15px;
}

.logo-link {
  display: inline-block;
}

.hero h1 {
  font-size: 2.2rem;
  color: #ff7a00;
  margin-bottom: 5px;
}

.hero p {
  font-size: 1rem;
  color: #ccc;
}

/* =====================
   ACCIONES
===================== */
.acciones {
  text-align: center;
  margin: 30px 0;
}

.acciones button {
  background: #ff7a00;
  color: #111;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.acciones button:hover {
  background: #ffa64d;
}

/* =====================
   TABLA
===================== */
.tabla-desktop {
  width: 95%;
  max-width: 1000px;
  margin: auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #161616;
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background: #222;
}

th, td {
  padding: 14px;
  text-align: left;
}

th {
  color: #ff7a00;
  font-weight: 600;
}

tbody tr {
  cursor: pointer;
  transition: background 0.25s;
}

tbody tr:hover {
  background: #202020;
}

tbody tr:active {
  background: #2a2a2a;
}

.col-secundaria {
  color: #bbb;
}

/* =====================
   CALCULADORA
===================== */
.calculadora {
  margin: 50px auto;
  width: 95%;
  max-width: 600px;
  background: #161616;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,122,0,0.15);
}

.calculadora h2 {
  text-align: center;
  color: #ff7a00;
  margin-bottom: 20px;
}

.calc-box select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

.calc-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.calc-box input[type="checkbox"] {
  margin-right: 6px;
}

.calc-box h3 {
  margin-top: 15px;
  font-size: 1.3rem;
  color: #fff;
}

.acciones-calc {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.acciones-calc button {
  flex: 1;
  background: #ff7a00;
  color: #111;
  border: none;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.acciones-calc button:hover {
  background: #ffa64d;
}

/* =====================
   FIRMA
===================== */
.firma-box {
  width: 95%;
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.firma-box p {
  margin-bottom: 8px;
  color: #ccc;
}

.firma-box canvas {
  background: #fff;
  border-radius: 6px;
  border: 2px dashed #ff7a00;
  cursor: crosshair;
}

.firma-box button {
  margin-top: 10px;
  background: #444;
  color: #eee;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.firma-box button:hover {
  background: #666;
}

/* =====================
   WHATSAPP
===================== */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #111;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(37,211,102,0.5);
  transition: transform 0.25s;
}

.whatsapp:hover {
  transform: scale(1.05);
}

/* =====================
   ANIMACIONES
===================== */
.fade-in {
  animation: fade 0.8s ease forwards;
}

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

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 600px) {

  .hero h1 {
    font-size: 1.8rem;
  }

  th, td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .acciones-calc {
    flex-direction: column;
  }

  .whatsapp {
    right: 15px;
    bottom: 15px;
    padding: 12px 16px;
  }
}
.logo-wrapper {
  display: inline-block;
  animation: fadeIn 1.2s ease-out;
}

.logo {
  width: 120px;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(120, 220, 255, 0.5));
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.logo {
  animation: float 3s ease-in-out infinite;
}