/* =================================
   TIPOGRAFÍA
================================= */

.font-thin {
    font-weight: 100;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-medium-italic {
    font-weight: 500;
    font-style: italic;
}

.font-decorative {
    font-family: var(--font-decorative);
    font-weight: normal;
}

/* =================================
   HEADER
================================= */

.site-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background-color: var(--nebula-black);
}

.site-header .navbar {
    background-color: var(--nebula-black);
    min-height: 90px;
    padding: 15px 0;
}

.header-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
}

/* NAVIGATION */

.site-header .nav-link {
    color: var(--nebula-white);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    transition: color var(--transition);
}

.site-header .nav-link:hover {
    color: var(--nebula-green);
}

/* CONTACT BUTTON */

.btn-contact {
    background-color: var(--nebula-green);
    color: var(--nebula-black);
    border: 1px solid var(--nebula-green);
    border-radius: 30px;
    padding: 11px 25px;
    font-family: var(--font-primary);
    font-weight: 700;
    transition: all var(--transition);
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--nebula-white);
    border-color: var(--nebula-green);
}

/* HAMBURGER */

.site-header .navbar-toggler {
    border-color: var(--nebula-white);
}

.site-header .navbar-toggler-icon {
    filter: invert(1);
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   HERO / BANNER PRINCIPAL
======================================== */

.hero-section {
    width: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    min-height: 580px;
    background-image: url('../assets/img/banners/Banner1.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Contenedor principal */
.hero-slide>.container,
.hero-slide>.container>.row {
    min-height: 580px;
}

/* Columna de texto */
.hero-content {
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-text {
    max-width: 540px;
}

.hero-text h1 {
    font-family: var(--font-primary);
    font-size: clamp(60px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--nebula-white);
    margin-bottom: 25px;
}

.hero-text h1 span {
    font-family: var(--font-decorative);
    font-size: 120px;
    color: var(--nebula-green);
    font-weight: 500;
}

.hero-text p {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--nebula-green);
    margin-bottom: 10px;
}

/* Botón */
.hero-button {
    display: inline-block;
    background-color: var(--nebula-green);
    color: var(--nebula-black);
    border: 2px solid var(--nebula-green);
    border-radius: 30px;
    padding: 13px 28px;
    font-family: var(--font-primary);
    font-weight: 700;
    transition: all var(--transition);
}

.hero-button:hover {
    background-color: transparent;
    color: var(--nebula-white);
    border-color: var(--nebula-green);
}

/* Columna de imagen */
.hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 580px;
    padding: 0;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
}

/* ========================================
   MARQUEE INCLINADO
======================================== */

.marquee {
    --marquee-angle: -1.5deg;

    position: relative;
    z-index: 10;
    width: 104%;
    margin-left: -2%;
    margin-top: -1.4rem;
    margin-bottom: -1.4rem;
    transform: rotate(var(--marquee-angle));
    background-color: var(--nebula-pink);
    color: var(--nebula-white);
    padding: 15px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 32px;
    padding-right: 32px;
}

.marquee-content span {
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.marquee-content img {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ========================================
   ABOUT / SOMOS NÉBULA
======================================== */

/* CONTENEDOR ABOUT */

.about-section>.container {
    max-width: 1100px;
    padding-left: 40px;
    padding-right: 40px;
}

.about-section {
    position: relative;
    width: 100%;
    min-height: 580px;
    background-image: url('../assets/img/general/fondo-somos-nebula.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.about-section>.container,
.about-section>.container>.row {
    min-height: 580px;
}

/* CONTENIDO */

.about-content {
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.about-text {
    max-width: 540px;
}

.about-text h2 {
    font-family: var(--font-primary);
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--nebula-white);
    margin-bottom: 0px;
}

.about-text h2 .about-hola{
    font-family: var(--font-primary);
    color: var(--nebula-pink);
}

.about-text h2 span{
    color: var(--nebula-green);
    font-family: var(--font-decorative);
}

.about-text small{
    color: var(--nebula-white);
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
}

.about-text small span{
    color: var(--nebula-purple);
}

.about-text p {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--nebula-white);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* IMAGEN */

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.about-image img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
}

/* ========================================
   SERVICES / SERVICIOS
======================================== */

.services-section {
    --services-gap: 26px;
    --services-visible: 3;

    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: -6vw;
    padding: calc(6vw + 60px) 0 calc(6vw + 80px);
    background-color: var(--nebula-purple);
    color: var(--nebula-white);

    -webkit-clip-path: url(#services-waves);
    clip-path: url(#services-waves);

    overflow: hidden;
}

/* SVG DE LOS BORDES */
.section-shapes {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* CAPA DECORATIVA */
.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-color: var(--nebula-white);
    opacity: 0.12;

    -webkit-mask-image: url('../assets/icons/vectores-fondo.svg');
    mask-image: url('../assets/icons/vectores-fondo.svg');

    -webkit-mask-size: 150%;
    mask-size: 150%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;
}

/* CONTENEDOR */
.services-section > .container {
    position: relative;
    z-index: 1;

    max-width: 1100px;
    padding-left: 40px;
    padding-right: 40px;
}

/* ========================================
   ENCABEZADO
======================================== */

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.services-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-eyebrow {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--nebula-white);
}

.services-heading h2 {
    margin: 0;

    font-family: var(--font-primary);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--nebula-white);
}

.services-heading h2 span {
    color: var(--nebula-yellow);
    font-family: var(--font-decorative);
    font-weight: normal;
}

/* ========================================
   FLECHAS DE NAVEGACIÓN
======================================== */

.services-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.services-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    background-color: transparent;
    border: 1.5px solid var(--nebula-white);
    border-radius: 50%;

    color: var(--nebula-white);
    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        opacity var(--transition);
}

.services-arrow svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services-arrow:hover:not(:disabled) {
    background-color: var(--nebula-white);
    color: var(--nebula-purple);
}

.services-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ========================================
   CARRUSEL
======================================== */

.services-carousel {
    width: 100%;
}

.services-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.services-carousel-track {
    display: flex;
    align-items: stretch;
    gap: var(--services-gap);

    width: 100%;

    transition: transform 0.45s ease;
    will-change: transform;
}

/* ========================================
   CARDS
======================================== */

.service-card {
    display: flex;
    flex: 0 0 calc(
        (100% - (var(--services-gap) * (var(--services-visible) - 1)))
        / var(--services-visible)
    );

    flex-direction: column;
    min-width: 0;
    height: 375px;
    padding: 22px;

    background-color: #292929;
    border-radius: 24px;

    overflow: hidden;
}

/* NUMERACIÓN E ICONO */

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.service-number {
    font-family: var(--font-decorative);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: var(--nebula-yellow);
}

.service-number span {
    margin-left: 3px;
    font-size: 13px;
    font-weight: 500;
}

.service-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

/* TÍTULO */

.service-card h3 {
    margin: 0 0 13px;

    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--nebula-white);
}

/* DESCRIPCIÓN */

.service-card p {
    margin: 0 0 16px;

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--nebula-white);
}

/* IMAGEN */

.service-card-image {
    width: 100%;
    height: 153px;
    margin-top: auto;

    border-radius: 13px;
    overflow: hidden;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* ========================================
   INDICADORES
======================================== */

.services-indicators {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    margin-top: 24px;
    padding-left: 8px;
}

.services-indicator {
    display: block;

    width: 8px;
    height: 8px;
    padding: 0;

    background-color: transparent;
    border: 1.5px solid var(--nebula-white);
    border-radius: 20px;

    cursor: pointer;

    transition:
        width var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

.services-indicator.active {
    width: 26px;
    background-color: var(--nebula-yellow);
    border-color: var(--nebula-yellow);
}

/* ========================================
   PROCESS / NUESTRO PROCESO
======================================== */

.process-section {
    position: relative;
    z-index: 1;

    width: 100%;
    margin-top: -6vw;
    padding: calc(6vw + 100px) 0 110px;


    background-image: url('../assets/img/general/fondo-proceso.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--nebula-white);
    overflow: hidden;
}

/* CONTENEDOR */

.process-section > .container {
    position: relative;
    z-index: 1;

    max-width: 1100px;
    padding-left: 40px;
    padding-right: 40px;
}

/* ========================================
   ENCABEZADO
======================================== */

.process-header {
    margin-bottom: 65px;
}

.process-eyebrow {
    display: block;
    margin-bottom: 20px;

    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--nebula-white);
}

.process-header h2 {
    margin: 0 0 10px;

    font-family: var(--font-primary);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--nebula-white);
}

.process-header h2 span {
    color: var(--nebula-purple);
    font-family: var(--font-decorative);
    font-weight: normal;
}

.process-header > p {
    margin: 0;

    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--nebula-white);
}

.process-header > p span {
    color: var(--nebula-yellow);
    font-weight: 700;
}

/* ========================================
   ESTRUCTURA DEL RECORRIDO
======================================== */

.process-timeline {
    position: relative;
    width: 100%;
}

/* SVG GENERADO POR JAVASCRIPT */

.process-route {
    position: absolute;
    z-index: 0;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
    pointer-events: none;
}

.process-route-path {
    fill: none;
    stroke: var(--nebula-white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   GRID DE ETAPAS
======================================== */

.process-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    text-align: center;
}

/* ========================================
   IMÁGENES
======================================== */

.process-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 190px;
    margin-bottom: 17px;
}

.process-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

/* ========================================
   TÍTULO Y PUNTO DE CONEXIÓN
======================================== */

.process-heading {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
}

/* PUNTO */

.process-node {
    position: relative;
    z-index: 2;

    display: block;
    flex-shrink: 0;

    width: 14px;
    height: 14px;
    margin-bottom: 15px;

    background-color: var(--nebula-white);
    border-radius: 50%;
}

/* LÍNEA ENTRE PUNTO Y TÍTULO */

.process-node::after {
    content: "";

    position: absolute;
    top: 100%;
    left: 50%;

    width: 1.5px;
    height: 15px;

    background-color: var(--nebula-white);
    transform: translateX(-50%);
}

/* TÍTULO */

.process-item h3 {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;
    margin: 0 0 10px;
    padding: 8px 12px;

    border: 1.5px solid var(--nebula-white);
    border-radius: 30px;

    font-family: var(--font-primary);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--nebula-white);
}

/* ========================================
   DESCRIPCIONES
======================================== */

.process-description {
    width: 100%;
}

.process-description strong {
    display: block;
    margin-bottom: 3px;

    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--nebula-purple);
}

