
body {
    background-color: rgb(225, 245, 255);
}

h1 {
    color: rgb(0, 16, 59);
    font-family: 'Verdana', sans-serif;
    font-size: 40px;
    margin-top: 20px;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 5px;
}

.titulo1 {
    color: rgb(0, 16, 59);
    font-family: 'bahnschrift', sans-serif;
    font-size: 30px;
    margin-top: 20px;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

h2 {
    color: rgb(0, 16, 59);
    font-family: 'Verdana', sans-serif;
    font-size: 24px;
    margin-top: 20px;
    font-weight: bold;
}

h3 {
    color: rgb(0, 16, 59);
    font-family: 'Verdana', sans-serif;
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
}

.imagen {
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    display: block;
    border-style: initial;
}

.padding {
    padding: auto;
}

#parrafo1 {
    color: rgb(0, 16, 59);
    font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

#capital1 {
    color: rgb(0, 16, 59);
    font-family: "Lexend", sans-serif;
  line-height: 40px;
  float: left;
  font-size: 70px;
  margin: 5px;
}

.menu {
    display: flex;
    padding: 20px;
    justify-content: center;
    gap: 30px;
    
}
.menu a {
    text-decoration: none;
    color: rgb(0, 16, 59);
    font-family: 'Verdana', sans-serif;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.menu a:hover {
    background-color: rgb(0, 16, 59);
    color: white;
}

a.selected {
    background-color: rgb(0, 16, 59);
    color: white;
    
}

.imagenopacity {
    border-radius: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto;
    display: block;
    border-style: initial;
    opacity: 0.8;
    animation: fadeOut 0.5s ease forwards;
}
.imagenopacity:hover {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 70%; }
    100% { opacity: 100%;}
}

@keyframes fadeOut {
    0% { opacity: 100%; }
    100% { opacity: 80%;}
}

.scroll-text {
    display: block;
    width: auto;
    animation: scrollLeft 5s ease-in-out infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(30%);
    }
    50% {
        transform: translateX(-30%);
    }
    100% {
        transform: translateX(30%);
    }
}

.shape-animation {
    width: 100px;
    height: 100px;
    background-color: blue;
    margin: 20px auto;
    animation: moveAndTransform 6s ease-in-out infinite;
}

@keyframes moveAndTransform {
    0% {
        transform: translateX(750%);
        border-radius: 0;
        background-color: blue;
    }
    25% {
        transform: translateX(0);
        border-radius: 50%;
        background-color: green;
    }
    50% {
        transform: translateX(-750%);
        border-radius: 0;
        background-color: blue;
    }
    75% {
        transform: translateX(0);
        border-radius: 50%;
        background-color: green;
    }
    100% {
        transform: translateX(750%);
        border-radius: 0;
        background-color: blue;
    }
}

.textrans {
    color: rgb(0, 16, 59);
    transition: color 0.3s ease, transform 0.3s ease;
}
.textrans:hover {
    color:rgb(0, 204, 255);
    transform: scale(1.1);
}
table {
  /* Reseteo y Estructura Básica */
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-width: 300px;
  width: 80%;
  
  /* Bordes Redondeados y Sombra */
  border-radius: 8px 8px 0 0;
  overflow: hidden; /* Para que los bordes redondeados funcionen */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

table thead tr {
  background-color: #009879; /* Un verde esmeralda moderno */
  color: #ffffff;
  text-align: left;
  font-weight: bold;
}

table th,
table td {
  padding: 12px 15px;
}

table tbody tr {
  border-bottom: 1px solid #dddddd;
}

/* Efecto Hover: ¡Muy importante para la estética! */
table tbody td:hover {
  background-color: #f1f1f1;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

@keyframes rotar-icono {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .giro-infinito {
    display: inline-block !important;
    animation: rotar-icono 2s linear infinite !important;
    -webkit-animation: rotar-icono 2s linear infinite !important; /* Para Safari/Chrome viejo */
  }

  /* 1. Estado Base: Cómo se ve la imagen siempre */
.img-estetica {
  border-radius: 20px;          /* Puntas redondeadas estéticas */
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); /* Movimiento ultra suave */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra inicial sutil */
  overflow: hidden;             /* Asegura que nada se salga de las esquinas */
  display: inline-block;        /* Para que el escalado no rompa el diseño */
}

/* 2. Estado Hover: Lo que pasa al pasar el mouse */
.img-estetica:hover {
  transform: scale(1.08);       /* Se agranda un 8% */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); /* Sombra de "flotación" */
  filter: brightness(1.1);      /* Se ilumina ligeramente */
  z-index: 10;                  /* Se asegura de estar por encima de lo demás */
}

/* 3. Opcional: Si quieres que regrese a su tamaño original con un efecto de rebote */
.img-estetica:not(:hover) {
  transform: scale(1);
}

.escritorio {
  height: 100vh;
  background: #1e1e2f;
  padding: 30px;
  position: relative;
}

.ventana {
  position: absolute;
  top: 120px;
  left: 50px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  width: 310px;
  overflow: hidden;
  display: none; /* Se asegura de que empiecen ocultas */
}

.barra {
  background: #333;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

:root {
    --primary: #6366f1;
    --text: #1e293b;
}

.main-container {
    display: flex;
    justify-content: center;
    padding: 40px;
    font-family: 'Inter', sans-serif;
}

.glass-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    width: 340px;
    border: 1px solid #f1f5f9;
}

/* Contenedor del Triángulo */
.visualizer {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center; /* Centrado para que la escala no lo rompa */
    margin-bottom: 25px;
    background: #f8fafc;
    border-radius: 20px;
    perspective: 1000px;
}

.triangle-shape {
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    /* Cortamos el div en forma de triángulo */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.3));
}

