/*  Estilos Generales  */
:root {
    --primary-color: #002147;
    --accent-color: #0066cc;
    --text-color: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1000;
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    .logo{
        background-image: url("Assets/Logo.svg");
    }
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    width: 20%;
    height: 50px;
    background-image: url("Assets/Logo.png");
    background-repeat: no-repeat ;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #004c99;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 150px;
    height: 85vh;
    position: relative;
    overflow: hidden;
    background: url("Assets/hero-bg.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.label-sub {
    font-size: 30px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 16px;
    text-align: center;
    transition: opacity 0.25s ease-out;
}

.glow-text {
  position: relative;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ffffff;
  filter: brightness(1.1);
  z-index: 1;
}
.glow-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00cfff, #a600ff, #00a6ff, #ff8800);
  filter: blur(20px) brightness(0.8);
  opacity: 0.7;
  border-radius: 100px;
  z-index: -1;
  pointer-events: none;
  background-size: 200% 200%;
  animation: gradientShift 12s ease-in-out infinite;
}
.glow-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  background: linear-gradient(90deg, #00cfff, #a600ff, #00a6ff, #ff8800);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: color-burn;
  filter: blur(3px) brightness(1.3);
  z-index: 0;
  pointer-events: none;
  background-size: 200% 200%;
  animation: gradientShift 12s ease-in-out infinite;
}
.text-sub{
    font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 74px;
}
.hero p {
    font-size: 18px;    
    color: white;
    padding: 0 0 20px 0;
    width: 50%;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@-webkit-keyframes fade-in{0%{opacity:0}100%{opacity:1}}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}
/* Shape flotantes */
.floating-shape {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: scale-in 0.8s ease-in-out forwards, float 6s ease-in-out infinite;
  animation-delay: 0s, var(--float-delay); /* primero scale-in, luego float */  
}

@keyframes scale-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); } /* antes -10px */
}