.process-description p {
    margin: 0;

    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--nebula-white);
}


/* ========================================
   TEAM SECTION
   Nuestro equipo
======================================== */

.team-section {
    position: relative;
    width: 100%;
    margin-top: -1vw;
    padding: calc(6vw + 60px) 0 calc(6vw + 80px);

    background-color: var(--nebula-cyan);

    -webkit-clip-path: url(#team-waves);
    clip-path: url(#team-waves);

    overflow: hidden;
    z-index: 2;
}

/* DEFINICIONES SVG */

.team-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* CAPA DECORATIVA */

.team-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-color: var(--nebula-white);
    opacity: 0.12;

    -webkit-mask-image: url("../assets/icons/vectores-fondo.svg");
    mask-image: url("../assets/icons/vectores-fondo.svg");

    -webkit-mask-size: 150%;
    mask-size: 150%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;
}

/* CONTENEDOR */

.team-container {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 48px), 1100px);
    margin-inline: auto;
    padding-inline: 40px;

    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

/* PRESENTACIÓN */

.team-intro {
    max-width: 190px;
}

.team-intro h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: var(--nebula-black);
    font-family: var(--font-primary);
    font-size: 50px;
    font-weight: 900;
    line-height: 0.95;

    margin-bottom: 14px;
}

.team-intro h2 span {
    color: var(--nebula-red);
    font-family: var(--font-decorative);
    font-size: 1.15em;
    font-weight: 400;
    line-height: 1;
}

