:root {
    --background-gradient: linear-gradient(180deg, rgb(0, 0, 0) 0%, rgba(0, 21, 36, 0.979) 100%);
    --text-color: #ffffff;
    --border-color: #1e3a5f;
    --post-background: rgba(4, 27, 58, 0.5);
    --search-text: #a0a0a0;
    --icon-color: #ffffff;
    --background: #000000;
    --foreground: #ffffff;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --muted: #6b7280;
    --muted-foreground: #9ca3af;
    --border: #1f2937;
}

@font-face {
    font-family: 'Century Gothic';
    src: local('Century Gothic');
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Century Gothic', system-ui, sans-serif;
}

body {
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #041b3a 0%, #000000 100%);
    background-blend-mode: overlay;
}

.hero-portfolio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-image: url("PImageProject/banner-portfolio.webp");
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 2s 1s forwards;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% -50%, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 90% at 50% 8%, black 88%, transparent 100%);
    transition: transform 0.3s ease;
}

.hero-portfolio:hover {
    transform: scale(1.02);
}

.hero-portfolio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(2, 20, 34, 0.95) 70%, rgba(2, 20, 34, 1) 100%);
    z-index: 1;
}

/* Blueprint grid overlay */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 50px 50px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
    animation: gridFade 2s ease-in-out infinite alternate;
}

@keyframes gridFade {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

.hero-content-portfolio {
    position: relative;
    max-width: 1200px;
    width: 100%;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
    transition: transform 0.3s ease;
}

.hero-content-portfolio:hover {
    transform: translateY(-5px);
}

/* Decorative elements */
.hero-decorative-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform-origin: left;
    animation: expandLine 1.5s ease-out forwards;
}

