:root {
    --nav-bg: #ffffff;
    --nav-border: #e2e8f0;
    --item-text: #64748b;
    --item-hover-text: #002b50;
    --indicator-bg: #f1f5f9;
     --bg-gray: #d8e0e5;
    --text-dark: #203541;
    --primary: #12344d;
}


body {
    background-color: #f4f4f4;
    font-family: "Assistant", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.contact-page{
    background: url("img/contactos-f.png") center top / cover fixed no-repeat;
}
.contact-background-spacer{
    opacity: 0;
}
@media (max-width: 767.98px){
    .contact-intro-text{
        padding: 10px;
    }
    .equipo-intro-text{
        font-size: 3rem !important;
    }
}
.carpeta-gris{
    Width: 150px;
    height: 150px;
}
@media (max-width: 1199.98px){
    .contact-background-spacer{
        display: none;
    }
    .card-img-overlay{
        position: static;
    }
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wght" 700;
  color: #003258;
}

.titulos{
    font-size: 3rem;
}

.naranja {
    color: #e4670b;
}
.azul {
    color: #01305a;
}
.celeste{
    color: #02ac9c;
}
.gris {
    color: #505e69;
}

.team-cta-btn {
    background-color: #f75c00;
    border-color: #f75c00;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(247, 92, 0, 0.22);
}

.team-cta-btn:hover,
.team-cta-btn:focus-visible,
.team-cta-btn:active {
    background-color: #dd5300;
    border-color: #dd5300;
    color: #ffffff;
    transform: translateY(-1px);
}

.items-comtent-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.items-comtent-center > .card {
    margin: 0 auto;
}

.profile-card {
    width: min(100%, 320px);
    border: 2px solid #00b09d;
    border-radius: 999px;
    background-color: transparent;
    background-image: none;
}

.profile-card img {
    display: block;
    margin: 0 auto;
    width: 100px;
    padding: 0 5px;
}


.client-testimonial-card {
    overflow: hidden;
    border: none;
    background-color: #ced9df;
}

.client-testimonial-card .carousel-col {
    padding-left: 0;
    padding-right: 0;
}

.client-testimonial-card .carousel,
.client-testimonial-card .carousel-inner,
.client-testimonial-card .carousel-item {
    height: 100%;
}

.client-testimonial-card .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.service-list li::before {
    content: "+";
    display: inline-block;
    width: 1.25em;
    color: #01305a;
    font-weight: 700;
}

.service-cta {
    position: relative;
    display: inline-flex;
    width: min(100%, 17.5rem);
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #505e69;
    border-radius: 999px;
    background: transparent;
    color: #002b4d;
    text-decoration: none;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.service-cta-label {
    transition: opacity 0.2s ease, transform 0.35s ease;
}

.service-cta-label .bi-arrow-right-short {
    display: inline-block;
    margin-right: 0.15rem;
    font-size: 1.8rem;
    line-height: 1;
    vertical-align: middle;
    animation: service-cta-arrow-shift 0.9s ease-in-out infinite alternate;
}

@keyframes service-cta-arrow-shift {
    from { transform: translateX(-4px); }
    to { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .service-cta-label .bi-arrow-right-short {
        animation: none;
    }
}

.service-cta img {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.65) rotate(-12deg);
    transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-cta:hover,
.service-cta:focus-visible {
    border-color: #012b50;
    background: #012b50;
    color: #fff;
}

.service-cta:hover .service-cta-label,
.service-cta:focus-visible .service-cta-label {
    opacity: 0;
    transform: translateY(-0.5rem);
}

.service-cta:hover img,
.service-cta:focus-visible img {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: brightness(0) invert(1);
}

.service-cta:focus-visible {
    outline: 3px solid #e6670c;
    outline-offset: 3px;
}

.service-buttons {
    overflow-x: auto;
    padding-block: 1.5rem 2.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-color: #0ea79b #d8e0e5;
    scrollbar-width: thin;
}

.service-buttons-title {
    display: block;
    width: 100%;
}

@media (min-width: 992px) {
    .card-img-overlay {
        padding-left: 60px;
    }
}

.service-buttons-track {
    display: flex;
    width: max-content;
    gap: 0.75rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 3rem);
}

@media (min-width: 1200px) {
    .service-buttons {
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .service-buttons::-webkit-scrollbar {
        display: none;
    }

    .service-buttons-track {
        width: 100%;
        margin-inline: 0;
        justify-content: center;
    }
}

.service-button {
    position: relative;
    display: block;
    flex: 0 0 clamp(8rem, 11vw, 10rem);
    height: clamp(14rem, 18vw, 15rem);
    overflow: hidden;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    scroll-snap-align: center;
    text-decoration: none;
    transition: flex-basis 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-button-label {
    position: absolute;
    z-index: 1;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    font-family: "Cairo", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-button:focus-visible {
    z-index: 2;
    flex-basis: clamp(20rem, 30vw, 27rem);
    outline: 3px solid #e6670c;
    outline-offset: 3px;
}

.service-button:focus-visible img {
    object-fit: contain;
}

#servicios,
#servicio-branding,
#servicio-web,
#servicio-packaging,
#servicio-audiovisual,
#servicio-digital {
    scroll-margin-top: 6rem;
}

@media (hover: hover) and (min-width: 601px) {
    .service-button:hover {
        z-index: 2;
        flex-basis: clamp(20rem, 30vw, 27rem);
    }

    .service-button:hover img {
        object-fit: contain;
    }
}

@media (hover: none), (max-width: 600px) {
    .service-buttons-title {
        padding-block: 1.5rem !important;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .service-buttons-track {
        margin-inline: 0;
        padding-inline: 1rem;
    }

    .service-button {
        flex-basis: min(82vw, 23rem);
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .service-button img {
        object-fit: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-button {
        transition: none;
    }
}

.action-tile {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(90px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.action-tile:nth-child(2) {
    transition-delay: 0.12s;
}

.action-tile:nth-child(3) {
    transition-delay: 0.24s;
}

.action-tile.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.action-tile i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.action-tile:hover i {
    color: #e6670c !important;
    transform: scale(1.25);
}

.service-reveal {
    opacity: 0;
    transform: translateY(70px) scale(0.97);
    transition: opacity 0.7s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.row > .service-reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.row > .service-reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.row > .service-reveal:nth-child(4) {
    transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
    .service-reveal,
    .service-reveal.is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-reveal {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-reveal:nth-child(2) {
    transition-delay: 0.14s;
}

.about-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process-timeline-wrap {
    position: relative;
    overflow: hidden;
}

.process-timeline {
    --progress: 0px;
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 0;
}

.process-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 174, 158, 0.2), rgba(0, 43, 80, 0.7), rgba(0, 174, 158, 0.2));
    transform: translateX(-50%);
    z-index: 0;
}

.process-timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: var(--progress);
    border-radius: 999px;
    background: linear-gradient(180deg, #002b50  0%, #02ac9c 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 24px rgba(230, 103, 12, 0.45);
    transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.process-step {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    z-index: 1;
    opacity: 0;
    transform: translateY(80px) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.process-step.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.process-step:nth-child(even) {
    justify-content: flex-end;
}

.process-step:nth-child(odd) {
    justify-content: flex-start;
}

.process-step.is-active .process-card {
    border-color: rgba(2, 172, 156, 0.7);
    background-color: #ffffff;
    box-shadow: 0 22px 46px rgba(57, 60, 60, 0.3);
    transform: scale(1.035);
    transform-origin: center;
}

.process-step.is-active .process-number {
    background: linear-gradient(135deg, #e6670c, #ff9d4d);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 14px 26px rgba(230, 103, 12, 0.36);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.process-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 22px;
    background: #eceded;
    border: 1px solid rgba(254, 255, 255, 1);
    box-shadow: 0 18px 40px rgba(0, 43, 80, 0.08);
    backdrop-filter: blur(4px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.process-step:nth-child(odd) .process-card {
    margin-left: 2.5rem;
}

.process-step:nth-child(even) .process-card {
    margin-right: 2.5rem;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(0, 43, 80, 0.12);
}

.process-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #012b50, #505e69);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 22px rgba(0, 174, 158, 0.28);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
    z-index: 3;
}

@media (max-width: 767.98px) {
    .process-timeline {
        padding-left: 0;
        padding-right: 0;
    }

    .process-timeline::before,
    .process-timeline::after {
        left: 1.75rem;
    }

    .process-step {
        margin-bottom: 1.2rem;
        justify-content: flex-end;
    }

    .process-step:nth-child(odd) .process-card,
    .process-step:nth-child(even) .process-card {
        margin-left: 4rem;
        margin-right: 0;
        width: calc(100% - 4rem);
    }

    .process-number {
        left: 1.75rem;
        width: 44px;
        height: 44px;
    }

    .process-content {
        padding-left: 0.35rem;
    }

    .process-content p {
        font-size: 0.9rem;
    }
}

.process-content {
    position: relative;
    padding-left: 3.2rem;
}

.process-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 4px 10px rgba(0, 174, 158, 0.15));
}

.process-content h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    color: #01305a;
    font-weight: 800;
}

.process-content p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #2f4657;
}

.site-footer {
    margin-top: auto;
    position: relative;
}

.floating-footer-logo {
    position: absolute;
    left: 50px;
    bottom: 50px;
    height: 150px;
    width: auto;
    z-index: 999;
    pointer-events: none;
}

/* Mantener ambos menús visibles en la parte superior al desplazarse. */
.container-fluid.py-3.d-none.d-md-none.d-xl-block {
    position: sticky;
    top: 1px;
    z-index: 900;
}

.framer-nav-container {
    position: relative;
    margin-left: 30px !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 4px 15px -3px rgb(0 0 0 / 0.1), 0 2px 6px -2px rgb(0 0 0 / 0.05);
    border: 1px solid var(--nav-border);
    display: inline-flex;
    gap: 4px;
    overflow: show;
    animation: framer-menu-enter 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    /* Transición para el contenedor si cambia el tamaño */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes framer-menu-enter {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .framer-nav-container {
        animation: none;
    }
}

.nav-item {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: var(--item-text);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-item.menu-label {
    color: var(--item-hover-text);
    cursor: default;
    color: #e4670b;
    cursor: pointer;
    
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item:hover, .nav-item.active {
    color: var(--item-hover-text);
}

.nav-item.active {
    color: #0ea79b;
}

.nav-item i {
    font-size: 1.1em;
}

/* Sistema de Expansión usando Grid */
.menu-items-wrapper {
    display: grid;
    grid-template-columns: 1fr;
}

.menu-items {
    overflow: visible;
    display: flex;
    gap: 4px;
    opacity: 1;
}

/* Indicador Flotante */
.nav-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    background-color: var(--indicator-bg);
    border-radius: 999px;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    pointer-events: none;
    opacity: 0;
}


/* codigo Botón flotante RRSS */
.floating-menu-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.social-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom center;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Estilo Totembar */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.social-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.social-menu .nav-link {
    color: #4a4a4a;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: transparent;
    text-decoration: none;
}

.social-menu .nav-link:hover {
    transform: translateY(-2px) scale(0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Efectos de hover específicos para las marcas */
.social-menu .nav-link.whatsapp:hover {
    background-color: #25D366;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.social-menu .nav-link.behance:hover {
    background-color: #1769ff;
    color: white;
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.4);
}

.social-menu .nav-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: white;
    box-shadow: 0 8px 20px rgba(214, 36, 159, 0.4);
}

.social-menu .nav-link.facebook:hover {
    background-color: #1877F2;
    color: white;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Botón flotante principal */
.main-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #00ae9e;
    color: white;
    border: none;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-btn:hover {
    transform: scale(0.90);
    background-color: #a2b1b8;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.main-btn.active {
    background-color: #e6670c;
    transform: scale(0.80);
}

@media (max-width: 576px) {
    .floating-footer-logo {
        left: 12px;
        bottom: 12px;
        height: 100px;
    }

    .floating-menu-container {
        bottom: 25px;
        right: 25px;
    }
    
    .main-btn {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .social-menu .nav-link {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
}


/* menu responsive */
.mobile-menu-wrapper {
    position: sticky;
    top: 20px;
    margin-top: 20px;
    z-index: 899;
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el menú y el logo */
}

.mobile-nav {
    background-color: rgba(0, 43, 80, 0.95); /* Color oscuro con 50% de opacidad */
    border-radius: 40px;
    display: flex;
    padding: 0 15px;
    height: 50px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nav-item1 {
    color: #ffffff;
    font-size: 26px;
    text-decoration: none;
    width: 55px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

/* Tooltip con los nombres */
.hover-label {
    position: absolute;
    top: 110%;
    background-color: #002b50;
    color: #ffffff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-transform: capitalize;
}

/* Triángulo del tooltip */
.hover-label::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #002b50 transparent;
}

/* Hover en los items muestra el texto */
.nav-item1:hover .hover-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Colores de hover y activo solicitados */
.nav-item1:hover {
    color: #00ae9e;
    transform: scale(0.92);
}

.nav-item1.active {
    color: #e6670c;
}

/* Contenedor del botón del logo (d) */
.logo-btn {
    width: 50px;
    height: 50px;
    border-radius: 9px; /* Bordes redondeados más cuadrados */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo-btn:hover {
    transform: translateY(-3px);
}

/* Ajuste del logo SVG para que se vea blanco */
.logo-img {
    width: 50px;
    height: 50px;
    /* Transforma el color azul oscuro original (#002b50) a blanco */
}


.btn3 a{
        color: #d6dee1;
    }
.btn3 a:hover{
        color: #0ea79b;
        scale: 1.05;
        transition: all 0.5s ease;
    }
.btn31 a{
        color: #002b50;
    }
.btn31 a:hover{
        color: #a2b1b8;
        scale: 1.3;
        transition: all 0.5s ease;
    }


/* scrolling*/


.cinematic-timeline {
    height: 1000vh; /* Todo el tiempo de la animación */
    position: relative;
}

.sticky-stage {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* FONDOS (Para el efecto del video) */
.right-bg {
    position: absolute;
    top: 50%; left: 30vw;
    width: 170vw; height: 170vw;
    background-color: var(--bg-gray);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transform: translate(-40%, -50%) scale(0);
    transform-origin: left center;
    will-change: transform, opacity;
}

.left-curve-bg {
    position: absolute;
    top: 0; left: 0;
    width: 45vw; height: 100vh;
    background-color: white;
    border-radius: 0 100vh 100vh 0; /* Curva perfecta */
    z-index: 2;
    transform: translateX(-100%);
    box-shadow: 15px 0 40px rgba(0,0,0,0.05);
    will-change: transform;
}

/* CLASE MAESTRA CENTRADA */
.absolute-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    will-change: transform, opacity, left;
}

/* INTRO */
.intro-text {
    font-size: 4vw;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    color: #002b50;
}

.main-logo {
    width: 25vw;
    max-width: 350px;
    opacity: 0;
}

/* SERVICIOS */
.service-item {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 5;
    pointer-events: none;
}

.small-btn {
    position: absolute;
    left: 45vw; /* Justo en el borde de la curva blanca */
    top: 50%;
    width: 60px; height: 60px;
    background-color: var(--indicator-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    will-change: transform, opacity;
}

.small-btn img {
    width: 62px; height: 62px;
}

.right-content {
    position: absolute;
    left: 72.5vw; /* Centrado en el lado derecho gris */
    top: 50%;
    display: flex; flex-direction: column; align-items: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: transform, opacity;
}

.big-icon {
    width: 100px; height: 100px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(-90px);
    will-change: transform, opacity;
}

.right-content h2 {
    font-size: 3rem;
    font-weight: 450;
    color: #4a5568;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(90px);
    will-change: transform, opacity;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.02em;
    line-height: 1.1;
    width: 600px; /* Ajusta el ancho automáticamente */
}

.right-content h2 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
    transition-delay: calc(var(--char-index) * 35ms);
}

.right-content h2.is-visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* FINAL */
.final-item {
    display: flex; flex-direction: column; align-items: center;
    opacity: 0;
    pointer-events: auto; /* Permitir clic */
}

.portfolio-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.35s ease, filter 0.35s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: scale(0.94);
    filter: drop-shadow(0 12px 18px rgba(18, 52, 77, 0.10));
}

.final-icon {
    width: 220px; 
    height: 220px;
    margin-bottom: 10px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-card:hover .final-icon {
    transform: scale(0.96);
}

.portfolio-label {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
    color: #002b50;
    letter-spacing: 0.02em;
    transition: color 0.35s ease, transform 0.35s ease, font-size 0.35s ease;
}

.portfolio-card:hover .portfolio-label {
    color: #02ac9c;
    transform: translateY(-2px);
    font-size: 1.9rem;
}

.portfolio-arrow {
    display: block;
    margin-top: 16px;
    color: #e6670c;
    font-size: 2rem;
    font-weight: 900;
    -webkit-text-stroke: 1px #e6670c;
    animation: portfolio-arrow-bounce 1.1s ease-in-out infinite;
}

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

.portfolio-arrow1 {
    display: block;
    color: #012b50;
    font-size: 1.5rem;
    font-weight: 800;
    -webkit-text-stroke: 1px #012b50;
    animation: portfolio-arrow1-bounce 1.1s ease-in-out infinite;
}

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

@media (max-width: 900px) {
    .intro-text {
        font-size: clamp(2.2rem, 6vw, 4rem);
        white-space: normal;
        max-width: 70vw;
        line-height: 1.1;
    }

    .main-logo {
        width: 38vw;
    }

    .left-curve-bg {
        width: 58vw;
    }

    .small-btn {
        left: 40vw;
        width: 52px;
        height: 52px;
    }

    .right-content {
        left: 70vw;
    }

    .big-icon {
        width: 110px;
        height: 110px;
        margin-bottom: 18px;
    }

    .right-content h2 {
        font-size: 2.1rem;
        width: auto;
    }
}

@media (max-width: 600px) {
    .small-btn,
    .left-curve-bg,
    .right-bg {
        display: none !important;
    }

    .intro-text {
        display: block !important;
        font-size: clamp(1.8rem, 8vw, 3rem);
        max-width: 75vw;
    }

    .main-logo {
        display: block !important;
        width: 52vw;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .right-content {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
    }

    .big-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 18px;
    }

    .right-content h2 {
        font-size: 1.4rem;
        font-weight: 500;
        white-space: normal;
        line-height: 1.15;
        max-width: 60vw;
    }

    .final-icon {
        width: 210px;
        height: 210px;
    }

    .portfolio-label {
        font-size: 1.8rem;
    }
}


/*politicas de privacidad*/

/* =================================
   POLÍTICA DE PRIVACIDAD
================================= */

.privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 20px;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


/* Ocultar modal */

.privacy-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* CONTENEDOR */

.privacy-modal {
    width: 100%;
    max-width: 520px;

    background: #ffffff;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);

    text-align: center;

    transform: translateY(0) scale(1);

    animation: privacyIn 0.5s ease;
}


/* ANIMACIÓN */

@keyframes privacyIn {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

}


/* ICONO */

.privacy-icon {

    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

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

    border-radius: 50%;

    background: #eef7f6;

    color: #0ea79b;

    font-size: 32px;
}


/* TÍTULO */

.privacy-modal h2 {

    margin: 0 0 18px;

    color: #172e4a;

    font-size: 26px;

    font-weight: 700;
}


/* TEXTO */

.privacy-modal p {

    color: #505e69;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 14px;
}


/* TEXTO PEQUEÑO */

.privacy-small {

    font-size: 13px !important;
}


/* LINK */

.privacy-modal a {

    color: #0ea79b;

    font-weight: 600;

    text-decoration: none;
}

.privacy-modal a:hover {

    text-decoration: underline;

}


/* BOTONES */

.privacy-buttons {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 25px;
}


/* ACEPTAR */

.btn-privacy-accept {

    width: 100%;

    border: none;

    border-radius: 10px;

    padding: 14px 20px;

    background: #0ea79b;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;
}


.btn-privacy-accept:hover {

    background: #078f85;

    transform: translateY(-2px);

}


/* LEER POLÍTICA */

.btn-privacy-more {

    display: block;

    width: 100%;

    padding: 12px;

    border-radius: 10px;

    border: 1px solid #d8dee3;

    color: #172e4a !important;

    font-size: 14px;
    font-family: inherit;
    text-decoration: none !important;
    background: transparent;
    cursor: pointer;

    transition: all 0.3s ease;
}


.btn-privacy-more:hover {

    background: #f5f7f8;

}


/* RESPONSIVE */

@media (max-width: 576px) {

    .privacy-modal {

        padding: 28px 22px;

        border-radius: 15px;

    }

    .privacy-modal h2 {

        font-size: 22px;

    }

    .container.text-center.py-5.action-tile {
        text-align: center !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .container.text-center.py-5.action-tile > * {
        margin-bottom: 0.75rem;
    }

    .container.text-center.py-5.action-tile h2 {
        height: auto !important;
        line-height: 1.25;
        text-align: center !important;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .container.text-center.py-5.action-tile .col-10 {
        margin: 0 auto;
        float: none;
        text-align: center !important;
        padding-top: 0.5rem;
    }

    .container.items-center .row {
        justify-content: center;
    }

}


.btn-color{
    background-color: #012b50;
    color: floralwhite;
    border-radius: 7px;
}
.btn-color:hover{
    border-radius: 10px;
    background-color: #069684;
    color: floralwhite;
    scale: 95%;
}

.btn-color1{
    background-color: #e4670b;
    color: #ffffff;
    border-radius: 7px;
}
.btn-color1:hover{
    border-radius: 10px;
    background-color: #023459;
    color: floralwhite;
    scale: 95%;
}

.typing-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 28px;
}

.typing-icon > i {
    font-size: 21px;
}

.typing-dots {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: appearDot 1.5s infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes appearDot {
    0%, 20% {
        opacity: 0;
        transform: scale(0.5);
    }

    30%, 70% {
        opacity: 1;
        transform: scale(1);
    }

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

/* =========================================
   CONTENEDOR DE LA TARJETA
========================================= */

.tarjeta-c {
    position: relative;
    display: block;

    width: 100%;
    max-width: 270px;

    aspect-ratio: 27 / 38;

    margin: 0 auto;

    text-decoration: none;
    color: #ffffff;

    perspective: 1200px;
}
.contact-glass{
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    background: rgba(105, 119, 129, 0.2);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 14px 36px rgba(0, 24, 45, 0.15), inset 0 1px rgba(255, 255, 255, 0.3);
    color: #082c45;
}
.contact-desktop-content{
    padding: 0 clamp(1rem, 3vw, 3rem);
    margin-left: 60px;
}
.contact-desktop-content .card-title{
    margin-bottom: 1rem;
    margin-top: 0;
    margin-left: 30px;
}
.scroll-title {
  text-align: center;
  overflow: hidden;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Palabras */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateX(80px) scaleX(0.8);
  margin-right: 8px;
}

/* Animación activa */
.word.show {
  animation: revealWord 0.8s ease forwards;
}

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

.contact-desktop-form{
    width: min(35rem, 40vw);
}
.contact-glass label{
    color: #f4f4f4;
    font-weight: 600;
}
.contact-glass .form-control{
    border: 1px solid  !important;
    background: rgba(2, 52, 89, 0.2);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    backdrop-filter: blur(8px) saturate(130%);
    color: #ffffff;
}
.contact-glass .form-control::placeholder{
    color: #ced9df;
    opacity: 0.9;
}
.contact-glass .form-control:focus{
    border-color: #069684 !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 167, 155, 0.2);
}


.contact-glass .form-text{
    color: #ffffff !important;
}
.contact-glass .btn-secondary{
    border-color: #069684;
    background-color: #069684;
    color: #ffffff;
}
.contact-glass .btn-secondary:hover,
.contact-glass .btn-secondary:focus-visible{
    border-color: #057c70;
    background-color: #057c70;
    color: #ffffff;
}
body:has(.service-form-modal.show) > .modal-backdrop.show{
    --bs-backdrop-opacity: 0.7;
}
.service-form-modal .modal-content{
    color: #17374a;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: rgba(160, 175, 182, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 24px 64px rgba(0, 20, 35, 0.32), inset 0 1px rgba(255, 255, 255, 0.7);
}
.service-form-modal .modal-header,
.service-form-modal .modal-body{
    background: transparent;
}
.service-form-modal label{
    color: #17374a;
    font-weight: 600;
}
.service-form-modal .form-control{
    border-color: rgba(1, 48, 90, 0.22);
    background: rgba(255, 255, 255, 0.55);
}
.service-form-modal .form-control:focus{
    border-color: #02ac9c;
    box-shadow: 0 0 0 0.2rem rgba(2, 172, 156, 0.18);
}
@media (max-width: 575.98px){
    .contact-glass{
        padding: 1.25rem;
    }
}


/* =========================================
   CONTENEDOR 3D
========================================= */

.tarjeta-inner {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 30px;

    transform-style: preserve-3d;

    transition:
        transform 900ms cubic-bezier(.2,.7,.2,1);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .30);
}


/* =========================================
   GIRO DE LA TARJETA
========================================= */

.tarjeta-c:hover .tarjeta-inner,
.tarjeta-c:focus-visible .tarjeta-inner {
    transform: rotateY(180deg);
}


/* =========================================
   FRENTE
========================================= */

.tarjeta-cuerpo {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

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

    gap: 16px;

    padding: 20px;

    border-radius: 20px;

    color: #ffffff;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(0deg);
}


/* =========================================
   ICONO
========================================= */

.icono-t {
    width: 60px;
    height: 60px;

    object-fit: contain;
}
.icono-t1 {
    width: 30px;
    height: 30px;

    object-fit: contain;
}


/* =========================================
   TEXTO
========================================= */

.text-tarjeta {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
}
.text-tarjeta1 {
    position: relative;
    display: inline-flex;
    width: min(100%, 17.5rem);
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    padding: 0 1rem;
    border: 1px solid #069684;
    border-radius: 999px;
    background: transparent;
    color: #002b4d;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.text-tarjeta1 .icono-t1 {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.2s ease;
}
.text-tarjeta1 .azul {
    transition: opacity 0.2s ease, transform 0.35s ease;
}
.text-tarjeta1:hover,
.text-tarjeta1:focus-visible,
.text-tarjeta1.is-active {
    border-color: var(--portfolio-button-color);
    background-color: var(--portfolio-button-color);
    color: #ffffff;
}
.text-tarjeta1:hover .azul,
.text-tarjeta1:focus-visible .azul,
.text-tarjeta1.is-active .azul {
    opacity: 0;
    transform: translateY(-0.5rem);
}
.text-tarjeta1:hover .icono-t1,
.text-tarjeta1:focus-visible .icono-t1,
.text-tarjeta1.is-active .icono-t1 {
    position: absolute;
    top: 50%;
    left: 50%;
    filter: brightness(0) invert(1);
    animation: portfolio-icon-enter 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.portfolio-branding {
    --portfolio-button-color: #002b4d;
}
.portfolio-graphic {
    --portfolio-button-color: #e4670b;
}
.portfolio-web {
    --portfolio-button-color: #069684;
}
.portfolio-packaging {
    --portfolio-button-color: #e4670b;
}
.portfolio-audiovisual {
    --portfolio-button-color: #505e69;
}
.portfolio-digital {
    --portfolio-button-color: #000000;
}
@keyframes portfolio-icon-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -35%) scale(0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .text-tarjeta1 .icono-t1,
    .text-tarjeta1 .azul {
        transition: none;
    }
    .text-tarjeta1:hover .icono-t1,
    .text-tarjeta1:focus-visible .icono-t1,
    .text-tarjeta1.is-active .icono-t1 {
        animation: none;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
@media (max-width: 575.98px) {
    .text-tarjeta1 {
        font-size: 16px;
    }
}


/* =========================================
   CARA POSTERIOR
========================================= */

.tarjeta-posterior {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 18px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: rotateY(180deg);
}


/* =========================================
   IMAGEN POSTERIOR
========================================= */

.branding-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;
}
.branding-image1 {
    display: block;

    width: 105%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;
}


/* =========================================
   EFECTO DE ENFOQUE
========================================= */

.tarjeta-c:focus-visible {
    outline: 3px solid #e4670b;
    outline-offset: 5px;
}


/* =========================================
   REDUCIR ANIMACIÓN
========================================= */

@media (prefers-reduced-motion: reduce) {

    .tarjeta-inner {
        transition: none;
    }

}

/*CARDS SOBRE EQUIPO */
.card-1{
    width: 0 auto;
    padding: 10px;
    border-radius: 17px;
    background-color: #f4f4f4;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
}
/* ─────────────────────────────────────────
       IMAGEN
    ───────────────────────────────────────── */
   .card__media {
    height: 200px; /* reduce el alto */
    overflow: hidden;
    position: relative;
    border-radius: 10px;

}

.card__img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

    /* zoom sólo cuando la card está cerrada */
    .card:has(.card__toggle:not(:checked)):hover .card__img {
      transform: scale(1.06);
    }

    /* gradiente */
    .card__media::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(
        to top,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.20) 42%,
        transparent 68%
      );
      pointer-events: none;
    }

    /* texto superpuesto */
    .card__overlay {
      position: absolute;
      bottom: 1px;
      left: 22px;
      right: 22px;
      z-index: 2;
    }

    .card__title {
      font-size: 22px;
      font-weight: 600;
      color: #fff;
      letter-spacing: -.02em;
      line-height: 1.18;
      margin-bottom: 5px;
    }

    .card__category {
      font-size: 13px;
      font-weight: 400;
      color: #e4670b;
    }

    .sobre-fausto-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* =========================================
   BOTÓN SOBRE MÍ
========================================= */

.card-1 .card-body > p {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón principal */
.card-1 .sobre-fausto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 8px 12px;

    text-decoration: none;

    overflow: hidden;

    transition: all 0.35s ease;
}


/* =========================================
   TEXTO "SOBRE MÍ"
========================================= */

.card-1 .sobre-fausto-text {
    max-width: 0;
    opacity: 0;

    white-space: nowrap;

    transform: translateX(10px);

    overflow: hidden;

    transition:
        max-width 0.4s ease,
        opacity 0.3s ease,
        transform 0.4s ease;
}


/* =========================================
   FLECHA
========================================= */

.card-1 .portfolio-arrow1 {
    font-size: 22px;

    opacity: 1;

    transition:
        transform 0.4s ease,
        opacity 0.3s ease;
}


/* =========================================
   HOVER
   Aparece "Sobre mí"
========================================= */

.card-1 .sobre-fausto-btn:hover .sobre-fausto-text {
    max-width: 100px;

    opacity: 1;

    transform: translateX(0);
}


/* =========================================
   AL ABRIR EL COLLAPSE
   Bootstrap cambia aria-expanded
========================================= */

.card-1 .sobre-fausto-btn[aria-expanded="true"] {
    pointer-events: none;
}


/* Desaparece el texto */
.card-1 .sobre-fausto-btn[aria-expanded="true"] .sobre-fausto-text {
    max-width: 0;
    opacity: 0;

    transform: translateX(-10px);
}


/* Desaparece la flecha */
.card-1 .sobre-fausto-btn[aria-expanded="true"] .portfolio-arrow1 {
    opacity: 0;

    transform: rotate(180deg) scale(0.5);
}


/* =========================================
   CONTENIDO DEL COLLAPSE
========================================= */

.card-1 #collapseExample {
    text-align: justify;
}


/* =========================================
   BOTÓN CERRAR
========================================= */
/* BOTÓN CERRAR */
.card-1 .collapse-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin: 25px auto 5px;

    text-decoration: none;
    color: #172e4a;

    transition: width 0.4s ease;
}


/* X */
.card-1 .collapse-close i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    font-size: 32px;

    flex-shrink: 0;

    transition: transform 0.3s ease;
}


/* TEXTO CERRAR */
.card-1 .collapse-close span {
    max-width: 0;

    opacity: 0;

    overflow: hidden;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;

    transition:
        max-width 0.4s ease,
        opacity 0.3s ease;
}


/* HOVER → aparece CERRAR */
.card-1 .collapse-close:hover {
    width: 110px;
}


.card-1 .collapse-close:hover span {
    max-width: 60px;
    opacity: 1;
}


/* Animación de la X */
.card-1 .collapse-close:hover i {
    transform: rotate(90deg);
}


/* Cuando el collapse está abierto */
.card-1 #collapseExample.show .collapse-close {
    opacity: 1;

    transform: translateY(0);
}


/* Hover sobre cerrar */
.card-1 .collapse-close:hover i {
    transform: rotate(90deg);
}


/* CODIGO GALERIA PORTAFOLIO */


/* GALERÍA */
.galeria-container {
  margin-left: 0;
  margin-right: 0;
}

.thumb {
  width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.thumb:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Imagen grande */
.lightbox-img {
    display: block;
    width: 55vw;
    height: 0 auto;
    max-width: 1200px;
    max-height: 850px;
    object-fit: contain;
  border-radius: 10px;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 100px;
  right: 50px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Flechas */
.nave {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.prev { left: 40px; }
.next { right: 40px; }


.thumb-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.thumb-wrapper .thumb {
    display: block;
    width: 100%;
    height: auto;
}
.plus-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    
    width: 45px;
    height: 45px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #e6670c;
    font-size: 42px;
    font-weight: 300;
    
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ffffff;
    
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    
    transition: 
        opacity 0.25s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Aparece pequeño y crece */
.thumb-wrapper:hover .plus-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Capa negra sobre la fotografía */
.thumb-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* Mostrar capa negra al pasar el mouse */
.thumb-wrapper:hover::after {
    opacity: 1;
}

.scroll-reveal-download {
    display: inline-flex;
    width: 100px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 20px;
    border-radius: 8px;
    color: #002b50;
    background: #ced9df;
    font-family: "Assistant", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
}

.scroll-reveal-download:hover {
    color: #1f1f1f;
    transform: translateY(-1px);
}

.scroll-reveal-download__icon {
    display: none;
}

.scroll-reveal-download[data-state="default"]:hover,
.scroll-reveal-download[data-state="default"]:focus-visible {
    width: 100px;
    padding: 0;
    color: #ffffff;
    background: #e6670c;
}

.scroll-reveal-download[data-state="default"]:hover .scroll-reveal-download__label,
.scroll-reveal-download[data-state="default"]:focus-visible .scroll-reveal-download__label,
.scroll-reveal-download[data-state="icon"] .scroll-reveal-download__label {
    position: absolute;
    right: 0;
    left: 0;
    text-align: center;
    animation: scroll-download-label-push 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.scroll-reveal-download[data-state="default"]:hover .scroll-reveal-download__icon,
.scroll-reveal-download[data-state="default"]:focus-visible .scroll-reveal-download__icon,
.scroll-reveal-download[data-state="icon"] .scroll-reveal-download__icon {
    display: inline-block;
    animation: scroll-download-icon-push 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes scroll-download-icon-push {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scroll-download-label-push {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(32px);
    }
}

.scroll-reveal-download:focus-visible {
    outline: 3px solid rgba(230, 103, 12, 0.65);
    outline-offset: 3px;
}

.scroll-reveal-download__icon,
.scroll-reveal-download__check {
    flex: 0 0 28px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.scroll-reveal-download__check,
.scroll-reveal-download__confirmation {
    display: none;
}

.scroll-reveal-download[data-state="icon"],
.scroll-reveal-download[data-state="confirmation-icon"] {
    width: 54px;
    padding: 0;
}

.scroll-reveal-download[data-state="icon"] {
    color: #ffffff;
    background: #e6670c;
}

.scroll-reveal-download[data-state="confirmation-icon"] .scroll-reveal-download__label,
.scroll-reveal-download[data-state="complete"] .scroll-reveal-download__label {
    display: none;
}

.scroll-reveal-download[data-state="confirmation-icon"],
.scroll-reveal-download[data-state="complete"] {
    color: #ffffff;
    background: #17801e;
}

.scroll-reveal-download[data-state="confirmation-icon"] .scroll-reveal-download__icon,
.scroll-reveal-download[data-state="complete"] .scroll-reveal-download__icon {
    display: none;
}

.scroll-reveal-download[data-state="confirmation-icon"] .scroll-reveal-download__check,
.scroll-reveal-download[data-state="complete"] .scroll-reveal-download__check,
.scroll-reveal-download[data-state="complete"] .scroll-reveal-download__confirmation {
    display: inline-block;
}

.scroll-reveal-download[data-state="complete"] {
    width: 100px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-download {
        transition: none;
    }

    .scroll-reveal-download__icon {
        animation: none !important;
    }

    .scroll-reveal-download[data-state="default"]:hover .scroll-reveal-download__label,
    .scroll-reveal-download[data-state="default"]:focus-visible .scroll-reveal-download__label,
    .scroll-reveal-download[data-state="icon"] .scroll-reveal-download__label {
        display: none;
        animation: none;
    }
}

/*boton arriba*/ 
.bi-up{
        font-size: 1.5rem;
        color: white;
    }
#botonArriba{
    position: fixed;
    top: 50%;
    bottom: auto;
    left: auto;
    right: -100px;
    transform: translateY(-50%);
    z-index: 100000;
    transition: .2s;
}
.btn-up{
        margin-right: -10px;
        width: 2rem;
        height: 3rem;
        background-color: #0ea79b;
        border-color: #0ea79b;
    }   
.btn-up:hover{
        margin-right: -10px;
        width: 2rem;
        height: 3rem;
        background-color: #525e68;
        border-color: #525e68;
    }  
.btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.42);
    transition: all .4s;
    }
.btn-icon:hover{
    border-radius: .5rem 0 0 .5rem;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.42);
    transition: all .4s;
    scale: 90%;
  
    }