.team-intro p {
    color: var(--nebula-black);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

/* INTEGRANTES */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 20px;
}

/* TARJETAS */

.team-card {
    position: relative;
    min-width: 0;
    height: 280px;
}

/* FOTOGRAFÍAS */

.team-photo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    z-index: 1;
}

/* NOMBRES Y CARGOS */

.team-info {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 60%;
    z-index: 2;

    text-align: center;
}

.team-info h3 {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 32px;
    margin: 0;

    color: var(--nebula-white);
    background-color: var(--nebula-purple);

    font-family: var(--font-decorative);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.team-card:nth-child(2) .team-info h3 {
    background-color: var(--nebula-pink);
}

.team-card:nth-child(3) .team-info h3 {
    background-color: var(--nebula-red);
}

.team-info p {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 24px;
    margin: 0;
    padding: 4px 6px;

    color: var(--nebula-white);
    background-color: var(--nebula-black);

    font-size: 11px;
    font-weight: 300;
    line-height: 1.15;
}


/* ========================================
   PROJECTS / PROYECTOS
======================================== */

.projects-section {
    position: relative;
    z-index: 1;

    width: 100%;
    margin-top: -1vh;
    padding: 90px 0 100px;

    background-image: url('../assets/img/general/fondo-proyectos.webp');
    color: var(--nebula-white);

    overflow: hidden;
}

/* CONTENEDOR */

.projects-container {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 48px), 1100px);
    margin-inline: auto;
    padding: 0 40px;
}

