:root {
    --primary-yellow: #FBC523;
    --secondary-orange: #fb5923;
    --primary-pink: #ec4899;
    --secondary-pink: #be185d;
    --dark-bg: #1a1a1a;
    --dark-secondary: #181416;
    --text-gray: #9ca3af;
    --text-light-gray: #6b7280;

    --circle-top-right-out: circle(150% at 100% 0%);
    --circle-bottom-right-in: circle(0% at 100% 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; 
}

body {
    font-family: "Space Grotesk", sans-serif;
    background-color: var(--dark-bg);
    color: white;
    position: relative;
    /* overflow-x: hidden !important; */
}


.hero-section {
    overflow: hidden;
    text-align: center;
}

.text-column,
.image-column {
    max-width: 500px;
    /* ajusta según necesidad */
}

.image-section {
    position: relative;
    width: 100%;
}

.gap-4 {
    gap: 2rem;
    /* espacio horizontal entre columnas */
}


/* Fuentes */
@font-face {
    font-family: "Bebas Neue";
    /* Elige un nombre para tu fuente */
    src: url('./fonts/BebasNeue-Regular.ttf') format('truetype');
    /* Ajusta la ruta y el nombre del archivo */
    /* Puedes añadir más formatos para mayor compatibilidad:
    src: url('../fonts/MiFuentePersonalizada.woff2') format('woff2'),
         url('../fonts/MiFuentePersonalizada.woff') format('woff');
    */
}

@font-face {
    font-family: "Space Grotesk";
    /* Elige un nombre para tu fuente */
    src: url('./fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    /* Ajusta la ruta y el nombre del archivo */
    /* Puedes añadir más formatos para mayor compatibilidad:
    src: url('../fonts/MiFuentePersonalizada.woff2') format('woff2'),
         url('../fonts/MiFuentePersonalizada.woff') format('woff');
    */
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 160px;
}

.color-amarillo {
    color: var(--primary-yellow) !important;
}

.icono-principal {
    font-family: "Space Grotesk", sans-serif;
    color: white;
}


/* Header Navigation */
.custom-navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 20px 0;

    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10500;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: white !important;
    /* animation: fadeInLeft 1s ease; */
}

/* Para evitar que el contenido quede oculto debajo del navbar */
body {
    /* padding-top: 64px;  */
}
@media (max-width: 768px) {
    body {
        padding-top: 56px; /* Ajusta si tu navbar es más pequeño en móvil */
        /* overflow-x: hidden; */
    }
}

.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    --primary-yellow: #FBC523;
    --secondary-orange: #fb5923;
    --primary-pink: #ec4899;
    --secondary-pink: #be185d;
    --dark-bg: #1a1a1a;
    --dark-secondary: #181416;
    --text-gray: #9ca3af;
    --text-light-gray: #6b7280;

    --circle-top-right-out: circle(150% at 100% 0%);
    --circle-bottom-right-in: circle(0% at 100% 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
    font-family: "Space Grotesk", sans-serif;
    background-color: var(--dark-bg);
    color: white;
    position: relative;
    /* overflow-x: hidden !important; */
}


.hero-section {
    overflow: hidden;
    text-align: center;
}

.text-column,
.image-column {
    max-width: 500px;
    /* ajusta según necesidad */
}

.image-section {
    position: relative;
    width: 100%;
}

.gap-4 {
    gap: 2rem;
    /* espacio horizontal entre columnas */
}


/* Fuentes */
@font-face {
    font-family: "Bebas Neue";
    /* Elige un nombre para tu fuente */
    src: url('./fonts/BebasNeue-Regular.ttf') format('truetype');
    /* Ajusta la ruta y el nombre del archivo */
    /* Puedes añadir más formatos para mayor compatibilidad:
    src: url('../fonts/MiFuentePersonalizada.woff2') format('woff2'),
         url('../fonts/MiFuentePersonalizada.woff') format('woff');
    */
}

@font-face {
    font-family: "Space Grotesk";
    /* Elige un nombre para tu fuente */
    src: url('./fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    /* Ajusta la ruta y el nombre del archivo */
    /* Puedes añadir más formatos para mayor compatibilidad:
    src: url('../fonts/MiFuentePersonalizada.woff2') format('woff2'),
         url('../fonts/MiFuentePersonalizada.woff') format('woff');
    */
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 160px;
}

.color-amarillo {
    color: var(--primary-yellow) !important;
}

.icono-principal {
    font-family: "Space Grotesk", sans-serif;
    color: white;
}


/* Header Navigation */
.custom-navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 20px 0;

    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10500;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: white !important;
    /* animation: fadeInLeft 1s ease; */
}

/* Para evitar que el contenido quede oculto debajo del navbar */
body {
    /* padding-top: 64px;  */
}
@media (max-width: 768px) {
    body {
        padding-top: 56px; /* Ajusta si tu navbar es más pequeño en móvil */
        /* overflow-x: hidden; */
    }
}

.navbar-nav .nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Main Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding: 80px;
}

