
/* =========================================
   CALCULARD 2026
   DISEÑO PROFESIONAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fb;
    color: #172033;
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e7ebf2;

    backdrop-filter: blur(12px);
}

.nav {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;

    text-decoration: none;

    height: 52px;
}

.logo img {
    display: block;

    width: 150px;
    height: auto;

    object-fit: contain;
}

.menu a {
    position: relative;

    color: #596579;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    padding: 8px 0;

    transition: color 0.2s ease;
}

.menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #1769e0;

    border-radius: 10px;

    transition: width 0.2s ease;
}

.menu a:hover {
    color: #1769e0;
}

.menu a:hover::after {
    width: 100%;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(23, 105, 224, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(23, 105, 224, 0.08),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #eaf3ff 0%,
            #ffffff 52%,
            #f5faff 100%
        );

    padding: 115px 0 110px;
}

.hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -80px;
    bottom: -100px;

    background: rgba(23, 105, 224, 0.08);

    border-radius: 50%;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 820px;
}

.badge {
    display: inline-flex;

    align-items: center;

    background: #e5efff;

    color: #1769e0;

    padding: 9px 16px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 800;

    margin-bottom: 24px;
}

.hero h1 {
    font-size: 44px;

    line-height: 1.02;

    letter-spacing: -2px;

    margin-bottom: 24px;
}

.hero p {
    font-size: 17px;
}

.hero h1 span {
    color: #1769e0;

    position: relative;
}

.hero p {
    max-width: 700px;

    color: #667085;

    font-size: 20px;

    line-height: 1.7;

    margin-bottom: 34px;
}

.hero-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #1769e0;

    color: #ffffff;

    text-decoration: none;

    padding: 15px 25px;

    border-radius: 11px;

    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(23, 105, 224, 0.22);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-button:hover {
    background: #1258bf;

    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(23, 105, 224, 0.30);
}

.hero-button:active {
    transform: translateY(-1px);
}

/* =========================================
   TITULOS
========================================= */

.tools,
.about {
    padding: 100px 0;
}

.section-title {
    max-width: 720px;

    margin-bottom: 45px;
}

.section-title span {
    display: inline-block;

    color: #1769e0;

    background: #edf5ff;

    padding: 6px 10px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.4px;
}

.section-title h2 {
    font-size: 40px;

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin: 8px 0 14px;
}

.section-title p {
    color: #667085;

    font-size: 17px;
}


/* =========================================
   CARDS
========================================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.card {
    position: relative;

    background: white;

    border: 1px solid #e5eaf1;

    border-radius: 20px;

    padding: 30px;

    box-shadow:
        0 8px 30px rgba(23, 32, 51, 0.05);

    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.card:hover .card-icon {
    transform: scale(1.08);
}

.card-icon {
    transition: transform 0.2s ease;
}

.card-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf5ff;

    border-radius: 16px;

    font-size: 28px;

    margin-bottom: 20px;
}

.card h3 {
    font-size: 21px;

    letter-spacing: -0.3px;

    margin-bottom: 9px;
}

.card p {
    min-height: 54px;

    color: #667085;

    font-size: 15px;

    margin-bottom: 22px;
}

.card button {
    width: 100%;

    border: 0;

    background: #172033;

    color: white;

    padding: 13px 16px;

    border-radius: 10px;

    font-weight: 800;

    transition: 0.2s;
}

.card button:hover {
    background: #1769e0;
}


/* =========================================
   CALCULADORAS
========================================= */

.calculator-section {
    padding: 20px 0 110px;
}

.calculator-box {
    background: white;

    border: 1px solid #e4e9f0;

    border-radius: 24px;

    padding: 42px;

    max-width: 780px;

    margin: 0 auto 45px;

    box-shadow:
        0 15px 45px rgba(23, 32, 51, 0.07);
}

.calculator-header {
    margin-bottom: 30px;
}

.calculator-header span {
    color: #1769e0;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.3px;
}

.calculator-header h2 {
    font-size: 32px;

    line-height: 1.2;

    letter-spacing: -0.8px;

    margin: 8px 0 10px;
}

.calculator-header p {
    color: #667085;

    font-size: 15px;
}


/* =========================================
   FORMULARIOS
========================================= */

.calculator-box label {
    display: block;

    color: #273246;

    font-size: 14px;

    font-weight: 800;

    margin: 19px 0 8px;
}