/* ========================================
   ENCABEZADO
======================================== */

.projects-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;

    margin-bottom: 24px;
}

.projects-title h2 {
    margin: 0;

    font-family: var(--font-primary);
    font-size: clamp(50px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--nebula-white);
}

.projects-intro p {
    max-width: 430px;
    margin: 0;

    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--nebula-white);
}

/* ========================================
   FILTROS
======================================== */

.projects-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 30px;
}

.project-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    padding: 4px 12px;

    border: 1px solid rgba(242, 242, 242, 0.55);
    border-radius: 30px;

    background: transparent;

    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    color: var(--nebula-white);

    cursor: pointer;
    transition: var(--transition);
}

.project-filter:hover {
    border-color: var(--nebula-turquoise);
    color: var(--nebula-turquoise);
}

.project-filter.active {
    border-color: var(--nebula-turquoise);
    background-color: var(--nebula-turquoise);
    color: var(--nebula-black);
}

/* ========================================
   GRID DE PROYECTOS
======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* ========================================
   TARJETAS
======================================== */

.project-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 10px;

    border-radius: 13px;
    background-color: #303030;

    transition: transform var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card[hidden] {
    display: none;
}

/* IMAGEN */

.project-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1.2 / 1;

    overflow: hidden;
    border-radius: 10px;

    background-color: #CFCFCF;
}

.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* INFORMACIÓN */

.project-info {
    padding: 9px 0 3px;
}

.project-info h3 {
    margin: 0 0 5px;

    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nebula-white);
}

.project-info p {
    margin: 0;

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--nebula-turquoise);
}


/* ========================================
   CLIENTS / MARCAS
======================================== */

.clients-section {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 24px 0;

    background-color: var(--nebula-pink);
    overflow: hidden;
}

/* CONTENEDOR */

.clients-container {
    width: min(calc(100% - 48px), 1400px);
    margin-inline: auto;
    padding: 0 24px;
}

/* LOGOTIPOS */

.clients-logos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 28px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 65px;
}

.client-logo img {
    display: block;

    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
    object-position: center;
}


/* ========================================
   LOCATION / VALDIVIA
======================================== */

.location-section {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 420px;
    padding: 80px 24px;

    background-image: url('../assets/img/general/Mapa.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--nebula-white);
    text-align: center;
    overflow: hidden;
}

/* CONTENIDO */

.location-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 800px;
}

/* ICONO */

.location-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;
    margin-bottom: 20px;
}

.location-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* ENCABEZADO */

.location-content h2 {
    margin: 0;

    font-family: var(--font-primary);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.2;

    color: var(--nebula-white);
}

.location-content h2 strong {
    font-weight: 900;
}

/* =========================================
   CONTACTO
========================================= */

.contact-section {
    position: relative;
    width: 100%;
    margin-top: -4vw;
    padding: 110px 0 90px;

    background-color: var(--nebula-green);

    -webkit-clip-path: url(#contact-waves);
    clip-path: url(#contact-waves);

    overflow: hidden;
    z-index: 2;
}
/* DEFINICIONES SVG */

.contact-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* CAPA DECORATIVA */

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-color: var(--nebula-white);
    opacity: 0.30;

    -webkit-mask-image: url("../assets/icons/vectores-fondo.svg");
    mask-image: url("../assets/icons/vectores-fondo.svg");

    -webkit-mask-size: 150%;
    mask-size: 150%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;
}

/* CONTENEDOR PRINCIPAL */

.contact-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 70px;

    width: min(calc(100% - 48px), 1100px);
    margin-inline: auto;
    padding: 0 40px;
}

/* COLUMNA IZQUIERDA */

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.contact-info h2 {
    margin: 0 0 16px;

    color: var(--nebula-blue);
    font-family: var(--font-primary);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.1;
}

.contact-info p {
    max-width: 380px;
    margin: 0;

    color: var(--nebula-black);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

/* IMAGEN */

.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin-top: 22px;
}

.contact-image img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;

    object-fit: contain;
    object-position: center;
}

/* FORMULARIO */

.contact-form-wrapper {
    width: 100%;
    padding: 40px 42px;

    background-color: var(--nebula-black);
    border: 5px solid #292929;
    border-radius: 40px;
}

