/* -------------------------------------------
   GLOBAL – Fuente estilo Apple
------------------------------------------- */
body {
    margin: 0;
    padding: 90px 0 0 0;   /* Espacio para la barra superior */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
    background: #ffffff;
    color: #1c1c1e;
}

/* -------------------------------------------
   NAVBAR – Estilo Apple
------------------------------------------- */
.navbar {
    width: 100%;
    height: 70px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid #efefef;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

/* -------------------------------------------
   HERO
------------------------------------------- */
.hero {
    text-align: center;
    padding: 120px 20px;
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: 68px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #026E81, #00ABBD, #0099DD, #FF9933, #A1C7E0, #026E81);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: color-wave 6s ease-in-out infinite alternate;
}

.hero p {
    font-size: 22px;
    color: #3a3a3c;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: 0.2s;
}

.cta-btn:hover {
    background: #333;
}

/* -------------------------------------------
   SERVICIOS – Layout en pares
------------------------------------------- */
.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 24px 16px 32px;
    box-sizing: border-box;
}

.service-card {
    min-height: 86vh;
    padding: 64px 56px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    background-color: #f8f8fa;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    background-size: 240% 240%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: card-wave 14s ease-in-out infinite alternate;
    color: inherit;
    text-decoration: none; /* Quita la línea azul de los enlaces */
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.12);
}

.service-card h2 {
    font-size: 46px;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    background: linear-gradient(120deg, rgba(2,110,129,0.7), rgba(0,171,189,0.6), rgba(0,153,221,0.7), rgba(255,153,51,0.7), rgba(161,199,224,0.7));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-wave 9s ease-in-out infinite alternate;
}

.service-card p {
    font-size: 21px;
    max-width: 620px;
    line-height: 1.5;
    color: #4b4c50;
}

/* Paletas limpias por bloque usando la misma gama, más intensas pero suaves */
.service-card.solutions { background-image: linear-gradient(145deg, rgba(2,110,129,0.16), rgba(161,199,224,0.28)); }
.service-card.consulting { background-image: linear-gradient(145deg, rgba(0,171,189,0.16), rgba(255,153,51,0.22)); }
.service-card.ai { background-image: linear-gradient(145deg, rgba(0,153,221,0.18), rgba(161,199,224,0.24)); }
.service-card.engineering { background-image: linear-gradient(145deg, rgba(2,110,129,0.12), rgba(0,171,189,0.16), rgba(255,153,51,0.18)); }

/* -------------------------------------------
   ABOUT
------------------------------------------- */
.about {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 80px 20px;
}

.about h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.about p {
    font-size: 20px;
    color: #5a5a5c;
    line-height: 1.5;
}

/* -------------------------------------------
   CONTACTO
------------------------------------------- */
.contact {
    text-align: center;
    padding: 100px 20px;
    background: #f5f5f7;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact p {
    font-size: 20px;
    color: #3a3a3c;
    margin-bottom: 30px;
}

/* -------------------------------------------
   FOOTER
------------------------------------------- */
footer {
    text-align: center;
    padding: 40px;
    color: #8e8e93;
    font-size: 14px;
}

.text-logo {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
    background: linear-gradient(120deg, #026E81, #00ABBD, #0099DD, #FF9933, #A1C7E0, #026E81);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shift 10s ease-in-out infinite alternate;
}

/* -------------------------------------------
   RESPONSIVE
------------------------------------------- */
@media (max-width: 960px) {
    .services {
        grid-template-columns: 1fr;
        padding: 16px 14px 48px;
    }

    .service-card {
        min-height: 62vh;
        padding: 44px 28px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 20px;
    }
}

@keyframes color-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 50% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes card-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 50% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes title-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 60% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes logo-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 60% 50%; }
    100% { background-position: 100% 50%; }
}

.service-card {
    text-decoration: none;
    color: inherit;
}