.calculator-box input,
.calculator-box select {
    width: 100%;

    background: #ffffff;

    border: 1px solid #d8dee8;

    color: #172033;

    padding: 14px 15px;

    border-radius: 11px;

    outline: none;

    transition: 0.2s;
}

.calculator-box input::placeholder {
    color: #a0a9b8;
}

.calculator-box input:focus,
.calculator-box select:focus {
    border-color: #1769e0;

    box-shadow:
        0 0 0 4px rgba(23, 105, 224, 0.10);
}


/* =========================================
   BOTONES
========================================= */

.calculate-button {
    width: 100%;

    border: none;

    background: #1769e0;

    color: white;

    padding: 16px;

    border-radius: 11px;

    font-size: 15px;

    font-weight: 900;

    margin-top: 25px;

    box-shadow:
        0 9px 20px rgba(23, 105, 224, 0.18);

    transition:
        background 0.2s,
        transform 0.2s;
}

.calculate-button:hover {
    background: #1258bf;

    transform: translateY(-1px);
}

.calculate-button:active {
    transform: translateY(0);
}


/* =========================================
   RESULTADOS
========================================= */

.result {
    display: none;

    margin-top: 30px;

    background:
        linear-gradient(
            135deg,
            #f1f7ff,
            #f8fbff
        );

    border: 1px solid #dce9fb;

    border-radius: 17px;

    padding: 27px;
}

.result h3 {
    color: #273246;

    font-size: 16px;

    margin-bottom: 8px;
}

.big-result {
    color: #1769e0;

    font-size: 40px;

    line-height: 1;

    font-weight: 950;

    letter-spacing: -1px;

    margin: 8px 0 25px;
}

.result-line {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-top: 1px solid #dce4ef;
}

.result-line span {
    color: #667085;

    font-size: 14px;
}

.result-line strong {
    color: #172033;

    font-size: 14px;

    text-align: right;
}

.warning {
    background: #fff8e6;

    color: #805800;

    border: 1px solid #f4dfad;

    border-radius: 11px;

    padding: 13px;

    margin-top: 20px;

    font-size: 13px;
}


/* =========================================
   SOBRE
========================================= */
.about {
    background: #ffffff;

    border-top: 1px solid #e7ebf2;

    padding: 100px 0;
}

.about .section-title {
    max-width: 760px;

    margin-bottom: 0;
}

.about .section-title h2 {
    max-width: 700px;
}

.about .section-title p {
    max-width: 680px;

    line-height: 1.8;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #111827;

    color: white;

    padding: 60px 0;
}

.footer strong {
    display: block;

    font-size: 21px;

    letter-spacing: -0.3px;

    margin-bottom: 5px;
}

.footer p {
    color: #b8c1d1;

    margin: 8px 0 16px;

    font-size: 14px;
}

.footer small {
    color: #7f899b;

    font-size: 12px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 85px 0;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .container {
        width: min(92%, 500px);
    }

    .nav {
        min-height: 65px;
    }

    .menu {
        display: none;
    }

    .hero {
        padding: 65px 0 70px;
    }

    .hero h1 {
    font-size: 44px;

    line-height: 1.02;

    letter-spacing: -2px;

    margin-bottom: 24px;
}
    

    .hero p {
        font-size: 17px;
    }

    .tools,
    .about {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 31px;
    }

    .cards {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .card {
        padding: 25px;
    }

    .calculator-box {
        padding: 25px 20px;

        border-radius: 18px;
    }

    .calculator-header h2 {
        font-size: 27px;
    }

    .big-result {
        font-size: 32px;
    }

}
/* =========================================
   HERO MEJORADO
========================================= */

.hero-description {
    max-width: 680px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 23px;

    border: 1px solid #d8e0eb;
    border-radius: 11px;

    color: #172033;
    background: #ffffff;

    text-decoration: none;

    font-weight: 800;

    transition: 0.2s;
}

.hero-secondary:hover {
    border-color: #1769e0;
    color: #1769e0;
}

.hero-features {
    display: flex;
    gap: 38px;

    margin-top: 42px;
    padding-top: 25px;

    border-top: 1px solid #dfe7f2;

    max-width: 620px;
}

.hero-features div {
    display: flex;
    flex-direction: column;
}

.hero-features strong {
    font-size: 22px;
    color: #172033;
}

.hero-features span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button,
    .hero-secondary {
        width: 100%;
    }

    .hero-features {
        gap: 20px;
        justify-content: space-between;
    }

    .hero-features strong {
        font-size: 19px;
    }
}
/* LOGO CALCULARD */