.hero-content {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.8));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem 3rem 3rem;
    margin-right: -20%;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 132, 252, 0.1);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(192, 132, 252, 0.1) 0%,
            rgba(168, 85, 247, 0.05) 50%,
            rgba(236, 72, 153, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* Title with layered text */
.main-title {
    position: relative;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 2rem;
}

.title-line {
    position: relative;
    display: block;
    font-size: clamp(3rem, 8vw, 7rem);
}

/* Text positioning for overlap */
.miguel-text {
    position: relative;
    z-index: 10;
}

.subtitulos {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20pt;
    padding-left: 25px;
    margin-bottom: 0;
}

.james-front {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
}

.richards-front {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
}

.resume-text {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* Subtitle and description */
.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    /* animation: fadeInUp 2s ease 0.5s both; */
}

.experience-text {
    font-size: 1.25rem;
    color: var(--text-light-gray);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.7s both;
}

/* Status indicator */
.status-section {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.9s both;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    -webkit-animation: scale-up-center 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) infinite alternate both;
    animation: scale-up-center 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) infinite alternate both;
    margin-right: 10px;
    box-shadow: 0 0 10px 2px #10b98180, 0 0 4px 1px #05966980;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Social Icons */
.social-icons {
    animation: fadeInUp 1s ease 1.1s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #374151;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-right: 1rem;
}

.social-icon:hover {
    border-color: var(--primary-yellow);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(251, 89, 35, 0.3);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.social-links .social-icon {
    /* color: var(--primary-yellow) !important; */
    /* font-size: 2rem !important; */
    /* background: transparent; */
    /* border: none; */
    /* box-shadow: none; */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    padding: 0;
}

/* Image Section with Geometric Shapes */
.image-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* .image-column {
    position: relative;
    z-index: 5;
} */

.shapes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    top: -35%;
    left: -35%;
    transform: translate(0, 100%);
    z-index: 0;
    -webkit-animation: slide-left 5s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both;
    animation: slide-left 5s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both;
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 200px;
    /* Oculta la mitad inferior para un semicirculo vertical */
    clip-path: inset(0 0 0 50%);
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    top: 60%;
    left: 40%;
    transform: translate(0, 100%);
    z-index: 1100;
    -webkit-animation: slide-left 6s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both;
    animation: slide-left 6s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border-bottom-left-radius: 150px;
    border-bottom-right-radius: 150px;
    /* Solo muestra el 25% inferior izquierdo del círculo */
    clip-path: inset(50% 50% 0 0);
}

@-webkit-keyframes slide-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
    }
}

@keyframes slide-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
    }
}




@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) translateY(-15px) rotate(1deg);
    }

    75% {
        transform: translate(-50%, -50%) translateY(15px) rotate(-1deg);
    }
}

/* .shape-2 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
    top: 65%;
    left: 25%;
    transform: translate(-50%, -50%);
    z-index: 4;
    animation: float 6s ease-in-out infinite reverse;
} */

/* .shape-3 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    top: 25%;
    left: 75%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: float 8s ease-in-out infinite;
} */

/* Person silhouette */
.person-silhouette {
    /* width: 450px;
    height: 450px; */
    background: url(./images/persona.avif) no-repeat center center;
    position: relative;
    z-index: 6;
    animation: fadeIn 1.5s ease both;


    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-position: center;
    object-fit: contain;
    image-rendering: auto;
}

.image-column {
    position: relative;
    overflow: visible;
}