.form-group { margin-bottom: 18px; }

label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

input[type="number"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    background: #fdfeff;
}

input[type="number"]:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.btn-moderno {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--text);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-moderno:hover {
    background: #000;
    transform: scale(1.02);
}

.res-container {
    margin-top: 20px;
    padding: 15px;
    background: #eff6ff;
    border-radius: 14px;
    text-align: center;
}

#areaResultado {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

/*ESTULLOS DE SUELDO XDDD */

:root {
    --primary: #10b981; /* Verde esmeralda para dinero */
    --text-main: #0f172a;
    --bg-card: #ffffff;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
}

.glass-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.06);
    width: 380px;
    border: 1px solid #f1f5f9;
}

.title {
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Visualizador de Barra */
.visualizer {
    margin-bottom: 30px;
    text-align: center;
}

.salary-bar-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.salary-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.viz-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

/* Formulario */
.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.input-with-label {
    position: relative;
    display: flex;
    align-items: center;
}

.unit-tag {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
}

input[type="number"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-moderno {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 18px;
    background: var(--text-main);
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-moderno:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.res-container {
    margin-top: 30px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 20px;
    text-align: center;
}

.res-label { font-size: 12px; color: #166534; font-weight: 700; margin-bottom: 5px; }
.res-amount { font-size: 28px; color: #15803d; font-weight: 800; }

/* --- FIX DE COLORES SEPARADOS --- */

/* Colores para el Triángulo (Área) */
.area-tema {
    --primary: #6366f1; /* Indigo */
}
.area-tema .res-container {
    background: #eef2ff; /* Azul muy clarito */
}
.area-tema .res-amount, .area-tema strong {
    color: #6366f1;
}

/* Colores para el Sueldo */
.sueldo-tema {
    --primary: #10b981; /* Verde */
}
.sueldo-tema .res-container {
    background: #f0fdf4; /* Verde muy clarito */
}
.sueldo-tema .res-amount {
    color: #15803d;
}

/* Ajuste para que los botones sigan el color de su respectivo tema */
.area-tema .btn-moderno:hover {
    background: #4f46e5; /* Indigo oscuro */
}

.sueldo-tema .btn-moderno:hover {
    background: #059669; /* Verde oscuro */
}

/* El visualizador del triángulo necesita su color fijo */
.area-tema .triangle-shape {
    background-color: #6366f1;
}



.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 380px;
}

h2 { text-align: center; color: #2c3e50; margin-bottom: 25px; }
.input-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; font-size: 13px; }

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 14px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

button:hover { background: #27ae60; }

.resultado-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    display: none;
}

.linea {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.final-container {
    margin-top: 15px;
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

.input-resultado {
    background-color: #fff9c4 !important;
    border: 2px solid #f1c40f !important;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.4em;
    text-align: center;
    margin-top: 5px;
}

.btn-pdf {
    background: #e74c3c !important;
    margin-top: 15px;
}

.btn-pdf:hover { background: #c0392b !important; }