.logo img {
    width: 135px;
    height: auto;

    display: block;

    object-fit: contain;
}
/* =========================================
   TARJETAS DE CALCULADORAS
========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 18px;

    padding: 28px;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: #1769e0;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.10);
}

.card-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef5ff;

    border-radius: 14px;

    font-size: 27px;

    margin-bottom: 18px;
}

.card h3 {
    margin: 0 0 10px;

    font-size: 21px;

    color: #172033;
}

.card p {
    min-height: 48px;

    margin-bottom: 22px;

    color: #667085;

    line-height: 1.6;

    font-size: 14px;
}

.card button {
    width: 100%;

    border: none;
    border-radius: 10px;

    padding: 13px 16px;

    background: #1769e0;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition: background 0.2s ease;
}

.card button:hover {
    background: #0f56bd;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

}
/* =========================================
   DISEÑO FINAL DE LAS CALCULADORAS
========================================= */

.calculator-section {
    background: #f5f8fc;
    padding: 80px 0;
}

.calculator-box {
    max-width: 760px;

    margin: 0 auto 45px;

    background: #ffffff;

    border: 1px solid #e1e7ef;

    border-radius: 22px;

    padding: 38px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.07);
}


/* ENCABEZADO */

.calculator-header {
    padding-bottom: 24px;

    margin-bottom: 25px;

    border-bottom: 1px solid #e8edf3;
}

.calculator-header span {
    color: #1769e0;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1.3px;
}

.calculator-header h2 {
    margin: 8px 0 10px;

    color: #172033;

    font-size: 30px;

    line-height: 1.2;
}

.calculator-header p {
    margin: 0;

    color: #667085;

    font-size: 15px;
}


/* CAMPOS */

.calculator-box label {
    display: block;

    margin: 18px 0 7px;

    color: #273246;

    font-size: 14px;

    font-weight: 800;
}

.calculator-box input,
.calculator-box select {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #d7dee8;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.calculator-box input:focus,
.calculator-box select:focus {
    border-color: #1769e0;

    box-shadow:
        0 0 0 4px rgba(23, 105, 224, 0.10);
}


/* BOTÓN */

.calculator-box button {
    width: 100%;

    margin-top: 24px;

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #1769e0;

    color: #ffffff;

    font-size: 15px;

    font-weight: 900;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}

.calculator-box button:hover {
    background: #0f56bd;

    transform: translateY(-1px);
}


/* RESULTADO */

.result {
    margin-top: 28px;

    padding: 25px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f0f6ff,
            #f8fbff
        );

    border: 1px solid #dbe8fa;
}

.result h3 {
    margin: 0 0 8px;

    color: #273246;

    font-size: 15px;
}

.big-result {
    margin: 8px 0 22px;

    color: #1769e0;

    font-size: 38px;

    font-weight: 950;
}

.result-line {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 12px 0;

    border-top: 1px solid #dce5f0;
}

.result-line span {
    color: #667085;

    font-size: 14px;
}

.result-line strong {
    color: #172033;

    font-size: 14px;
}


/* CELULAR */

@media (max-width: 600px) {

    .calculator-section {
        padding: 60px 0;
    }

    .calculator-box {
        padding: 25px 20px;

        border-radius: 18px;
    }

    .calculator-header h2 {
        font-size: 26px;
    }

    .big-result {
        font-size: 31px;
    }

    .result-line {
        align-items: flex-start;
    }

}
/* =========================================
   ENLACES DEL FOOTER
========================================= */

.footer-links {
    margin: 12px 0 18px;
}

.footer-links a {
    color: #b8c1d1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}
/* Espacio entre las calculadoras */
.calculator-box {
    margin-bottom: 40px;
}
/* LOGO EN CELULAR */
@media (max-width: 600px) {

    .logo img {
        width: 105px;
        height: auto;
    }

}
/* ENLACE DE TARJETA CON ESTILO DE BOTÓN */
.card-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 13px 16px;

    background: #1769e0;
    color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.card-link:hover {
    background: #0f56bd;
    transform: translateY(-1px);
}
/* =========================================
   BOTÓN NUEVO CÁLCULO
========================================= */

.clear-button {
    display: block;
    width: 100%;

    margin-top: 12px;
    padding: 14px 16px;

    background: #1769e0 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.clear-button:hover {
    background: #0f56bd !important;
    color: #ffffff !important;

    transform: translateY(-1px);
}