/* Contenedor base que define la “regla” a la que se rige el tamaño */
.image-section {
    position: relative;
    /* Tamaño base cuadrado, responsivo y limitado */
    width: clamp(260px, 28vw, 420px);
    height: clamp(260px, 28vw, 420px);
    z-index: 1;
}

/* Imagen más grande que el contenedor y sobresaliendo a la derecha */
.person-img {
    position: absolute;
    top: 50%;
    right: 0%;
    /* sobresalir a la derecha */
    transform: translateY(-50%);

    /* clave: más grande que el div */
    /* height: auto; */
    width: 130%;
    /* mantiene proporción */
    /* límite superior para no ocupar toda la pantalla */
    /* max-height: min(85vh, 720px);  */
    max-width: none;
    /* que no la limite Bootstrap */
    z-index: 2;
    display: block;
    /* opcional: sombra para profundidad */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Asegura que las formas queden debajo de la persona si las usas */
.shapes-container {
    position: relative;
}

/* Ajustes responsive para móviles */
@media (max-width: 576px) {
    /* .image-section {
    width: clamp(220px, 60vw, 320px);
    height: clamp(220px, 60vw, 320px);
  }
  .person-img {
    right: -6%;
    height: 120%;
    max-height: 70vh;
  } */
}



/* Text overlap positioning */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 15;
}

.james-overlay {
    position: absolute;
    top: 20%;
    right: 15%;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 1.2s ease 0.8s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.richards-overlay {
    position: absolute;
    top: 55%;
    left: 10%;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1.2s ease 1s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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



@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}



/* Hover effects */
.image-section:hover .shape-1 {
    transform: translate(-50%, -50%) scale(1.05);
    transition: transform 0.4s ease;
}

.image-section:hover .shape-2 {
    transform: translate(-50%, -50%) scale(1.08);
    transition: transform 0.4s ease;
}

.image-section:hover .person-silhouette {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}















/* Section scrool images */

.section-blur {
    position: relative;
    height: 200vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.text-container {
    position: sticky;
    top: 30%;
    max-width: 800px;
    z-index: 1;
    overflow: hidden;
}


.text-line {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    transform: translateX(-100%);
    opacity: 0;
    white-space: nowrap;
}


.images-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 2rem;
    z-index: 2;
    pointer-events: none;
}


.image-box {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
}


.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}








/* Fin section scrool images */




