.shape1 {
    top: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #053C78;
    box-shadow: 8px 40px 80px -16px rgba(0, 0, 0, 0.50);
    z-index: 1;
    --float-delay: 1s;
}
.shape2 {
    top: 28%;
    left: 23%;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(143deg, #002248 24.89%, #08468C 89.16%);
    box-shadow: 8px 40px 80px -16px rgba(0, 0, 0, 0.50);
    --float-delay: 1s;
}
.shape3 {
    top: 50%;
    left: 10%;
    width: 130px;
    height: 130px;
    background-color: var(--white);
    box-shadow: 12px 32px 80px -20px rgba(0, 0, 0, 0.12);
    --float-delay: 2s;
}
.shape4 {
    bottom: 10%;
    left: 20%;
    width: 155px;
    height: 155px;
   background: linear-gradient(59deg, #E0E0E0 11.71%, #7A7A7A 90.51%);
    box-shadow: 12px 32px 80px -20px rgba(0, 0, 0, 0.12);
    --float-delay: 2s;
}
.shape5 {
    top: 40%;
    right: 10%;
    width: 85px;
    height: 85px;
    background-color: var(--white);
    box-shadow: 12px 32px 80px -20px rgba(0, 0, 0, 0.12);
    --float-delay: 1s;
}
.shape6 {
    top: 25%;
    right: 20%;
    width: 85px;
    height: 85px;
    background-color: var(--white);
    box-shadow: 12px 32px 80px -20px rgba(0, 0, 0, 0.12);
    --float-delay: 2s;
}
.shape7 {
    top: 45%;
    right: 23%;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(59deg, #E0E0E0 11.71%, #7A7A7A 90.51%);
    box-shadow: 8px 40px 80px -16px rgba(0, 0, 0, 0.50);
    --float-delay: 3s;
}
.shape8 {
    bottom: 5%;
    right: 23%;
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #053C78;
    box-shadow: 8px 40px 80px -16px rgba(0, 0, 0, 0.50);
    --float-delay: 5s;
}

/* empresas que confían en nosotros */
.trusted-companies {
    background-color: var(--primary-color);
    padding: 4rem 0;
    color: var(--white);
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.trusted-companies h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}
.companies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.company-placeholder {
    background-color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    padding: 20px;
    line-height: 20px;
    font-weight: 500;
}

.swiper {
    width: 100%;
    padding: 40px 0;
}
.swiper-slide {
    height: auto !important;
}
.swiper-slide img {
    width: 12px;
    height: 12px;
}

/* Solutions Section */
.solutions {
    padding: 5rem 0;
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.solutions h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}
    .game-section {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2rem;
      background: white;
    }
    .custom-carousel {
      display: flex;
      gap: 1.5rem;
      width: 100%;
      max-width: 1200px;
    }
    .item {
      flex: 1.5;
      height: 400px;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      border-radius: 20px;
      position: relative;
      transition: flex 0.5s ease;
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .item.active {
      flex: 3;
    }
    .item-desc {
      position: absolute;
      bottom: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
      color: white;
      width: 100%;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      transition: all 0.4s ease;
    }

    /* Título siempre visible */
    .item-desc h3 {
      font-size: 1.4rem;
      margin: 0;
    }
    .item-desc p {
      color: white;
      font-size: 14px;
      padding-bottom: 30px;
    }
    
    /* Ocultos por defecto */
    .item-desc p,
    .item-desc .view-btn {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.4s ease, transform 0.4s ease;
      display: none;
    }
    /* Mostrar con animación */
    .item-desc.show p,
    .item-desc.show .view-btn {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    /* Botón */
    .view-btn {
      margin-top: auto;
      padding: 0.5rem 1rem;
      background: var(--accent-color);
      border: none;
      color: white;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s ease;
      width: 30%;
    }
    .view-btn:hover {
      background: var(--primary-color);
    }

    /* Estilos generales del popup */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .popup-content {
      background: white;
      padding: 50px 80px;
      border-radius: 12px;
      width: 90%;
      position: relative;
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
      animation: fadeIn 0.3s ease;
    }
    .close-btn {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 24px;
      cursor: pointer;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    h1 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 40px;
      color: #ffffff;
    }
    .cards-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: 0;
      padding: 40px 0px;
    }
    .card {
      background-color: #0f2a4d;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .img-card {
      background-size: 100% 100%;
      background-position: center;
      width: 100%;
      height: 200px;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
    }
    .img-card1 {
        background-image: url("Assets/proyect-design-1.png");
    }
    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    }

    .content-card{
        padding: 20px;
    }
    .card h2 {
      font-size: 1.4rem;
      margin-bottom: 12px;
      color: #00bfff;
    }
    .card p {
        color: white;
      font-size: 14px;
      line-height: 1.5;
    }
    .card button {
      background:  #0066cc;
      border: none;
      color: white;
      padding: 10px 16px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s ease;
    }
    .card button:hover {
      background: #05417d;
    }
    
    /* Botones de activación */
    button {
        margin: 10px;
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        background-color: #0053b0;
        color: white;
        border-radius: 8px;
        cursor: pointer;
    }

/* Development Process */
.development-process {
    padding: 5rem 0;
    background-color: var(--gray-light);
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.development-process h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.process-step {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}
.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}
.process-step p {
    color: #666;
    font-size: 0.875rem;
}

/* Contact Form */
.contact {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.contact-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #00b894;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    z-index: 9999;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    -webkit-animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1.000) both
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}
.footer-section p {
    color: #ccc;
    font-size: 0.875rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.75rem;
}
.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: var(--white);
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-link {
    color: #ccc;
    transition: color 0.3s ease;
}
.social-link:hover {
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    color: #ccc;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
     .shape3{
        left: 5%;
    }
     .shape4{
        left: 12%;
    }
     .shape5{
        right: 5%;
    }
     .shape6{
        right: 15%;
    }
     .shape7{
        right: 15%;
    }
     .shape8{
        right: 10%;
    }

    .text-sub { margin-bottom: 0px;}
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 999px) {
    .shape1{
        left: 10%;
    }
     .shape2{
        left: 15%;
    }
     .shape3{
        left: -10%;
    }
     .shape4{
        left: 0%;
    }
     .shape5{
        right: 1%;
        z-index: 1;
    }
     .shape6{
        right: 5%;
    }
     .shape7{
        right: 5%;
    }

     .shape8{
        width: 120px;
        height: 120px;
        right: 2%;
    }

    .custom-carousel{
        display: flex;
        gap: 1.5rem;
        height: 800px;
        width: 100%;
        max-width: 1200px;
        flex-direction: column;
    }

    .log {
        width: 50%;
    }

    
}

@media (max-width: 768px) {

     .shape1{
        left: 4%;
    }
     .shape2{
        left: 15%;
    }
     .shape3{
        left: -10%;
        width: 100px;
        height: 100px;
    }
     .shape4{
        left: 0%;
        bottom: 2%;
        width: 120px;
        height: 120px;
        opacity: 0.5;
    }
     .shape5{
        right: 0%;
        z-index: 1;
        width: 80px;
        height: 80px;

    }
     .shape6{
        right: 0%;
        width: 60px;
        height: 60px;
    }
     .shape7{
        top: 50%;
        right: 5%;
        width: 50px;
        height: 50px;
    }

     .shape8{
        width: 80px;
        height: 80px;
        right: 2%;

    }

    .hero p {
        width: 100%;
        padding: 30px;
    }

    .logo {
        width: 50%;
    }

    .text-sub{
        margin-bottom: 0;
        line-height: auto;
    }

    .solutions-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .process-steps,
    .companies-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .solutions-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }

    .hero {
        height: auto;
    }

    .glow-text {
        font-size: 2.8rem;
    }

    .text-sub {
        line-height: normal;
    }

    .shape3{
        opacity: 0.2;
    }

    .shape5{
        opacity: 0.2 !important;
    }

    .shape7{
        opacity: 0.2;
    }

    .container h2{
        font-size: 1.5rem;
        font-weight: 500;
    }
}