* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #333;
    padding: 20px;
    gap: 20px;
}

h1 {
    color: #2d6a4f;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

h2 {
    color: #000;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-size: .9em;
}

/* Contenedores Responsivos */
.container, .container1, .Sistema-de-2, .Sistema-de-3 {
    width: 100%;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.container, .container1 { max-width: 450px; }
.Sistema-de-2 { max-width: 700px; }
.Sistema-de-3 { max-width: 900px; }

/* Comportamiento de los Inputs */
input {
    padding: 10px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    font-size: 1em;
}

.container input, .container1 input {
    width: 100%;
    margin-bottom: 15px;
}

.Sistema-de-2 input {
    width: calc(33.33% - 12px);
    margin: 5px;
}

.Sistema-de-3 input {
    width: calc(25% - 12px);
    margin: 5px;
}

/* Media Queries para Tablets y Móviles */
@media (max-width: 768px) {
    .Sistema-de-2 input, .Sistema-de-3 input {
        width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .Sistema-de-2 input, .Sistema-de-3 input {
        width: 100%;
        margin: 5px 0 10px 0;
    }
}

/* Tooltips y Navegación */
.tooltip-container, .tooltip-container2 {
    --background: linear-gradient(45deg, #3d906b, #4db687);
    position: relative;
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
    padding: 0.7em 1.8em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
}

.tooltip, .tooltip2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    transform-origin: bottom;
    padding: 0.3em 0.6em;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    background: var(--background);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 90px;
    text-align: center;
    z-index: 10;
}

.tooltip::before, .tooltip2::before {
    position: absolute;
    content: "";
    height: 0.6em;
    width: 0.6em;
    bottom: -0.2em;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    background: var(--background);
}

.tooltip-container:hover .tooltip, .tooltip-container2:hover .tooltip2 {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.tooltip-container:hover, .tooltip-container2:hover {
    transform: scale(0.95);
}

.text, .text2 {
    text-decoration: none;
    color: #fff;
    display: block;
}

/* Botones y Enlaces Generales */
.calculo-cuadratico, .calculo-cuadratico2, .calculo-cuadratico3 {
    width: 100%;
    max-width: 250px;
    padding: 12px;
    background-color: #2d6a4f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.calculo-cuadratico:hover, .calculo-cuadratico2:hover, .calculo-cuadratico3:hover {
    background-color: #1e4a37;
}

/* Enlace 1 Animado */
.enlace-1 {
    --bg: #3d906b;
    --hover-bg: #4db687;
    --hover-text: #000;
    color: #fff;
    cursor: pointer;
    border: 1px solid var(--bg);
    border-radius: 4px;
    padding: 0.8em 2em;
    background: var(--bg);
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.enlace-1:hover {
    color: var(--hover-text);
    transform: translate(-0.25rem, -0.25rem);
    background: var(--hover-bg);
    box-shadow: 0.25rem 0.25rem var(--bg);
}

.enlace-1:active {
    transform: translate(0);
    box-shadow: none;
}

/* Botón 17 Animado */
.btn-17, .btn-17 * {
    border: 0 solid;
    box-sizing: border-box;
}

.btn-17 {
    -webkit-tap-highlight-color: transparent;
    background-color: #2d6a4f;
    color: #fff;
    cursor: pointer;
    line-height: 1.5;
    margin: 15px auto 0;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    border-radius: 7px;
    padding: 0.7em 0.89em;
    z-index: 0;
    display: inline-block;
    width: 100%;
}

.btn-17:disabled { cursor: default; }
.btn-17:-moz-focusring { outline: auto; }

.btn-17 .text-container {
    display: block;
    overflow: hidden;
    position: relative;
}

.btn-17 .text {
    display: block;
    color: white;
    position: relative;
    z-index: 1;
    text-decoration: none;
    font-size: 16px;
}

.btn-17:hover .text {
    animation: move-up-alternate 0.3s forwards;
}

@keyframes move-up-alternate {
    0% { transform: translateY(0); }
    50% { transform: translateY(80%); }
    51% { transform: translateY(-80%); }
    to { transform: translateY(0); }
}

.btn-17:after, .btn-17:before {
    --skew: 0.2;
    background: #4db687;
    content: "";
    display: block;
    height: 102%;
    left: calc(-50% - 50% * var(--skew));
    pointer-events: none;
    position: absolute;
    top: -104%;
    transform: skew(calc(150deg * var(--skew))) translateY(var(--progress, 0));
    transition: transform 0.2s ease;
    width: 100%;
    z-index: -1;
}

.btn-17:after {
    --progress: 0%;
    left: calc(50% + 50% * var(--skew));
    top: 102%;
}

.btn-17:hover:before { --progress: 100%; }
.btn-17:hover:after { --progress: -102%; }