.contact-form {
    width: 100%;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    margin-bottom: 7px;

    color: var(--nebula-turquoise);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 11px 13px;

    color: var(--nebula-white);
    background-color: #171619;
    border: 2px solid #29272b;
    border-radius: 10px;
    outline: none;

    font-family: var(--font-primary);
    font-size: 15px;

    transition: border-color var(--transition);
}

.contact-field input {
    height: 43px;
}

.contact-field textarea {
    min-height: 108px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--nebula-turquoise);
}

/* BOTÓN */

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 142px;
    min-height: 42px;
    margin-top: 24px;
    padding: 9px 24px;

    color: var(--nebula-white);
    background-color: var(--nebula-turquoise);
    border: none;
    border-radius: 30px;

    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.contact-submit:hover {
    background-color: var(--nebula-blue);
    transform: translateY(-2px);
}

/* ESTADOS DEL FORMULARIO */

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.contact-result {
    min-height: 20px;
    margin: 16px 0 0;

    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.4;
}

.contact-result.is-loading {
    color: var(--nebula-white);
}

.contact-result.is-success {
    color: var(--nebula-green);
}

.contact-result.is-error {
    color: #ff6b6b;
}

/* =========================================
   FOOTER
========================================= */

.footer-section {
    position: relative;
    width: 100%;
    padding: 85px 0 38px;

    background-image: url("../assets/img/general/fondo-footer.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* CONTENEDOR PRINCIPAL */

.footer-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1.15fr 0.65fr 1.45fr 0.8fr;
    gap: 55px;

    width: min(calc(100% - 48px), 1380px);
    margin-inline: auto;
}

/* TÍTULOS DE COLUMNAS */

.footer-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1.15fr 0.65fr 1.45fr 0.8fr;
    gap: 55px;

    width: min(calc(100% - 48px), 1380px);
    margin-inline: auto;
    padding-inline: 40px;
}
/* IDENTIDAD */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    width: 90px;
    margin-bottom: 24px;
}

.footer-logo img {
    width: 100%;
    height: auto;

    filter: brightness(0) saturate(100%)
        invert(83%) sepia(30%) saturate(700%)
        hue-rotate(27deg) brightness(95%) contrast(90%);
}

.footer-brand p {
    max-width: 260px;
    margin: 0;

    color: var(--nebula-white);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.footer-brand p span {
    color: var(--nebula-purple);
}

/* NAVEGACIÓN */

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-navigation h3{
    color: var(--nebula-green);
}

.footer-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.footer-navigation nav a {
    color: var(--nebula-white);
    font-size: 15px;
    font-weight: 500;

    transition: color var(--transition);
}

.footer-navigation nav a:hover {
    color: var(--nebula-green);
}

/* CONTACTO */

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact h3{
    color: var(--nebula-green);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 15px;

    color: var(--nebula-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    transition: color var(--transition);
}

.footer-contact-item:hover {
    color: var(--nebula-green);
}

.footer-contact-item svg {
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* LLAMADO A LA ACCIÓN */

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-cta h3 {
    color: var(--nebula-white);
    font-family: var(--font-decorative);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 22px;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    min-height: 52px;
    padding: 12px 30px;

    color: var(--nebula-black);
    background-color: var(--nebula-green);
    border-radius: 40px;

    font-size: 19px;
    font-weight: 800;

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.footer-cta-button:hover {
    color: var(--nebula-black);
    background-color: var(--nebula-white);
    transform: translateY(-2px);
}

/* TEXTO GIGANTE */

.footer-title {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 48px), 1380px);
    margin: 45px auto 40px;
    padding-inline: 40px;

    text-align: center;
    white-space: nowrap;
}

.footer-title span {
    display: inline-block;

    color: transparent;
    -webkit-text-stroke: 1px var(--nebula-purple);

    font-family: var(--font-primary);
    font-size: clamp(65px, 10.2vw, 155px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

/* PIE INFERIOR */

.footer-bottom {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(calc(100% - 48px), 1380px);
    margin-inline: auto;
    padding-inline: 40px;
}

.footer-bottom p {
    margin: 0;

    color: var(--nebula-white);
    font-size: 13px;
    font-weight: 400;
}

.footer-back-top {
    color: var(--nebula-green);
    font-size: 13px;
    font-weight: 500;

    transition: color var(--transition);
}

.footer-back-top:hover {
    color: var(--nebula-white);
}