body {
    background-color: aquamarine;
}

h1 {
    color: brown;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: oblique;
    font-weight: bold;
    text-shadow: 2px 2px rgb(20, 8, 8);
    letter-spacing: 10px;
}



.sjl {
    color: rgb(191, 15, 197);
    font-weight: bold;
    text-shadow: 2px 2px rgb(99, 5, 5);
    letter-spacing: 10px;
    text-align: center;

}



.imagen {
    border-radius: 20px;
    box-shadow: 10px 2px rgb(15, 17, 17);
    display: block;
    margin-left: auto;
    margin-right: auto;


}

.imagen01 {
    border-radius: 20px;
    box-shadow: 10px 2px rgb(15, 17, 17);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.imagen01:hover {
    animation: animacion 3s ease forwards;
}

@keyframes animacion {
    0% {
        opacity: 10%;
    }

    50% {
        opacity: 50%;
    }

    100% {
        opacity: 100%;
    }
}

#parrafo {
    font-family: "Saira Stencil", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-variation-settings:
        "wdth" 119.1;

}

#parrafo1 {
    font-family: "Boldonse", system-ui;
    font-weight: 400;
    font-style: normal;
}

#parrafo2 {
    font-family: "BJ Cree", serif;
    font-weight: 400;
    font-style: normal;
}

.capital {
    color: brown;
    font-size: 3rem;
    font-style: oblique;
    font-weight: bold;
    float: left;
    margin-right: 8px;
    line-height: 1;
    text-shadow: 2px 2px rgb(20, 8, 8);

}

/* 

  flex-direction: column;
  para ponerlo en columna el nav bar
*/
.menu {
    display: flex;
    padding: auto;
    margin: auto;

    justify-content: center;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: brown;
    font-weight: 100px;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: rgb(153, 153, 167);
    padding: 6px;
    border-radius: 9px;
}


a.seleccionado {
    color: rgb(68, 58, 199);
}

a:hover {
    background-color: rgb(7, 8, 7);
    color: rgb(240, 255, 247);
}

.colorca:hover {
    animation: titulo 2s ease forwards;

}

/*
transform: scale(1.2);   --- forma basica 
*/

@keyframes titulo {

    10% {
        color: black;
        font-size: 25px;
    }

    25% {
        color: rgb(9, 12, 182);
        font-size: 35px;
    }

    50% {
        color: fuchsia;
        font-size: 40px;
    }

    75% {
        color: darkorange;
        font-size: 45px;
    }

    100% {
        color: rgb(229, 255, 0);
        font-size: 50px;
    }
}


.desplazamiento {

    display: inline-block;
    font-family: sans-serif;
    font-size: 2rem;
    font-weight: bold;

    /* 1. Definimos la animación */
    /* duration | timing-function | iteration-count | direction */
    animation: vaYregresa 5s ease-in-out infinite alternate;

}


.desplazamiento span {
    display: inline-block;
    padding-right: 50px;
}

@keyframes vaYregresa {
    0% {
        transform: translateX(0%);
        /* Empieza en el inicio izquierdo */
    }

    100% {
        /* Se mueve a la izquierda hasta que el final del texto toque el borde */
        /* Ajusta este valor según qué tan largo sea tu texto */
        transform: translateX(200%);
    }
}

