/* =========================================================
   VARIABLES / DESIGN TOKENS
   ========================================================= */

   @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Colores principales */
    --bg: #f6f8fc;
    --white: #fff;
    --text: #142033;
    --muted: #333334;
    --line: #e6eaf0;

    /* Colores de marca */
    --blue: #2c79bd;
    --dark: #0f1728;

    /* Layout */
    --max: 1180px;
}


/* =========================================================
   RESET / CONFIGURACIÓN GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

.cta-prim{
    padding: 8px 24px;
    font-size: 18px;
    background: #25D366;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0px 1px 7px 0px #333333b0;
    transition: 0.3s;
}

.cta-prim:hover {
       background: #075E54;
    color: #fff;
}


.t-a-l{
    text-align: left;
}

.t-a-r{
    text-align: right;
}

.t-a-c{
    text-align: center;
}

.w-100{
    width: 100%!important;
}

.txt-white{
    color: white!important;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.container {
    width: min(var(--max), calc(100% - 40px));
   margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.container span{
    color: #142033;
}


/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */

header {
        position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #9db3ff;
    box-shadow: 0px 0px 8px -3px #333333;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 5%;
    width: 90%;
    padding: 8px 0;
}


/* =========================================================
   LOGOTIPO / BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-weight: 900;
}


/* Marca / icono del logo */
.mark {
    width: 44px;
    height: 44px;

    border-radius: 13px;

    display: grid;
    place-items: center;

    background: linear-gradient(
        135deg,
        #2c79bd,
        #7394ff
    );

    color: #fff;
    font-size: 13px;
}


/* Texto secundario del logo */
.brand small {
    display: block;

    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
}


/* Hover de los enlaces */
nav a:hover {
    color: var(--blue);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 100px 0 88px;
    color: #fff;
    background-image: url(../imgs/banner-1.2.png);
    background-repeat: no-repeat;
    background-size: cover;
}


/* Distribución del Hero */
.hero-grid {
    display: grid;

    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;

    align-items: center;
}


/* =========================================================
   TEXTOS / TÍTULOS
   ========================================================= */

.eyebrow,
.kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* Texto superior del Hero */
.eyebrow {
    color: #ffffff8f;
}


/* Texto superior de las secciones */
.kicker {
    color: var(--blue);
    margin-bottom: 10px;
}


/* Título principal */
h1 {
    font-size: clamp(46px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.05em;

    margin: 14px 0;
}


/* Títulos secundarios */
h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    margin: 0 0 14px;
}


/* Títulos de tercer nivel */
h3 {
    margin: 0 0 9px 0;
    color: #333334;
    font-size: 20px;
}


/* =========================================================
   TEXTO DEL HERO
   ========================================================= */

.hero p {
    font-size: 19px;
    color: #d4d9e3;

    max-width: 760px;
}


/* =========================================================
   TAGS / ETIQUETAS
   ========================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
}

.tag {
    padding: 7px 11px;
    border: 1px solid #2c79bd;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #2c79bd;
}


/* =========================================================
   BOTONES / CTAs
   ========================================================= */

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 400;
    outline: none;
    border: none;
    transition: 0.3s;
}


/* Botón principal */
.primary {
    border: 2px solid #2c79bd;
    background: #2c79bd;
    color: #fff;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0px 1px 7px 0px #333333b0;
}

.primary:hover{
    background: #fff;
    color: #2c79bd;
}


/* Botón secundario */
.secondary {
    border: 2px solid #ffffff;
    background: #142033ad;
    color: #fff;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0px 1px 7px 0px #333333b0;
}

.secondary:hover{
    color: #2c79bd;
    background-color: #fff;
    transition: 0.3s;
    border: 2px solid #2c79bd;
}


/* Botón azul utilizado en CTA */
.bluebtn {
    background: var(--blue);
    color: #fff;
}


/* =========================================================
   HERO CARD
   ========================================================= */

