/* -------------------------
   RESET Y BASE
------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: #fff;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -------------------------
       NAVBAR (Glass)
------------------------- */


.topbar {
    height: 38px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    display: flex;
    align-items: center;

    transition: all 0.4s ease;
}

.topbar-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SOCIAL ICONS */
.topbar-socials {
    display: flex;
    gap: 14px;
}

.topbar-socials img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: 0.25s ease;
}

.topbar-socials a:hover img {
    opacity: 1;
    transform: scale(1.12);
}

/* EMAIL */
.topbar-right span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===============================
   EFECTO COMPRESIÓN HEADER
================================ */

/* Cuando se oculta */
.topbar.hide {
    height: 0;
    opacity: 0;
    overflow: hidden;
    border-bottom: none;
    transform: translateY(-100%);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(20, 40, 100, 0.5);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    height: 80px;
    transition: all 0.35s ease;
}

/* Dropdown contenedor */
.dropdown {
    position: relative;
}

/* Menú oculto por defecto */
.dropdown-menu {
    position: absolute;
    color: black;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

nav .dropdown-menu a {
    color: #0f0f0f;
} 

/* Links internos */
.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: black;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover interno */
.dropdown-menu a:hover {
    background: #d7d7d7;
    padding-left: 24px;
}

/* Mostrar menú al hacer hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header.compact nav {
    height: 65px;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 26px;
}

.nav-links a {
    color: white;
    opacity: 0.85;
    font-size: 15px;
    transition: 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.cta-nav {
    background: #ff8528;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    transition: 0.2s;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* -------------------------
       HERO SECTION
------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(100px, 10vw, 120px) 20px 60px;
    overflow: hidden;
    color: white;
}

/* VIDEO FONDO */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* OVERLAY OSCURO INDUSTRIAL */
.hero-overlay {
    position: absolute;
    inset: 0;
     background: linear-gradient(
        rgba(60, 21, 149, 0.82),
        rgba(33, 10, 87, 0.92)
    );
    z-index: 1;
}

/* CONTENIDO ENCIMA */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 7vw, 68px);
    line-height: 1.1;
    margin-bottom: 20px;
    width: 100%;
}


.hero p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
    margin-bottom: 40px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: 0.25s;
    border: none;
    cursor: pointer;
}

/* =========================
   HERO BUTTONS (FIX)
========================= */

.btn {
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: 0.25s ease;
    border: none;
    cursor: pointer;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
    color: white;
}

.btn-destac {
    background: linear-gradient(
        270deg,
        rgba(255, 233, 170, 0.8),
        rgba(255, 197, 24, 0.6),
        rgba(181, 45, 200, 0.8),
        rgba(60, 21, 149, 0.8),
        rgba(33, 10, 87, 0.9)
    );
    border: 1px solid #747474ff;
    color: white;
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
}

.btn-destac:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #00000040;
}

.btn-destac2 {
    background: linear-gradient(
        90deg, 
        rgba(181, 45, 200, 0.8),
        rgba(60, 21, 149, 0.8),
        rgba(33, 10, 87, 0.9)
    );
    border: 1px solid #747474ff;
    color: white;
    background-size: 300% 300%;
    animation: gradientShift 7s ease infinite;
    padding: 9px 15px;
}

.btn-destac2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #00000040;
}