/* Estilo de la tabla */
.tabla-contacto {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.tabla-contacto th,
.tabla-contacto td {
    border: 1px solid #ddd;
    padding: 12px;
}

/* EFECTO EN LA FILA: Se ilumina al pasar el mouse */
.tabla-contacto tr:hover {
    background-color: #f2f2f2;
}

/* EFECTO EN EL ICONO: Se agranda al pasar el mouse */
.icono-ws {
    display: inline-block;
    /* Necesario para que la animación funcione */
    transition: transform 0.3s ease;
    /* Movimiento suave */
    cursor: pointer;
}

.icono-ws:hover {
    transform: scale(1.5);
    /* Crece un 50% */
}

/* Seleccionamos la imagen que está dentro de la clase .icono-ws */
.icono-ws img {
    width: 20px;
    /* Tamaño pequeño para la tabla */
    height: auto;
    /* Mantiene la proporción para que no se vea aplastado */
    vertical-align: middle;
    /* Lo alinea con el texto del número */
    margin-right: 8px;
    /* Separa el icono del número */
    transition: transform 0.3s ease;
    /* Prepara el efecto de movimiento */
}

/* EFECTO: El icono se agranda un poquito cuando pasas el mouse por la celda */
td:hover .icono-ws img {
    transform: scale(1.2);
    filter: brightness(1.1);
    /* Lo hace brillar un poco */
}

.enlace-mapa {
    color: #d32f2f;
    /* Un color rojo tipo marcador de mapa */
    text-decoration: none;
    /* Quitamos el subrayado */
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

/* EFECTO: Al pasar el mouse, cambia de color y se mueve un poco */
.enlace-mapa:hover {
    color: #b71c1c;
    transform: scale(1.05);
    /* Crece un poquito */
    text-decoration: underline;
    /* Aparece el subrayado solo al pasar el mouse */
}


/* Definimos la animación que gira y cambia el brillo */
@keyframes girar-y-brillar {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 2px #ff3333);
        /* Brillo pequeño */
    }

    50% {
        /* A mitad del giro, el brillo es más fuerte */
        filter: drop-shadow(5 5 10px #be1b16) brightness(1.3);
    }

    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 2px #ff2c2c);
        /* Vuelve al inicio */
    }
}

/* Aplicamos la animación al icono */
.icono-ws img {
    width: 25px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;

    /* Animación: nombre, duración, suavidad, infinita */
    animation: girar-y-brillar 2s linear infinite;
}

/* Efecto opcional: cuando el mouse está encima, el brillo se vuelve dorado o más intenso */
.icono-ws img:hover {
    animation-play-state: paused;
    /* Se detiene para que puedan clicar bien */
    filter: drop-shadow(0 0 15px #f8af28) brightness(1.5);
    cursor: pointer;
}

.icono-ws-log {
    display: inline-flex;
    /* Cambiado a inline-flex para alinear hijos */
    align-items: center;
    /* Centra verticalmente la imagen y el texto */
    gap: 8px;
    /* Crea un espacio constante entre icono y texto */
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    /* Por si es un enlace */
    color: inherit;
}

/* Control total del tamaño de la imagen */
.icono-ws-log img {
    width: 30px;
    /* Tamaño clásico de icono */
    height: 30px;
    /* Forzamos que sea cuadrado */
    object-fit: contain;
    /* Evita que la imagen se deforme */
    display: block;
    border-radius: 50%;
}

/* Tu efecto de crecimiento */
.icono-ws-log:hover {
    transform: scale(9.5);
    /* Cuidado: 3.5 es gigante, 1.1 o 1.2 es más sutil */
}


/* Contenedor */
.icono-ws-cascada {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: sans-serif;
}

/* Imagen - Estado base */
.icono-ws-cascada img {
    width: 35px;
    /* Tamaño normal */
    height: 35px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

/* Al pasar el mouse: Activa la animación */
.icono-ws-cascada:hover img {
    animation: cascada-grande 0.8s ease-out forwards;
}

/* Animación que combina Caída, Rebote y Crecimiento */
@keyframes cascada-grande {
    0% {
        transform: translateY(-40px) scale(1);
        /* Empieza arriba, tamaño normal */
        opacity: 0;
    }

    50% {
        transform: translateY(0) scale(1.8);
        /* Cae y crece a casi el doble */
        opacity: 1;
    }

    70% {
        transform: translateY(-10px) scale(1.8);
        /* Rebote 1 (manteniendo tamaño) */
    }

    85% {
        transform: translateY(0) scale(1.8);
        /* Cae de nuevo */
    }

    100% {
        transform: translateY(0) scale(1.8);
        /* Se queda grande y en su lugar */
    }
}

/* Estilo para el texto que acompaña al icono */
.icono-ws-cascada span {
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.icono-ws-cascada:hover span {
    color: #25D366;
    /* El texto también cambia de color al hacer hover */
    transform: scale(100.5);
    /* Cuidado: 3.5 es gigante, 1.1 o 1.2 es más sutil */

}


/* 1. Configuración del cuerpo: Centra todo horizontalmente */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Esto es lo que centra todo al medio */
    color: white;
}

/* 2. Estilo del Menú */
.menu {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.menu a {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu a:hover, .menu a.seleccionado {
    background: white;
    color: #764ba2;
    font-weight: bold;
}

/* 3. Títulos */
h1, h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 10px 0;
}

/* 4. La Tarjeta de la Calculadora */
.calculator-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 350px; /* Tamaño fijo para que parezca tarjeta */
    text-align: center;
    margin-bottom: 50px;
}

.calculator-card h2 {
    color: #444;
    font-size: 1.5rem;
    text-shadow: none;
}

/* 5. Grupos de Input */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #764ba2;
}

/* 6. Cuadrícula de Botones */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    gap: 10px;
    margin: 20px 0;
}

.btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn:active { transform: scale(0.95); }

.btn-primary { background-color: #4a90e2; }
.btn-secondary { background-color: #6c757d; }
.btn-success { background-color: #28a745; }
.btn-danger { background-color: #dc3545; grid-column: span 2; } /* Botón borrar ocupa todo el ancho */

/* 7. Contenedor del Resultado */
.result-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #764ba2;
    margin-top: 10px;
}

.result-container p {
    margin: 0;
    font-weight: bold;
    color: #555;
}

#resultado {
    color: #764ba2;
    font-size: 1.3rem;
}

/*


CSS triangulo


*/

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: white;
}

.main-container {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    justify-content: center;
}

.calculator-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label { display: block; font-weight: bold; margin-bottom: 5px; color: #666; }

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1.1rem;
}

.result-box {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid #1e3c72;
}

/* Contenedor del dibujo */
.canvas-container {
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 10px;
}

canvas {
    max-width: 100%;
}



/*


sueldo

*/


/* Contenedor principal para centrar solo este bloque */
.seccion-sueldo {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* La tarjeta específica */
.seccion-sueldo .card-sueldo {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 300px;
    text-align: center;
    border-top: 5px solid #2ecc71; /* Un toque verde de dinero */
}

.seccion-sueldo .titulo-sueldo {
    color: #27ae60;
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.seccion-sueldo .sub-sueldo {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* Estilo de los inputs locales */
.seccion-sueldo .campo-input {
    text-align: left;
    margin-bottom: 15px;
}

.seccion-sueldo .campo-input label {
    font-weight: bold;
    color: #444;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.seccion-sueldo .campo-input input {
    width: 100%;
    padding: 10px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.seccion-sueldo .campo-input input:focus {
    border-color: #2ecc71;
}

/* Caja de resultado local */
.seccion-sueldo .display-resultado {
    background: #f0fff4;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.seccion-sueldo .display-resultado p {
    margin: 0;
    font-size: 0.8rem;
    color: #555;
}

.seccion-sueldo #resultadoSueldo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #27ae60;
}

/* Mensaje de error local */
.seccion-sueldo .error-mensaje {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 10px;
    display: none;
    font-weight: bold;
}

/* rp */



:root {
    --primary: #003366;
    --accent: #d32f2f;
    --border: #dee2e6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f7f9;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

/* LA ÚNICA CAJA */
.calculator-container {
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Cabecera sin márgenes raros */
.calc-header {
    padding: 40px 50px;
    border-bottom: 5px solid var(--accent);
}

.badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}

.calc-header h1 {
    margin-top: 15px;
    color: var(--primary);
    font-size: 2.2rem;
}

/* Cuerpo con Grid Proporcionado */
.calc-body {
    padding: 50px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 25px;
    align-items: end; /* Alinea los inputs en la misma base */
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    min-height: 40px; /* Alineación de labels */
    display: flex;
    align-items: center;
}

/* Inputs y Selects */
.input-field, .toggle-field {
    height: 55px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-field input, .input-field select {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    font-size: 1rem;
    outline: none;
}

.prefix { padding-left: 15px; font-weight: bold; color: #777; }

/* Switch Proporcionado al ancho de columna */
.toggle-field {
    justify-content: space-around;
    background: #f8f9fa;
}

.switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s; border-radius: 34px;
}

.slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}

input:checked + .slider { background-color: #28a745; }
input:checked + .slider:before { transform: translateX(22px); }

/* Botón que ocupa su espacio real */
.button-area {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px 80px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-main:hover { background: #002244; transform: translateY(-2px); }

/* Resultado Expandido */
.result-box {
    margin-top: 40px;
    padding: 40px;
    background: #eef6ff;
    border-radius: 12px;
    text-align: center;
}

#total-cts {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 10px;
}

.hidden { display: none; }

/* Responsive */
@media (max-width: 1000px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

:root {
    --primary: #003366;
    --accent: #d32f2f;
    --border: #dee2e6;
    --white: #ffffff;
    --bg: #f4f7f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.list-container {
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Cabecera con Botón Volver */
.list-header {
    padding: 30px 40px;
    background: var(--white);
    border-bottom: 4px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}

.list-header h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-top: 5px;
}

.btn-back {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
}

/* Tabla Estilizada */
.table-wrapper {
    padding: 40px;
    min-height: 300px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead th {
    padding: 15px;
    background: #f8f9fa;
    color: var(--primary);
    font-weight: 800;
    border-bottom: 2px solid var(--border);
}

tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

/* Estilo para los badges en la tabla */
.tag-hijos {
    background: #e7f3ff;
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.monto-total {
    font-weight: 800;
    color: var(--primary);
}

/* Botón Eliminar Fila */
.btn-delete-row {
    background: #ffebee;
    color: #c62828;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Acciones Finales */
.list-actions {
    padding: 30px 40px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary:hover { background: #5a6268; }

.info-text { color: #888; font-size: 0.85rem; }