.hero-card {
   padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: #142033c2;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}


/* Elementos internos de la tarjeta */
.hero-item {
    padding: 14px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #dce1ea;
}


/* El último elemento no lleva borde */
.hero-item:last-child {
    border: 0;
}


/* Título dentro del elemento */
.hero-item strong {
    display: block;
    color: #fff;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

section {
    padding: 86px 0;

    /* Compensación para el header sticky */
    scroll-margin-top: 90px;
}


/* Encabezado de sección */
.head {
    margin-bottom: 38px;
    width: 50%;
}

.head-img {
    margin-bottom: 38px;
    width: 50%;
}

.head-img img{
    width: 90%;
    border-radius: 8px;
}


/* Texto introductorio */
.lead {
    font-size: 18px;
    color: var(--muted);

    margin: 0;
}


/* =========================================================
   GRID DE 4 COLUMNAS
   ========================================================= */

.grid4 {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* =========================================================
   CARD GENERAL
   ========================================================= */

.card {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 20px;

    padding: 25px;

    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.045);
    background-size: cover;

}

/* icon*/
.card img{
    width: 100px;
}


/* Texto de las cards */
.card p {
    color: var(--muted);
    margin: 0;
}


/* Número / indicador */
.num {
    font-size: 32px;
    color: #2c79bd;
    font-weight: bold;
    margin-bottom: 14px;
}


/* =========================================================
   SECCIÓN PRODUCTOS / SERVICIOS
   ========================================================= */

.products {
    background: linear-gradient(
        135deg,
        #101828,
        #17233b
    );

    color: #fff;
}


/* Kicker dentro de productos */
.products .kicker {
    color: #9db3ff;
}


/* Texto introductorio */
.products .lead {
    color: #cbd5e1;
}


/* Grid de productos */
.product-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product {
    display: flex;
    flex-direction: column;

    min-height: 440px;
    padding: 28px;

    border-radius: 24px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.06);
}


/* Categoría del producto */
.category {
    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #9db3ff;
}


/* Nombre del producto */
.product h3 {
    font-size: 28px;
    margin: 9px 0 12px;
}

.product h3 img {
    width: 200px;
}


/* Descripción */
.product p {
    color: #d4d9e3;

    margin: 0 0 16px;
}


/* Texto destacado */
.product .claim {
    font-size: 16px;
    font-weight: 800;

    color: #fff;

    margin-top: 4px;
}


/* Enlace del producto */
.product a {
    color: #b9c7ff;

    font-weight: 900;

    margin-top: auto;
}


/* Información adicional */
.relation {
    margin-top: 18px;
    padding: 13px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 12px;
    color: #e6eaf2;
}


/* =========================================================
   SECCIÓN NOSOTROS
   ========================================================= */

.about {
    display: grid;

    grid-template-columns: 1.08fr 0.92fr;
    gap: 26px;
}


/* =========================================================
   DATOS / FACTS
   ========================================================= */

.facts {
    display: grid;

    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


/* Tarjeta individual */
.fact {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 18px;

    padding: 20px;
}

.fact i{
        font-size: 32px;
    color: #2c79bd;
}


/* Título del dato */
.fact strong {
    display: block;

    margin-bottom: 4px;
}


/* =========================================================
   METODOLOGÍA / PASOS
   ========================================================= */

.method {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* Número o título del paso */
.method .card strong {
    display: block;

    font-size: 12px;
    color: var(--blue);

    margin-bottom: 8px;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.cta {
    background: #edf3ff;
}


/* Contenedor del CTA */
.cta-box {
    padding: 44px;

    border-radius: 26px;

    background: #fff;

    border: 1px solid #dce5f5;

    display: grid;

    grid-template-columns: 1fr auto;
    gap: 30px;

    align-items: center;
}


/* Texto secundario del CTA */
.cta-box p {
    color: var(--muted);
}


/* Contenedor del formulario */

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    padding: 32px;
    background: #17233b47;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}


/* Grupo del formulario */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


/* Etiquetas */

.form-group label {
    font-size: 13px;

    font-weight: 800;

    color: var(--text);
}


/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: #fff;

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Textarea */

.form-group textarea {

    resize: vertical;

    min-height: 130px;
}


/* Placeholder */

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #98a2b3;
}


/* Estado Focus */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(33, 93, 255, 0.10);
}


/* Elementos que ocupan todo el ancho */

.full {
    grid-column: 1 / -1;
}


/* Checkbox */

.form-check {

    display: flex;

    align-items: center;

    gap: 8px;
}


.form-check input {

    width: 16px;

    height: 16px;

    accent-color: var(--blue);
}


.form-check label {

    font-size: 12px;

    color: var(--muted);
}


/* Acciones */

.form-actions {

    display: flex;

    justify-content: flex-start;

    margin-top: 5px;
}


/* =====================================================
   RESPONSIVE
====================================================== */

@media (max-width: 650px) {

    .contact-form {

        grid-template-columns: 1fr;

        padding: 22px;
    }

    .full {

        grid-column: auto;
    }

    .form-actions {

        width: 100%;
    }

    .form-actions .btn {

        width: 100%;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 42px 0;

    background: #333334;

    color: #cbd5e1;
}


/* Distribución principal del footer */
.footer-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}


/* Links del footer */
.footer-links {
    display: flex;

    justify-content: flex-end;
    gap: 18px;

    flex-wrap: wrap;
}


/* Copyright */
.copy {
    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);

    font-size: 12px;
    color: #7f8a9c;
}


/* =========================================================
   RESPONSIVE
   TABLET / PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 980px) {

    /* Ocultar menú principal */
    nav ul {
        display: none;
    }

    /* Convertir layouts de dos columnas en una */
    .hero-grid,
    .about,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Cards en dos columnas */
    .grid4 {
        grid-template-columns: 1fr 1fr;
    }

    /* Productos en una columna */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Footer alineado a la izquierda */
    .footer-links {
        justify-content: flex-start;
    }
}


/* =========================================================
   RESPONSIVE
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    /* Reducir ancho lateral */
    .container {
        width: min(
            var(--max),
            calc(100% - 28px)
        );
                text-align: center;
    }

    .head {
        margin-bottom: 38px;
        width: 100%;
    }

    .head-img {
        margin-bottom: 38px;
        width: 100%;
    }

    .head-img img {
        width: 100%;
        border-radius: 8px;
    }

    .card {
        text-align: center;
    }

    .tags {
        justify-content: center;
    }

    .actions {
        justify-content: center;
    }

    .cta-box {
        padding: 16px;
    }



    /* Reducir espacios verticales */
    .hero {
        padding: 65px 0;
    }

    section {
        padding: 65px 0;
    }

    .footer-links {
        justify-content: center;
    }

    /* Convertir grids a una sola columna */
    .grid4,
    .facts,
    .method,
    .cta-box {
        grid-template-columns: 1fr;
    }
}