@-webkit-keyframes scale-up-center {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes scale-up-center {
    0% {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}




/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-content {
        margin-right: 0;
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .image-section {
        height: 60vh;
        margin-top: 0;
    }

    .shape-1 {
        width: 300px;
        height: 300px;
        top: 0;
    }

    .shape-2 {
        width: 250px;
        height: 250px;
    }

    .shape-3 {
        width: 180px;
        height: 180px;
    }

    .person-silhouette {
        width: 350px;
        height: 350px;
    }

    /* .services-bg-text {
        font-size: 16vw;
        left: -30% !important;
    } */
    .service-card {
        min-height: 120px;
        padding: 2rem 1.2rem 1.5rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .title-line {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .image-section {
        height: 50vh;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
        top: 0;
        left: 50%;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }

    .person-silhouette {
        width: 280px;
        height: 280px;
    }

    .james-overlay,
    .richards-overlay {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .social-icons {
        text-align: center;
    }

    /* .services-bg-text {
        display: none;
        left: -30%;
      } */
    .service-card {
        min-height: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .custom-navbar {
        padding: 10px 0;
    }

    .hero-section {
        padding-top: 80px;
    }

    .hero-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .shape-1 {
        width: 200px;
        height: 200px;
        top: 0;
        left: 50%;
    }

    .shape-2 {
        width: 160px;
        height: 160px;
    }

    .shape-3 {
        width: 200px;
        height: 200px;
    }

    .person-silhouette {
        width: 220px;
        height: 220px;
    }

    .james-overlay {
        top: 25%;
        right: 5%;
    }

    .richards-overlay {
        top: 60%;
        left: 5%;
    }

    .separator-start {
        left: 3% !important;
    }

    .container-servicios {
        padding-left: 0px;
    }

    /* .services-bg-text {
        display: none;
        left: -30% !important;
      } */
}





/* Services */
.container-servicios {
    /* padding-left: 120px; */
}

.services-bg-text {
    position: absolute;
    left: -10%;
    top: 45%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 250px;
    /* font-weight: 400; */
    /* word-spacing: 40px; */
    color: #fff1;
    /* letter-spacing: 0.1em; */
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.services-bg-text-2 {
    position: absolute;
    right: -5%;
    top: 45%;
    transform: translateY(-50%) rotate(-270deg);
    font-size: 250px;
    /* font-weight: 400; */
    /* word-spacing: 40px; */
    color: #fff1;
    /* letter-spacing: 0.1em; */
    z-index: 0;
    user-select: none;
    pointer-events: none;
}



.services-section {
    /* background: var(--dark-secondary); */
    position: relative;
    z-index: 1;
    /* min-height: 120vh; */
    margin: 120px 0 0 0;
}

.service-card {
    background: var(--dark-secondary);
    border: 1px solid #fff2;
    border-radius: 8px;
    padding: 2.5rem 2rem 2rem 2rem;
    min-height: 180px;
    box-shadow: 0 2px 24px 0 #0003;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card .service-card-header {
    margin-bottom: 1.5rem;
}

.service-card-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.8;
}

.service-card-icon {
    font-size: 2rem;
    color: var(--primary-yellow);
}

.service-card-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.service-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.4, 0, .2, 1), padding 0.5s cubic-bezier(.4, 0, .2, 1), color 0.3s;
    font-size: 1rem;
    color: #e0d7f7;
    margin-top: 0;
    padding: 0 0;
    opacity: 0;
}

.service-card.active {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    color: var(--dark-secondary);
    border: none;
}

.service-card.active .service-card-title,
.service-card.active .service-card-number {
    color: var(--dark-secondary);
}

.service-card.active .service-card-icon {
    color: var(--dark-secondary);
}

.service-card.active .service-card-content {
    max-height: 300px;
    padding: 1rem 0 0.5rem 0;
    opacity: 1;
    color: var(--dark-secondary);
    transition: max-height 0.5s cubic-bezier(.4, 0, .2, 1), padding 0.5s cubic-bezier(.4, 0, .2, 1), color 0.3s;
}

.service-card:not(.active):hover {
    border-color: var(--primary-yellow);
}

/* Fin Services */


/* Separador principal */
.section-separator {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(135deg, transparent 0%, var(--primary-yellow), var(--secondary-orange), transparent 100%);
    margin-bottom: 3rem;
}

/* Indicadores de inicio y fin */
.separator-start,
.separator-end {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-yellow);
    font-family: 'Courier New', monospace;
}

.separator-start {
    left: 0;
    transform: translateY(-50%) translateX(-50%);
}

.separator-end {
    right: 0;
    transform: translateY(-50%) translateX(50%);
}

/* About section */
.about-section {
    border-radius: 2rem;
    margin: 40px 0 0 0;
}

.about-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-img-wrapper {
    padding: 0.5rem;
    transform: rotate(6deg);
    display: inline-block;
}

.about-img {
    width: 100%;
    max-width: 320px;
    border-radius: 1.2rem;
    object-fit: cover;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-location {
    background: #f3f3f3;
    border-radius: 0.7em;
    padding: 0.2em 0.7em;
    font-size: 1em;
    color: #d32f2f;
    margin-left: 0.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 600;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04);
}

.about-location i {
    color: #d32f2f;
    margin-right: 0.2em;
}

.about-desc {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem 0;
}

.about-list li {
    color: var(--text-gray);
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.about-list i {
    color: var(--primary-yellow);
    background: var(--dark-bg);
    border-radius: 50%;
    font-size: 1.1em;
    margin-right: 0.5em;
}

.about-special {
    color: var(--text-gray);
    font-size: 1.08rem;
    margin-top: 1.2rem;
}

@media (max-width: 767px) {
    .about-title {
        font-size: 2.1rem;
    }

    .about-img-wrapper {
        max-width: 90vw;
        padding: 0.2rem;
    }

    .about-img {
        max-width: 90vw;
    }

    .about-section {
        padding: 1.2rem 0.5rem;
        border-radius: 1.2rem;
    }
}

/* end About section */


/* Cinta animada */
.div-cinta {
    position: relative;
    width: 100%;
    height: 240px;
}

.diagonal-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 60px;
    display: flex;
    align-items: center;
    transform-origin: center;
    overflow: hidden;
    font-weight: bold;
    font-size: 24px;
    color: white;
    white-space: nowrap;
}

.orange-banner {
    background-color: var(--secondary-orange);
    transform: translate(-50%, -50%) rotate(10deg);
    z-index: 2;
}

.black-banner {
    background-color: var(--dark-secondary);
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 1;
}

.banner-track {
    display: flex;
    animation: scroll-left 30s linear infinite;
    min-width: 100%;
}

.banner-track.reverse {
    animation: scroll-right 30s linear infinite;
}

.banner-text {
    display: flex;
    gap: 40px;
}

.text-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    white-space: nowrap;
}

.text-item::after {
    content: "✕";
    font-size: 18px;
    opacity: 0.7;
}

/* Animaciones suaves y sin saltos */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .div-cinta {
        height: 140px;
    }

    .diagonal-banner {
        font-size: 18px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .div-cinta {
        height: 90px;
    }

    .diagonal-banner {
        font-size: 14px;
        height: 30px;
    }
}

/* Fin cinta animada */

/* por que elegirme */
.services-bg-text-3 {
    position: absolute;
    right: -18%;
    top: 50%;
    transform: translateY(-50%) rotate(-270deg);
    font-size: 250px;
    color: rgba(255, 255, 255, 0.06);
    z-index: 0;
    user-select: none;
    pointer-events: none;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.why-choose-section.in-view .services-bg-text-3 {
    opacity: 1;
}

.why-choose-section {
    min-height: 500vh;
    position: relative;
    /* padding: 0; */
    padding: 80px 0 0 0;
    overflow: visible;
}

/* En móvil, altura automática y sin stacking */
@media (max-width: 991px) {
    .why-choose-section {
        min-height: unset !important;
        height: auto !important;
        padding: 40px 0 0 0 !important;
    }
    .why-choose-container {
        height: auto !important;
        min-height: unset !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        top: unset !important;
    }
    .why-choose-cards-container {
        position: static !important;
        height: auto !important;
        min-height: unset !important;
        width: 100% !important;
        margin-top: 2rem !important;
        perspective: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    .why-choose-card {
        position: static !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 2rem auto !important;
        height: auto !important;
        min-height: 220px !important;
        padding: 1.2rem !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 24px 0 #0003 !important;
        background: var(--dark-secondary) !important;
        z-index: 1 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .why-choose-card-icon {
        position: static !important;
        margin-bottom: 1rem !important;
        top: unset !important;
        right: unset !important;
    }
}


















.why-choose-container {
    height: 100vh;
    /* display: flex; */
    align-items: center;
    align-content: center;
    position: sticky;
    top: 0;
}

.why-choose-cards-container {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.why-choose-card {
    position: absolute;
    width: 100%;
    height: 500px;
    border: 1px solid #fff2;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 24px 0 #0003;
    backdrop-filter: blur(10px);
    transform-origin: center center;
    top: 0;
    left: 0;
    background: var(--dark-secondary);
}

.why-choose-card-icon {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

@media (max-width: 768px) {
    .why-choose-cards-container {
        height: 400px;
    }

    .why-choose-card {
        height: 350px;
        padding: 2rem;
    }

    .why-choose-card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 2rem;
        right: 2rem;
    }
}

@media (max-width: 480px) {
    .why-choose-card {
        height: 320px;
        padding: 1.5rem;
    }
}

/* fin por que elegirme */

/* Portfolio */
.portfolio-section {
    /* padding: 120px 0; */
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-item {
    /* opacity: 0; */
    transform: translateY(60px);
}

.portfolio-card {
    background: var(--dark-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-yellow);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-content {
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
}

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-yellow);
    color: var(--primary-yellow);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    font-size: 0.8rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.portfolio-card:hover .portfolio-category {
    color: var(--dark-secondary);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

/* Responsive Portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .portfolio-section {
        padding: 80px 0;
    }

}

/* Fin Portfolio */


/* Contacto */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-content {
    opacity: 0;
    transform: translateY(50px);
}

.contact-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    background: var(--dark-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(251, 197, 35, 0.1);
}

.form-input::placeholder {
    color: var(--text-light-gray);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    border: none;
    border-radius: 10px;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 197, 35, 0.3);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    top: 10%;
    left: 10%;
}

.shape-5 {
    width: 150px;
    height: 150px;
    background: var(--primary-pink);
    top: 60%;
    right: 15%;
}

.shape-6 {
    width: 100px;
    height: 100px;
    background: var(--secondary-orange);
    top: 80%;
    left: 20%;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-yellow) 0%, transparent 70%);
    pointer-events: none;
    animation: ripple 0.8s ease-out forwards;
    z-index: 10000;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Fin Contacto */

/* Footer */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* overflow: hidden; */
}

.footer-section {
    position: relative;
    background: var(--dark-secondary);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    /* opacity: 0; */
    transform: translateY(30px);
}

.footer-brand {
    position: relative;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-yellow), var(--secondary-orange));
    transition: left 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-yellow);
}

.social-link:hover::before {
    left: 0;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-column {
    /* opacity: 0; */
    transform: translateY(20px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-column:hover .footer-title::after {
    transform: scaleX(1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link:hover {
    color: var(--primary-yellow);
    padding-left: 10px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    /* opacity: 0; */
    transition: all 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    left: -10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* opacity: 0; */
    transform: translateY(20px);
}

.footer-copyright {
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

.footer-back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-back-to-top:hover {
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

.footer-back-to-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.footer-back-to-top:hover svg {
    transform: translateY(-2px);
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.floating-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    top: 20%;
    left: -100%;
    width: 200px;
    opacity: 0.3;
}

.code-snippet {
    position: absolute;
    top: 10%;
    right: 5%;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transform: rotate(-5deg);
    user-select: none;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-pink) 0%, transparent 70%);
    opacity: 0.1;
    bottom: -75px;
    left: 20%;
    filter: blur(20px);
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-logo {
        font-size: 2rem;
    }
}

/* Fin Footer */

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-logo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.loader-text {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    opacity: 0;
    font-family: 'Courier New', monospace;
}

.code-brackets {
    color: var(--primary-yellow);
}

.loader-progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
    border-radius: 2px;
    transform: translateX(-100%);
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(100px);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(300px);
    }
}

.loader-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    opacity: 0;
    margin-top: 1rem;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Transición de salida épica - Staggered Slide-in */
.loader-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.slide-panel {
    position: absolute;
    width: 100%;
    height: 20vh;
    transform: translateX(-100%);
}

.slide-panel:nth-child(1) {
    top: 0%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
}

.slide-panel:nth-child(2) {
    top: 20%;
    background: linear-gradient(90deg, var(--secondary-orange), var(--primary-yellow));
}

.slide-panel:nth-child(3) {
    top: 40%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
}

.slide-panel:nth-child(4) {
    top: 60%;
    background: linear-gradient(90deg, var(--secondary-orange), var(--primary-yellow));
}

.slide-panel:nth-child(5) {
    top: 80%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
}

.slide-in {
    animation: slideInOut 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInOut {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

.logo-explosion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    z-index: 10001;
    opacity: 0;
}

/* Contenido principal oculto inicialmente */
.main-content {
    opacity: 0;
    
    /* transform: translateY(50px); */
}

/* Responsive */
@media (max-width: 768px) {
    body{
        /* overflow-x: hidden */
    }
    .loader-progress-container {
        width: 250px;
    }

    .hero-section {
        padding: 40px 20px;
    }
    .main-content{
        /* overflow-x: hidden; */
    }
}
/* Fin Loader */

/* Animaciones Textos*/

/* Fin Animaciones Textos*/


/* SOLO afecta la sección why-choose en móvil, no el resto del portafolio */
/* @media (max-width: 991px) {
    .why-choose-section {
        min-height: unset !important;
        padding: 40px 0 0 0 !important;
    }
    .why-choose-container {
        height: auto !important;
        min-height: unset !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        top: unset !important;
    }
    .why-choose-cards-container {
        position: static !important;
        height: auto !important;
        min-height: unset !important;
        width: 100% !important;
        margin-top: 2rem !important;
        perspective: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    .why-choose-card {
        position: static !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto 2rem auto !important;
        height: auto !important;
        min-height: 220px !important;
        padding: 1.2rem !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 24px 0 #0003 !important;
        background: var(--dark-secondary) !important;
        z-index: 1 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .why-choose-card-icon {
        position: static !important;
        margin-bottom: 1rem !important;
        top: unset !important;
        right: unset !important;
    }
} */