.hero-side-text {
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* Main content styles */
.hero-main-content {
    text-align: left;
    max-width: 800px;
}

.spaceport-portfolio {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.line-before,
.line-after {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
    transform: scaleX(0);
    animation: expandLine 1.5s ease-out forwards;
}

.main-title-portfolio {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.main-title-portfolio:hover {
    transform: scale(1.02);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

/* Stats section */
.hero-stats {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

.stat-number:hover {
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.stat-separator {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Scroll container styles */
.scroll-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s infinite;
}

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

.mouse-icon {
    width: 25px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    opacity: 0.7;
    animation: arrow-move 1.5s infinite;
}

/* Animations */
@keyframes expandLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes arrow-move {
    0% {
        opacity: 0;
        transform: translateY(-5px) rotate(45deg);
    }

    50% {
        opacity: 1;
        transform: translateY(0) rotate(45deg);
    }

    100% {
        opacity: 0;
        transform: translateY(5px) rotate(45deg);
    }
}

@media (max-width: 480px) {
    .main-title-portfolio {
        font-size: 2rem;
    }
}

/**************************************/
/* Estilos para el scrolling Parallax */
/**************************************/
.parallax-section {
    position: relative;
    overflow: hidden;
}

.hero-section {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.projects-section {
    position: relative;
    background-color: transparent;
    transform: translateY(100vh);
    transition: transform 0.5s ease-out;
}

/**************************************/
/* Estilos para el scrolling Parallax */
/**************************************/

/*******************************************/
/* Estilos para el responsive de la página */
/*******************************************/

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-position: center center;
    transition: all 0.5s ease;
    /* Transición suave para todo el contenedor */
    animation: fadeIn 1s ease forwards;
}

/* Transición suave de zoom (cuando el mouse entra y sale) */
.content-wrapper {
    transform: scale(1);
    /* Estado normal */
    transition: transform 0.5s ease;
    /* Transición suave solo para el zoom */
}

/* Hover: aumentar el zoom */
.content-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.text-content {
    position: relative;
    z-index: 1;
}

.phase-label {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: fadeIn 1.2s ease-in-out;
    transition: all 0.3s ease;
}

.phase-label:hover {
    color: var(--primary);
    letter-spacing: 3px;
}

/* Media Queries Mejorados */
@media screen and (max-width: 1400px) {
    .hero-content-portfolio {
        width: 90%;
        max-width: 1100px;
    }
}

@media screen and (max-width: 1200px) {
    .hero-content-portfolio {
        width: 85%;
        padding: 0 2rem;
    }

    .hero-stats {
        gap: 3rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .content-wrapper {
        padding: 3rem;
        margin: 2rem 0;
    }

    .phase-label {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 992px) {
    .hero-content-portfolio {
        width: 90%;
        padding: 0 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        /* Mantener en fila hasta 768px */
        gap: 2.5rem;
        margin: 2rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .content-wrapper {
        padding: 2.5rem;
        margin: 1.5rem 0;
    }

    .phase-label {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content-portfolio {
        width: 70%;
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .spaceport-portfolio {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .content-wrapper {
        padding: 2rem;
        margin: 1rem 0;
    }

    .phase-label {
        font-size: 1.1rem;
    }

    .hero-decorative-line {
        width: 80px;
    }

    .scroll-container {
        bottom: 1.5rem;
    }

    .mouse-icon {
        width: 22px;
        height: 38px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content-portfolio {
        padding: 0 1rem;
    }

    .spaceport-portfolio {
        font-size: 0.7rem;
        margin-bottom: 1.2rem;
    }

    .hero-decorative-line {
        width: 60px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1.5rem;
        margin: 0.8rem 0;
    }

    .phase-label {
        font-size: 0.9rem;
    }

    .mouse-icon {
        width: 20px;
        height: 35px;
    }

    .arrow {
        width: 8px;
        height: 8px;
    }
}

@media screen and (max-width: 480px) {
    .main-title-portfolio {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .spaceport-portfolio {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .content-wrapper {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .phase-label {
        font-size: 0.8rem;
    }

    /* Mantener elementos decorativos pero ajustados */
    .hero-decorative-line {
        width: 50px;
    }

    .scroll-container {
        transform: scale(0.9);
        bottom: 1rem;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media screen and (max-width: 360px) {

    .scroll-container {
        left: 70%;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Ajustes para la altura */
@media screen and (max-width: 700px) {
    .hero-content-portfolio {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

/*******************************************/
/* Estilos para el responsive de la página */
/*******************************************/

/***************************/
/* Estilos del contenido   */
/***************************/

/* Estilización del scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgb(255, 255, 255);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgb(0, 60, 109);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4a3bc9, #6258ff);
}


.background-gradients {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.gradient-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0, 0, 0) 0%, rgba(0, 21, 36, 0.84) 100%);
}

.gradient-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 131, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
    transition: opacity 0.3s ease;
    animation: gradientPulse 8s infinite alternate;
}

.gradient-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(138, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    transition: opacity 0.3s ease;
    animation: gradientPulse 8s infinite alternate;
}

@keyframes gradientPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

#cursor-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.guest-experience {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.purple-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ffff, #2D3748);
    margin-bottom: 80px;
}

h1 {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 120px;
    transition: color 0.3s ease, transform 0.3s ease;
}

h1:hover {
    transform: translateX(5px);
}

.content-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -20px;
    position: relative;
}

.text-left,
.text-right {
    width: 45%;
}

h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
    transition: color 0.3s ease, transform 0.3s ease;
}

h2:hover {
    transform: translateX(5px);
}

p {
    color: #A0AEC0;
    line-height: 1.6;
    transition: color 0.3s ease, transform 0.3s ease;
}

p:hover {
    transform: translateX(5px);
}

.image-right {
    width: 450px;
    height: 500px;
    object-fit: cover;
}

.image-right-2 {
    width: 550px;
    height: 250px;
    object-fit: cover;
}

.image-left {
    width: 410px;
    height: 350px;
    object-fit: cover;
}

.caption-left,
.caption-right {
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 20px;
    color: #A0AEC0;
}

.caption-left {
    position: absolute;
    left: 0;
    bottom: -50px;
}

.caption-right {
    position: absolute;
    right: 0;
    bottom: -50px;
}

.reverse {
    flex-direction: row-reverse;
}

.bottom-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 80px;
}

.bottom-image {
    width: 500px;
    position: relative;
}

.bottom-image img {
    width: 100%;
    height: auto;
}

.caption-bottom {
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 20px;
    color: #A0AEC0;
}

/* Estilos para tablets */
@media (max-width: 1024px) {
    .container {
        padding: 40px 20px;
    }

    .nav-btn {
        display: none !important;
    }

    h1 {
        font-size: 56px;
        margin-bottom: 100px;
    }

    .content-block {
        margin-bottom: 100px;
    }

    .image-right {
        width: 400px;
        height: 450px;
    }

    .image-right-2 {
        width: 500px;
        height: 225px;
    }

    .image-left {
        width: 360px;
        height: 300px;
    }

    .bottom-image {
        width: 450px;
    }
}

@media (max-width: 750px) {
    .hero-portfolio {
        -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% -50%, black 60%, transparent 100%);
        mask-image: radial-gradient(ellipse 100% 85% at 50% 2%, black 88%, transparent 100%);
    }
}

/* Estilos para celulares */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 40px;
        margin-bottom: 60px;
        text-align: center;
    }

    .content-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 60px;
    }

    .reverse {
        flex-direction: column;
    }

    .text-left,
    .text-right {
        width: 100%;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 28px;
    }

    .image-right,
    .image-left,
    .image-right-2 {
        width: 100%;
        height: auto;
        max-width: 350px;
        margin-bottom: 20px;
    }

    .caption-left,
    .caption-right {
        position: static;
        margin-bottom: 0;
    }

    .bottom-image-container {
        align-items: center;
    }

    .bottom-image {
        width: 100%;
        max-width: 350px;
    }

    .guest-experience,
    .purple-line {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Hover effects */
.image-right,
.image-left,
.image-right-2 {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.image-right:hover,
.image-left:hover,
.image-right-2:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

h1,
h2,
p {
    transition: color 0.3s ease-out;
}

.fade-in-up-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    visibility: hidden;
}

.fade-in-up-element.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/***************************/
/* Estilos del contenido   */
/***************************/

/* Estilos para el botón Ver Más */
.ver-mas-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 12px 30px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    font-weight: 300;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.ver-mas-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, z transparent,
            rgba(59, 130, 246, 0.1),
            transparent);
    transition: left 0.7s ease;
}

.ver-mas-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.ver-mas-btn:hover::before {
    left: 100%;
}

.ver-mas-btn:active {
    transform: translateY(0);
}

/* Ajustes responsive para el botón */
@media (max-width: 1024px) {
    .ver-mas-btn {
        padding: 11px 25px;
        font-size: 12px;
        letter-spacing: 2.5px;
    }
}

@media (max-width: 768px) {
    .ver-mas-btn {
        padding: 10px 20px;
        font-size: 11px;
        letter-spacing: 2px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .ver-mas-btn {
        padding: 9px 18px;
        font-size: 10px;
        letter-spacing: 1.8px;
        margin-top: 15px;
    }
}

/* Estilos para los modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(4, 27, 58, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    margin: auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    animation: modalSlideIn 0.5s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos base para todas las secciones del modal */
.modal-header,
.modal-bentogrid,
.modal-description {
    scroll-snap-align: start;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    position: relative;
}

/* Estilos mejorados para el header del modal */
.modal-header {
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 5px;
    margin: 0;
    position: relative;
    animation: titleReveal 1s ease forwards;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.modal-header h2:hover {
    color: var(--secondary);
}

.modal-header h2::before,
.modal-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 0.3s ease, background 0.3s ease;
}

.modal-header h2::before {
    left: -70px;
    top: 50%;
}

.modal-header h2::after {
    right: -70px;
    top: 50%;
}

.modal-header:hover h2::before,
.modal-header:hover h2::after {
    width: 70px;
    background: var(--primary);
}

.modal-header:hover h2::before,
.modal-header:hover h2::after {
    transition: width 0.3s ease, background 0.3s ease;
}

.modal-header h2:hover {
    transform: scale(1.05);
}

/* Decoración de fondo para el header */
.modal-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

/* Estilos actualizados para el bentogrid */
.modal-bentogrid {
    width: 100%;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 2rem;
    box-sizing: border-box;
}

.bento-item {
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

/* Distribución específica de los items */
#item1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

#item3 {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
}

#item4 {
    grid-column: 5 / 6;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
    gap: 2rem;
}

#item7 {
    grid-column: 1 / 4;
    grid-row: 2 / 4;
}

#item9 {
    grid-column: 5 / 7;
    grid-row: 3 / 4;
}

/* Estilos para los overlays de texto */
.text {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 1rem;
}

.text-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.text-overlay div {
    background-color: rgba(239, 239, 239, 0.8);
    width: 75%;
    height: 0.5rem;
    border-radius: 1rem;
}

.text-overlay div:nth-child(1) {
    width: 95%;
}

/* Estilos para el scroll del modal */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #6e57e0 rgba(0, 0, 0, 0.1);
}

/* Estilos para navegadores WebKit (Chrome, Safari, etc.) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6e57e0, #8f84ff);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a44c9, #7b71ff);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Media Queries */
@media (max-width: 767px) {
    .modal-bentogrid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, 1fr);
        height: auto;
    }

    #item1 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    #item3 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    #item4 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    #item7 {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    #item9 {
        grid-column: 1 / 3;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .modal-bentogrid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .bento-item {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
    }
}

/* Animaciones */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes descriptionFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes listItemFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

/* Efecto de brillo al hover en elementos del bentogrid */
.bento-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.bento-item:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

@media (width: 1400px) {
    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 80px;
        right: 70px;
    }
}

@media (max-width: 1024px) {

    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 50px !important;
        right: 90px !important;
    }

    .modal-header h2 {
        font-size: 70px !important;
        /* Mantener el tamaño del texto en móviles */
    }

    .modal-header h2::before,
    .modal-header h2::after {
        width: 30px;
    }

    .modal-header:hover h2::before,
    .modal-header:hover h2::after {
        width: 60px;
    }

}

@media (max-width: 1024px) {

    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 90px !important;
        right: 55px !important;
    }

    .modal-header h2 {
        font-size: 70px !important;
        /* Mantener el tamaño del texto en móviles */
    }

    .modal-header h2::before,
    .modal-header h2::after {
        width: 30px;
    }

    .modal-header:hover h2::before,
    .modal-header:hover h2::after {
        width: 60px;
    }

}

@media (max-width: 700px) {

    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 30px !important;
        right: 30px !important;
    }

    .modal-header h2 {
        font-size: 30px !important;
        /* Mantener el tamaño del texto en móviles */
    }

    .modal-header h2::before,
    .modal-header h2::after {
        width: 30px;
    }

    .modal-header:hover h2::before,
    .modal-header:hover h2::after {
        width: 60px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 75px !important;
        right: 45px !important;
    }

    .modal-header h2 {
        font-size: 58px !important;
        /* Mantener el tamaño del texto en móviles */
    }

    .modal-header h2::before,
    .modal-header h2::after {
        width: 30px;
    }

    .modal-header:hover h2::before,
    .modal-header:hover h2::after {
        width: 60px;
    }
}

@media (max-width: 480px) {

    /* Estilos para el botón de cierre del modal principal */
    .modal:not(.image-modal) .close-modal {
        top: 25px !important;
        right: 25px !important;
    }

    .modal-header h2 {
        font-size: 25px !important;
        /* Mantener el tamaño del texto en móviles */
    }

    .modal-header h2::before,
    .modal-header h2::after {
        width: 30px;
    }

    .modal-header:hover h2::before,
    .modal-header:hover h2::after {
        width: 60px;
    }
}


/* Estilos para el modal de imágenes */
.image-modal .modal-content {
    background: rgba(4, 27, 58, 0.95);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    height: 90vh;
    position: relative;
}

.modal-image-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5% 10%;
}

.image-wrapper {
    position: relative;
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask:
        linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent),
        linear-gradient(to bottom,
            transparent,
            black 15%,
            black 85%,
            transparent);
    mask:
        linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent),
        linear-gradient(to bottom,
            transparent,
            black 15%,
            black 85%,
            transparent);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Estilos para el botón de cierre del modal principal */
.modal:not(.image-modal) .close-modal {
    position: fixed;
    top: 40px;
    right: 90px;
    width: 40px;
    height: 40px;
    margin: 0;
    background: rgba(110, 87, 224, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(110, 87, 224, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #6e57e0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal:not(.image-modal) .close-modal:hover {
    background: rgba(110, 87, 224, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(110, 87, 224, 0.3);
}

.modal:not(.image-modal) .close-modal::before {
    content: '×';
    position: relative;
    top: -1px;
}

/* Estilos para el botón de cierre del modal de galería */
.close-modal-gallery {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
}

.close-modal-gallery:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.close-modal-gallery::before {
    content: '×';
    position: relative;
    top: -1px;
}

.close-modal-gallery::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

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

/* Estilos responsive para los modales */

/* Tablets y pantallas medianas (768px - 1024px) */
@media screen and (max-width: 1024px) {

    .modal-image-container {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 5% 10%;
        overflow: hidden;
        touch-action: none; /* Previene el scroll en móviles durante el swipe */
        user-select: none; /* Previene la selección de texto durante el arrastre */
    }
    
    .image-wrapper {
        position: relative;
        width: 80vw;
        height: 80vh;
        max-width: 1200px;
        max-height: 800px;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: all;
        cursor: grab;
    }
    
    .image-wrapper:active {
        cursor: grabbing;
    }
    
    .modal-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .modal .modal-content {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
        border-radius: 12px;
    }

    .modal-header {
        padding: 30px 20px;
    }

    .modal-header h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .modal-bentogrid {
        padding: 20px;
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ajustes para el modal de imágenes */
    .image-modal .modal-content {
        width: 90%;
        height: 85vh;
    }

    .modal-image {
        max-width: 85%;
        max-height: 80vh;
    }

    .image-wrapper {
        width: 90vw;
        height: 70vh;
    }
}

/* Móviles grandes (481px - 767px) */
@media screen and (max-width: 767px) {
    .modal .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .modal-header {
        padding: 25px 15px;
    }

    .modal-header h2 {
        font-size: 24px;
        letter-spacing: 1.5px;
    }

    .modal-bentogrid {
        padding: 15px;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .bento-item {
        min-height: 200px;
    }

    /* Ajustes para el modal de imágenes */
    .image-modal .modal-content {
        width: 100%;
        height: 100vh;
    }

    .modal-image {
        max-width: 95%;
        max-height: 85vh;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .prev-btn {
        left: 25px;
    }

    .next-btn {
        right: 25px;
    }
}

/* Móviles pequeños (hasta 480px) */
@media screen and (max-width: 480px) {
    .modal-header {
        padding: 20px 10px;
    }

    .modal-header h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .modal-bentogrid {
        padding: 10px;
        gap: 10px;
    }

    .bento-item {
        min-height: 180px;
    }

    /* Ajustes para el modal de imágenes */
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .image-wrapper {
        width: 98vw;
        height: 50vh;
    }
}

/* Ajustes para modo paisaje en móviles */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .modal .modal-content {
        height: auto;
        min-height: 100vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-bentogrid {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        gap: 8px;
    }

    .bento-item {
        min-height: 120px;
    }

    /* Ajustes para el modal de imágenes en landscape */
    .image-modal .modal-content {
        display: flex;
        align-items: center;
    }

    .modal-image {
        max-height: 80vh;
        max-width: 80%;
    }
}

/* Ajustes para pantallas muy grandes */
@media screen and (min-width: 1440px) {
    .modal .modal-content {
        max-width: 1400px;
    }

    .modal-bentogrid {
        gap: 25px;
        padding: 30px;
    }

    .modal-header h2 {
        font-size: 50px;
    }
}

/* Ajustes para dispositivos de alta densidad de píxeles */
@media screen and (max-width: 768px) {
    .modal-image-container {
        padding: 3% 5%;
    }

    .image-wrapper {
        -webkit-mask:
            linear-gradient(to right,
                transparent,
                black 10%,
                black 90%,
                transparent),
            linear-gradient(to bottom,
                transparent,
                black 10%,
                black 90%,
                transparent);
        mask:
            linear-gradient(to right,
                transparent,
                black 10%,
                black 90%,
                transparent),
            linear-gradient(to bottom,
                transparent,
                black 10%,
                black 90%,
                transparent);
    }
}

@media screen and (max-width: 480px) {
    .modal-image-container {
        padding: 2% 3%;
    }

    .modal-image {
        min-width: 200px;
        min-height: 150px;
    }
}

.description-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* Permitir que los elementos se envuelvan */
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .description-container {
        flex-direction: column;
        /* Cambiar a columna en pantallas pequeñas */
        align-items: center;
        /* Alinear a la izquierda */
    }

    .modern-title {
        margin-right: 0 !important;
        /* Eliminar margen derecho en pantallas pequeñas */
        text-align: center !important;
        /* Centrar el texto */
        margin-bottom: 40px !important;
        /* Añadir margen inferior */
    }

    .accordion-final-modal {
        width: 100%;
        /* Asegurar que el acordeón ocupe el 100% del ancho */
    }
    .modal-header {
        height: 100vh;
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .modern-title {
        margin-right: 0 !important;
        font-size: 1.6rem;
        /* Reducir tamaño de fuente un poco más */
    }

    .accordion-header-final-modal {
        font-size: 16px;
        /* Reducir tamaño de fuente del encabezado */
    }

    .accordion-content-final-modal p {
        font-size: 14px;
        /* Reducir tamaño de fuente del contenido */
    }
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #a8a8a8;
    text-align: center;
    margin-right: 40px;
    transition: color 0.3s ease;
}

.modern-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #cfcfcf;
    bottom: -10px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-title:hover {
    color: #ffffff;
}

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

.accordion-final-modal {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 0.5s ease;
}

.accordion-item-final-modal {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header-final-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: transparent;
}

.accordion-header-final-modal:hover {
    color: white;
    font-weight: 800;
}

.accordion-header-final-modal::after {
    content: '\002B';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.accordion-item-final-modal.active .accordion-header-final-modal::after {
    transform: rotate(45deg);
}

.accordion-content-final-modal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0 20px;
}

.accordion-item-final-modal.active .accordion-content-final-modal {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
    padding: 20px;
}

.accordion-content-final-modal p {
    padding: 20px;
    color: #ddd;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.accordion-item-final-modal.active .accordion-content-final-modal p {
    animation: fadeIn 0.5s ease-out;
}

/************************************/
/* Estilos responsive para carrusel */
/************************************/
@media screen and (max-width: 1200px) {
    .modal-bentogrid {
        display: flex;
        justify-content: center;
        /* Centrar horizontalmente */
        align-items: center;
        /* Centrar verticalmente */
        height: 90vh;
        /* Asegura que ocupe toda la altura deseada del modal */
        padding: 2rem;
        /* Espaciado interno opcional */
        box-sizing: border-box;
        /* Incluye padding en el cálculo del ancho/alto */
    }

    .carousel-wrapper {
        display: flex;
        flex-direction: column;
        /* Distribuir en columna */
        align-items: center;
        /* Centrar horizontalmente */
        width: 110%;
        /* Asegurar que ocupe el ancho completo del modal */
    }

    .carousel-container {
        position: relative;
        width: 100%;
        /* Cambiar a 100% para adaptarse al modal */
        max-width: 90%;
        /* Mantener el máximo ancho */
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background-color: #fff;
    }

    .carousel {
        overflow: hidden;
        border-radius: 15px;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .carousel-item {
        min-width: 100%;
        box-sizing: border-box;
        border-radius: 15px;
        height: 400px;
        /* Altura fija para las imágenes */
        object-fit: cover;
        filter: brightness(0.9);
        animation: fadeIn 0.5s ease-in-out;
        /* Mover la animación aquí */
        transition: all 0.5s ease;
    }

    .carousel-item:hover {
        filter: brightness(1.2) contrast(1.1);
        transform: scale(1.02);
    }

    /* Botones de navegación */
    .carousel-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 15px;
        z-index: 10;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-button:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-button.prev {
        left: 15px;
    }

    .carousel-button.next {
        right: 15px;
    }

    .carousel-button svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }

    /* Indicadores de posición */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        /* Aumentar espacio entre el carrusel y los indicadores */
    }

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        background-color: #ccc;
        border: none;
        border-radius: 50%;
        margin: 0 6px;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-indicators button:hover {
        background-color: #aaa;
        transform: scale(1.2);
    }

    .carousel-indicators button.active {
        background-color: #333;
        transform: scale(1.3);
    }

    /* Etiqueta de progreso */
    .carousel-progress {
        position: absolute;
        bottom: 10px;
        /* Espacio desde el fondo */
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: 16px;
        color: #fff;
        font-weight: bold;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 5px 10px;
        border-radius: 5px;
        z-index: 10;
    }

    /* Animación de entrada */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/************************************/
/* Estilos responsive para carrusel */
/************************************/

/* Animaciones y efectos para elementos principales */

/* Efectos para el contenedor de contenido */
.content-wrapper {
    transition: all 0.5s ease;
    animation: fadeIn 1s ease forwards;
}

.content-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Efectos para los gradientes de fondo */
.gradient-2, .gradient-3 {
    transition: opacity 0.3s ease;
    animation: gradientPulse 8s infinite alternate;
}

@keyframes gradientPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Efectos para el modal */
.modal-content {
    animation: modalSlideIn 0.5s ease forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos para las imágenes del carrusel */
.carousel-item {
    transition: all 0.5s ease;
}

.carousel-item:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.02);
}

/* Efectos para los botones de navegación */
.nav-btn {
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Animación para el loading */
.loading {
    animation: loadingFade 0.5s ease-in-out;
}

@keyframes loadingFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Efectos para el scrollbar */
::-webkit-scrollbar-thumb {
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4a3bc9, #6258ff);
}

/* Animaciones para elementos en scroll */
.fade-in-up-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto para textos y párrafos */
p, h1, h2 {
    transition: color 0.3s ease, transform 0.3s ease;
}

p:hover, h1:hover, h2:hover {
    transform: translateX(5px);
}