.btn-primary:hover {
    background: #210a57;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* BOTÓN SECUNDARIO */
.btn-secondary {
    background: white;
    color: #210a57;
    border: 1px solid rgba(10, 43, 112, 0.25);
}

.btn-secondary:hover {
    background: #210a57;
    color: white; /* texto blanco */
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* BOTÓN TERCIARIO */
.btn-tres {
    background: #ff8528;
    color: white;
    border: 1px solid rgba(10, 43, 112, 0.25);
}

/* Hover: azul marino + texto blanco */
.btn-tres:hover {
    background: #210a57; /* azul marino oscuro */
    color: white; /* texto blanco */
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    filter: brightness(1.05);
}

/* Scroll cue */
.scroll {
    margin-top: 55px;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.75;
}

.about-left strong {
    font-weight: 600;
}

.arrow {
    margin-top: 10px;
    font-size: 22px;
    animation: bounce 1.4s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ========================= */
/* IMPACTO SECTION */
/* ========================= */

.impact-section {
    padding: 10px 13%;
    background: #ffffff;
}

.impact-header {
    text-align: center;
    margin-bottom: 70px;
}

.impact-tag {
    display: inline-block;
    background: #6817c5;
    color: white;
    font-size: 0.75rem;
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.impact-header h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.impact-header p {
    font-size: 1.2rem;
    color: #444;
}

/* GRID */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* CARDS */

.impact-card {
    border: 1px solid #eee;
    padding: 50px 35px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0 0 18px 18px;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Color bar */

.impact-card::before {
    content: "";
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.impact-card.blue::before {
    background: #6817c5;
}

.impact-card.pink::before {
    background: #b52dc8;
}

.impact-card.orange::before {
    background: #ff8528;
}

/* Numbers */

.impact-card h3 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.impact-card.blue h3 {
    color: #6817c5;
}

.impact-card.pink h3 {
    color: #b52dc8;
}

.impact-card.orange h3 {
    color: #ff8528;
}

.impact-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 1rem;
    color: #555;
}

/* MISIÓN VISIÓN */

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: stretch;
    flex-grow: 1;
}

.mv-block h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.mv-block p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-header h2 {
        font-size: 3rem;
    }
}

@media (max-width: 700px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* DIFERENCIAL SECTION */

.mv-diff {
    margin-top: 60px;
    text-align: center;
}

.mv-diff h3 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.mv-sub {
    font-size: 1rem;
    color: #444;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* ITEM */

/* ITEM (Contenedor de cada diferencial) */
.diff-item {
    border: 1px solid #eee;
    padding: 22px;
    border-radius: 18px;
    text-align: left;
    align-content: center;
    /* FLEXBOX: Esto alinea el ícono y el texto */
    display: flex;
    gap: 18px; /* Espacio entre el cuadro del ícono y el texto */
    transition: 0.3s ease;
    min-height: 90px; /* Asegura que todas tengan un tamaño similar */
}

/* CONTENEDOR DEL ICONO (El cuadro redondeado) */
.diff-item .service-icon {
    flex-shrink: 0; /* Evita que el cuadro se deforme si el texto es largo */
    width: 55px;
    height: 55px;
}

.diff-item .service-icon img {
    width: 26px;
    height: 26px;
    display: block;
}

/* TEXTO */
.diff-item span {
    align-content: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3; /* Reduce un poco el interlineado para que el bloque de texto se vea centrado */
    margin: 0; /* Elimina márgenes extra que puedan mover el texto */
}

/* AJUSTE PARA EL GRID (Opcional) */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Aumenté el mínimo para que el texto no se apriete */
    gap: 22px;
}

/* Hover */

.diff-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Colores */

.diff-item.blue {
    color: #6817c5;
}

.diff-item.blue span {
    color: black;
}

.diff-item.orange {
    color: #ff8528;
}

.diff-item.orange span {
    color: black;
}

.diff-item.pink {
    color: #b52dc8;
}

.diff-item.pink span {
    color: black;
}

/* Hover icon igual que servicios */

.diff-item:hover .service-icon-diff {
    background: currentColor;
    border-color: transparent;
}

.diff-item:hover .service-icon-diff img {
    filter: brightness(0) invert(1);
}

.diff-item:hover .service-icon {
    background: currentColor;
    border-color: transparent;
}

.diff-item:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* Texto */

.diff-item span {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* -------------------------
       SERVICES SECTION
------------------------- */
.services {
    padding: 75px 13%;
    text-align: center;
}

.services-header {
    max-width: 900px;
    margin: 0 auto 70px;
}

.section-tag {
    display: inline-block;
    background: #6817c5;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
   padding: 8px 16px;
    margin-bottom: 28px;
}

.services-header h2 {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 25px;
    color: black;
    line-height: 1.05;
}

.section-tag2 {
    background: #210a57;
    padding: 5px 21px;
    margin-bottom: 28px;
}

.services-header p {
    font-size: 22px;
    line-height: 1.6;
    color: #444;
    max-width: 750px;
    margin: 0 auto;
}

/* ===============================
   SERVICES SECTION (FIX PRO)
================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

/* ===============================
   SERVICE CARD (VERSIÓN CORRECTA)
================================ */

.service-card {
    position: relative;
    grid-column: span 6;
    background: white;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    align-items: flex-start;
    border-radius: 0 0 18px 18px;
    cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.service-media {
    width: calc(100% + 70px); /* padding x2 */
    height: 250px;

    margin: -35px -35px 25px -35px;
    /* sube y expande hacia los lados */
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-card:hover .service-photo img {
    transform: translateY(-6px);
    
}

/* ICONO BONITO (como sticker) */
.service-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    align-content: center;
    border: 2px solid currentColor;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;
    transition: 0.3s ease;
}

.service-icon-diff {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    align-content: center;
    border: 2px solid currentColor;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.service-icon img {
    width: 28px;
    height: 28px;
}

/* TEXTO PERFECTO */
.service-card h3 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
}

.service-card span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 18px;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    text-align: left;
}

/* HOVER PRO */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-media img {
    transform: scale(1.06);
}

.service-card:hover .service-icon {
    background: currentColor;
    border-color: transparent;
}

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* COLORES */
.service-card.blue {
    color: #6817c5;
}

.service-card.pink {
    color: #b52dc8;
}

.service-card.orange {
    color: #ff8528;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-column: span 1;
    }
}

.about {
    padding: 100px 8.5%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-left {
    flex: 1;
    max-width: 600px;
}

.about-left h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #111;
    overflow-wrap: break-word;
}

/* Saltos de línea controlados y jerarquía */
.about-left p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
}

.about-left p b {
    font-weight: 700;
    color: #111;
}

/* Fade-in secuencial para párrafos */
.fade-in {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideIn 0.6s forwards;
}

.about-left p:nth-of-type(1) {
    animation-delay: 0.2s;
}
.about-left p:nth-of-type(2) {
    animation-delay: 0.4s;
}
.about-left p:nth-of-type(3) {
    animation-delay: 0.6s;
}
.about-left p:nth-of-type(4) {
    animation-delay: 0.8s;
}
.about-left button {
    animation-delay: 1s;
}

/* Tarjetas a la derecha */
.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    border-left: 3px solid #eee;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: transparent;
    text-align: left;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    animation: slideIn 0.6s forwards;
}

.feature-item:nth-of-type(1) {
    animation-delay: 0.3s;
}
.feature-item:nth-of-type(2) {
    animation-delay: 0.5s;
}
.feature-item:nth-of-type(3) {
    animation-delay: 0.7s;
}

.feature-item:hover {
    background: #f8f9fa;
    border-left: 3px solid #210a57;
    padding-left: 40px;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    background: #210a57;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* -------------------------
      TITULOS RESPONSIVE
------------------------- */
h1,
h2,
h3,
.quienes-somos-card h2,
.quienes-somos-card h3 {
    font-size: clamp(24px, 8vw, 40px);
    line-height: 1.2;
    max-width: 100%;
}

/* -------------------------
      MEDIA QUERIES
------------------------- */
@media (max-width: 1100px) {
    .about {
        flex-direction: column;
        gap: 50px;
        padding: 80px 40px;
        text-align: left;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px !important;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }
    .service-card:nth-child(6) {
        grid-column: span 2;
    }
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(10, 40, 120, 0.82), rgba(5, 20, 60, 0.92)), url("images/hero-fallback.jpg");
        background-size: cover;
        background-position: center;
    }

    .topbar {
        display: none;
    }

    .feature-item {
        gap: 15px;
        padding: 15px 20px;
    }

    .feature-icon-box {
        width: 35px;
        height: 35px;
    }

    .feature-text h4 {
        font-size: 18px;
    }

    .feature-text p {
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5),
    .service-card:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 10px 15px;
    }
    .hero {
        padding-top: clamp(100px, 10vw, 120px);
    }
    .hero h1 {
        font-size: 32px !important;
        line-height: 1.2;
    }
    .hero p {
        font-size: 16px !important;
        margin-bottom: 30px;
    }
    .hero-buttons {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .btn-conversemos {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* ===============================
   PROYECTOS DESTACADOS
================================ */

.projects {
    padding: 75px 13%;
   background: #0c0f14;
}

.projects-header {
    max-width: 620px;
    margin-bottom: 64px;
}

.projects-header h2 {
    font-size: 55px;
    font-weight: 900;
    margin-bottom: 25px;
    color: white;
    line-height: 1.05;
}

.projects-header p {
    font-size: 16px;
    color: #ced7e4;
    line-height: 1.6;
}

/* GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* CARD */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 10 / 3;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

/* OVERLAY */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    transition: opacity 0.2s ease;
}

/* Pillars */

.pillars-section {
    margin-top: 90px;
    text-align: center;
}

.pillars-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.pillar {
    border: 1px solid #eee;
    padding: 35px;
    background: white;
    transition: 0.3s ease;
    border-radius: 18px;
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.pillar h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pillar p {
    color: #555;
    line-height: 1.6;
}

/* Mission Vision Icons */

.mv-icon img {
    width: 45px;
    margin-bottom: 15px;
    opacity: 0.85;
}

/* Responsive pillars */

@media (max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

/* Fade in animation */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* HOVER */
.project-card:hover img {
    transform: scale(1.08);
}

/* CTA */
.projects-cta {
    margin-top: 64px;
}

.projects-cta .btn {
    padding: 14px 28px;
}

.logo:hover {
    filter: drop-shadow(0 0 10px #548cda); /* Crea un aura de color */
    transform: scale(1.03); /* Crece un 3% */
}

.logo {
    transition: transform 0.5s ease; /* Hace que el movimiento sea suave */
}

/* =======================
   METODOLOGÍA
======================= */

.methodology {
    background: #0c0f14;
    color: #fff;
    padding: 90px 13%;
    position: relative;
    overflow: hidden;
}

/* grid sutil de fondo */

.methodology::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.methodology .container {
    max-width: 1300px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.methodology h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.methodology .subtitle {
    color: #ced7e4;
    max-width: 600px;
    margin: 0 auto 80px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Línea conectora */
.steps::before {
    content: "";
    position: absolute;
    top: 75px;
    left: 8%;
    right: 8%;
    height: 2px;
     background: linear-gradient(135deg, 
        rgba(255, 233, 170, 0.3),
        rgba(181, 45, 200, 0.5));
}

/* STEP */

.step {
    background: rgba(255, 255, 255, 0);
    padding: 50px 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    text-align: left;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
    z-index: 2; /* esto es importante */
}

/* ACTIVADO */
.step.active {
    opacity: 1;
    transform: translateY(0);
}

.steps::before {
    z-index: 1;
}

/* Hover con degradado */
.step:hover {
    background:
        linear-gradient(#0c0f14, #0c0f14) padding-box,
     linear-gradient(
        90deg, 
        rgba(255, 233, 170, 0.8),
        rgba(255, 197, 24, 0.6),
        rgba(181, 45, 200, 0.8),
        rgba(60, 21, 149, 0.8),
        rgba(33, 10, 87, 0.9)) border-box;
    background-size: 300% 300%;
    border: 1px solid transparent;
    animation: gradientShift 3s ease infinite;
}

/* Número */
.step .number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0;
    transition: 0.7s ease;
}

.step:hover .number {
    color: #d7d7d7;
    opacity: 0.9;
    transition: 0.3s ease;
}

/* Icon */
.icon-box {
    width: 48px;
    height: 48px; background: linear-gradient(135deg, 
        rgba(255, 233, 170),
        rgba(181, 45, 200, 0.8),
        rgba(33, 10, 87));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.icon-box img {
  filter: brightness(0) invert(1);
}

/* Rombo */
.diamond {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 233, 170, 0.8),
        rgba(181, 45, 200, 0.8));
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step p {
     color: #ced7e4;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.step ul {
    padding-left: 18px;
}

.step ul li {
    margin-bottom: 6px;
    font-size: 0.9rem; 
    color: #ced7e4;
}

/* ===============================
   BASE
=================================*/

.cta-section {
    position: relative;
    background: #0a0a0a;
    padding: 140px 20px;
    overflow: hidden;
}

/* GRID SUTIL PROFESIONAL */
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* ===============================
   CONTENIDO
=================================*/

.cta-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

/* Línea superior con gradiente animado */
.cta-accent-line {
    width: 120px;
    height: 4px;
    margin: 0 auto 40px auto;
    background: linear-gradient(270deg, #ffe9aa, #ffc518, #b52dc8, #3c1595, #210a57);
    border-radius: 2px;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

/* ===============================
   TIPOGRAFÍA
=================================*/

.cta-title {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 800;
    color: #f3f4f6;
    line-height: 1.1;
    margin-bottom: 30px;
}

.cta-subtitle {
    font-size: 20px;
    color: #9ca3af;
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

/* Gradient real en texto */
.gradient-text {
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gradient-blue {
    color: #ffe9aa;
}

.gradient-pink {
    color: #ff8528;
}

.gradient-orange {
    color: #b52dc8;
}

/* ===============================
   BOTONES
=================================*/

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* PRIMARIO - corporativo serio */
.btn-primary {
    padding: 18px 42px;
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.35s ease;
    background: #b52dc8;
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    background: rgba(181, 45, 200, 0.6);
    transform: translateY(-3px);
}

/* SECUNDARIO premium minimal */
.btn-secondary {
    padding: 18px 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.35s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ===============================
   ANIMACIONES
=================================*/

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

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width: 768px) {
    .cta-section {
        padding: 100px 20px;
    }

    .cta-title {
        font-size: 40px;
    }

    .cta-subtitle {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 20px;
    }
}



/* Responsive */

@media (max-width: 1100px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .steps::before {
        display: none;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-header h2 {
        font-size: 32px;
    }

    .methodology h2 {
        font-size: 32px;
    }

    .services-header h2 {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

/*PÁGINA EN CONSTRUCCIÓN */
.construction{
    background:black;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.construction-title{
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight:700;
    color:white;

    position:relative; /* importante */

    opacity:0;
    transform: translateY(10px);
    animation: textFade 1s ease forwards;
}

/* línea */
.construction-title::after{
    content:"";
    display:block;      /* cambia esto */
    margin:12px auto 0; /* centra la línea */
    height:2px;
    width:0;
    background:#b52dc8;
    animation: lineGrow 1s ease forwards;
    animation-delay:.6s;
}

@keyframes textFade{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes lineGrow{
    to{
        width:260px;
    }
}
