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

/* BOTÓN IR ARRIBA */
#back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;

    width: 60px;
    height: 60px;

    padding: 0;
    border: none;
    background: none;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.1s ease;

    z-index: 1000;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
/* FORMA DEL BOTÓN */
.back-to-top-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill:none;
    stroke: #EBCD6C;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}
/* FLECHA */
.back-to-top-arrow {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    margin: auto;
    fill: none;
}
.back-to-top-arrow .arrow-main,
.back-to-top-arrow .arrow-line {
    fill: none;
    stroke:#EBCD6C;
    stroke-linecap: round;
    stroke-miterlimit: 10;
    stroke-width: 2px;
}

/* Back to top HOVER */
#back-to-top:hover {
    transform: scale(+3px);
}
#back-to-top:hover .back-to-top-shape,
#back-to-top:hover .back-to-top-arrow .arrow-main,
#back-to-top:hover .back-to-top-arrow .arrow-line {
    stroke: #F27E49;
}
.back-to-top-shape,
.back-to-top-arrow .arrow-main,
.back-to-top-arrow .arrow-line {
    transition: stroke 0.1s ease;
}

body {
    font-family: Arial, sans-serif;
    background-color: #FCFBEE;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
     animation: pageFadeIn 0.3s ease;
}
main.page-transition {
    opacity: 0;
    transition: opacity 0.05s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


p {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 300px;
    margin-bottom: 0;
    color:#202F5C;
}

h1 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 60px;
    font-weight: 600;
    color:#202F5C;
}
h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color:#202F5C;
}
h3 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color:#202F5C;
}
h4 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color:#202F5C;
}
h5 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color:#ffffff;
}

.logo {
    display: block;
    font-family: 'Gluten', cursive;
    font-size: 55px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3%;

    white-space: nowrap;
    transform: translateY(5px);
}
/* ---------- HEADER ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 118px;
    padding-top: 43px;
    padding-bottom: 43px;
    background-color: #009598;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    height: inherit;
}
.header-title-nav-wrapper {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    align-items: center;
    position: relative;
    padding-left: 200px;
    padding-right: 200px;
}
.action-wrapper {
    position: absolute;
    right: 60px
}
.header-title {
    flex-grow: 0;
    flex-shrink: 0;
}
.header-title-logo {
    width: auto;
    font-size: 0;
}
.header-nav {
    text-align: right;
    flex-grow: 1;
    flex-shrink: 1;
}
.header-layout-nav-right .header-nav {
    margin-left: auto;
    padding-left: 1.4vw;
}

.header-nav-list {
    display: inline-flex;
    flex-wrap: nowrap;
}
.header-layout-nav-right .header-nav-list {
    justify-content: flex-end;
}

.header-nav-item {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 400;
    display: inline-block;
    margin-left: 60px;
    text-align: right;
    position: relative
}

.header-nav-item a {
    color: #ffffff;
    text-decoration: none;
    position: relative; 
    z-index: 2;
}

.hover-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}
.hover-circle path { 
    vector-effect: non-scaling-stroke;
    fill: none; 
    stroke: #EBCD6C; 
    stroke-width: 2; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 0.2s ease-in;
}
.hover-circle--inicio {
    width: 85px;
    height: auto;
}
.hover-circle--animacion {
    width: 125px;
    height: auto;
}
.hover-circle--ilustracion {
    width: 125px;
    height: auto;
}
.hover-circle--diseno {
    width: 100px;
    height: auto;
}
.hover-circle--about {
    width: 118px;
    height: auto;
}

.header-nav-item:hover .hover-circle path { 
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.45s ease-out;
}
.header-nav-item.active .hover-circle path {
    stroke-dashoffset: 0;
}

.header-actions {
    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    align-items: center;
}
.header-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
}
nav {
    white-space: nowrap;
}

/* ---------- HERO ---------- */
.hero {
    padding: 80px clamp(20px, 15%, 300px);
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 120px;
}
.hero-text {
    flex: 1;
    max-width: 570px;
}
.hero-text-text {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color:#202F5C;
    line-height: 1.4;
    margin-bottom: 35px;
}
.hero-text-text h2 {
    color:#009598;
    font-size: 45px;
    margin: 0;
}
.hero-text-text p {
    font-size: 25px;
}
strong {
    font-weight: 600;
}
.highlights {
    color:#F27E49;
    font-weight: 600;
    white-space: nowrap;
}
.hero-image {
    margin-left: auto;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    align-items: center;
}
.hero-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.1s ease;
}
.hero-button span {
    position: relative;
    z-index: 1;
    
}
.hero-button-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    pointer-events: none;
}
.hero-button-primary {
    color: #ffffff;
    transition: font-size 0.2s ease;
}
.hero-button-primary .hero-button-shape {
    fill:#F27E49;
    stroke: #F27E49;
}
.hero-button-secondary {
    color: #F27E49;
    transition: font-size 0.2s ease;
}
.hero-button-secondary .hero-button-shape {
    fill: none;
    stroke: #F27E49;
}
.hero-button-primary:hover {
    color: #ffffff;
    font-size: 26px;
}
.hero-button-primary:hover .hero-button-shape {
    fill:#EBCD6C;
    stroke: #EBCD6C;
}
.hero-button-secondary:hover {
    color: #EBCD6C;
    font-size: 26px;
}
.hero-button-secondary:hover .hero-button-shape {
    fill: transparent;
    stroke: #EBCD6C;
}


/* ---------- TRABAJOS DESTACADOS ---------- */
.trabajosdestacados {
    background-color: #ffffff;
}
.panel-info {
    height: 100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding-left: 25px;
    padding-right: 150px;
}
.carousel h2 {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 35px;
    font-weight: 600;
    color:#202F5C;
}
.etiqueta {
    display: inline-block;
    padding: 0px 5px;
    border-radius: 5px;
    margin-right: auto;
    margin-bottom: 18px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color:#ffffff;
    background-color: #009598;
}
.carousel p {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color:#202F5C;
    margin-bottom: 35px;
}
.panel-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 70px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: font-size 0.2s ease;
    
}
.panel-button span {
    position: relative;
    z-index: 1;
}
.panel-button-shape {
    position: absolute;
    inset: 0;
    width: 102%;
    height: 98%;
    fill:#F27E49;
    stroke: currentColor;
    stroke-width: 2.5;
    pointer-events: none;
    transition: fill 0.2s ease;
}
.panel-button:hover {
    font-size: 26px;
}
.panel-button:hover .panel-button-shape {
    fill:#EBCD6C;
}
.destacados-item {
    max-height: 700px;
}
.carousel 
.carousel-control-prev {
    left: 20px;
}
.carousel-control-next {
    right: 20px;
}
.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    bottom:auto;
    transform: translateY(-50%);
    width: 50px;
    height: 200px; 
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ---------- index CONTACT FORM ---------- */
.index-contact {
    padding: 80px clamp(20px, 15%, 300px);
}
.index-contact-text {
    flex: 1;
    max-width: 700px;
    min-width: 565px;
}
.index-contact-content {
    display: flex;
    align-items: center;
    gap: 120px;
}
.primero {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 35px;
    font-weight: 300;
    color:#202F5C;
    line-height: 1.3;
}
.segundo {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color:#009598;
    margin-bottom: 30px;
}
.index-contact-text a {
    color:#F27E49;
    text-decoration: underline;
    font-weight: 400;
}
.contact-forms {
    flex: 1.2;
    margin-left: auto;
    background-color: #ffffff;
    border: 2px solid #009598;
    padding: 40px;
    border-radius: 20px;
}
.contact-forms .form-label {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color:#202f5c;
    margin-bottom: 5px;
}
.contact-forms .form-control {
    color:#202f5c;
    background-color: #e3e7e7;
    border: none;
    opacity: 1;
    border-radius: 10px;
    padding: 10px;
}
.contact-forms .form-control::placeholder {
    color: #808a8a;
    opacity: 1;
}
.contact-forms .form-control:focus {
    color: #202f5c;
    background-color: #e3e7e7;
    border: 2px solid #F27E49;
    box-shadow: none;
}
.contact-forms .btn {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    background-color:#009598;
    border: none;
    color:#ffffff;
}
.contact-forms .btn:hover {
    background-color:#EBCD6C;
    color:#ffffff;
}

/* ---------- FOOTER ---------- */
.footer-content {
    display: flex;
    justify-content: center;
    padding: 40px 600px;
    text-align: center;
    background-color: #009598;
    color: #ffffff;
    margin-top: 60px;
}
.footer-content a {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
}

/* ---------- ÁREAS/RUBROS ---------- */
.rubros {
    padding: 150px clamp(20px, 4%, 60px);
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-column-gap: 50px;
    grid-row-gap: 50px;
}
.areas-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.areas-card img {
    width: 100%;
    display: block;
}
.areas-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(32, 47, 92, 0.5);
    opacity: 1;
    transition: background-color 0.3s ease;
}
.areas-card:hover .areas-overlay {
    opacity: 1;
    background-color: rgba(0, 149, 152, 0.5);
}
.areas-overlay h2 {
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/* ---------- ANIMACIÓN PÁGINA ---------- */
.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 70%;
    margin: 0 auto 50px;
    padding: 15px 35px;
    background-color: #ffffff;
    border-radius: 20px;
}
.filter-button {
    position: relative;
    border: none;
    background: none;
    padding: 5px 0;
    color: #202f5c;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}
.filter-button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    left: -5px;
    right: -5px;
    bottom: 1px;
    height: 3px;
    background-color: #F27E49;
}


.projects {
    padding: 40px clamp(20px, 4%, 60px);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
}
.projects-grid-vertical {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
}
.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.project-card:hover img {
    transform: scale(1.07); 
}
.card-vertical img {
    width: 100%;
    height: 30%;
}
.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: rgba(32, 47, 92, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 18px;
    z-index: 2;
}
.project-overlay-vertical {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(32, 47, 92, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
    opacity: 1;
}
.project-card:hover .project-overlay-vertical {
    opacity: 1;
}
.project-overlay h2 {
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}
.project-overlay h5 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffffff;
    margin: 0;
}
.arrow-link {
    width: 30px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor; 
    stroke-width: 2.5px; 
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(90deg);
    position: relative;
    top: 1.2px;
}


/* ---------- SOBRE MÍ ---------- */
.about {
    padding: 80px clamp(20px, 15%, 300px);
}
.about-content {
    display: flex;
    align-items: center;
    gap: 120px;
}
.about-text {
    flex: 1;
    max-width: 570px;
}
.about-text-text {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color:#202F5C;
    line-height: 1.4;
    margin-bottom: 35px;
}
.about-image {
    margin-left: auto;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- PROYECTOS HEADER ---------- */
.project-header {
    position: relative;
    min-height: 280px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 30px;
    box-sizing: border-box;
}
.project-header-content {
    max-width: 820px;
    text-align: center;
}
.project-tag {
    display: inline-block;
    margin-bottom: 25px;
    padding: 0 4px;
    font-family: "Host Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #202f5c;
    background-color: #f2d76b;
}
.project-header > img {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 130px;
    height: auto;
    border: 5px solid #ed422b;
}
/* ---------- PROYECTOS HEADER VERTICAL ---------- */
.project-header-vertical {
    position: relative;
    min-height: 280px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 200px;
    box-sizing: border-box;
}
.project-header-content-vertical {
    max-width: 820px;
    text-align: left;
    width: 100%;
}
.project-tag-vertical {
    display: inline-block;
    margin-bottom: 25px;
    padding: 0 4px;
    font-family: "Host Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #202f5c;
    background-color: #f2d76b;
}
.illustration-item {
    display: flex;
    width: 100%;
    justify-content: center;
}
.illustration-img {
    width: auto;              
    max-width: 100%;
    height: auto;
    max-height: 650px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* VIDEO PROYECTOS */
.video-container {
    width: 63%;
    aspect-ratio: 16 / 9;
    margin: 100px auto;
}
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.project-video {
    width: 63%;
    display: block;
    margin: 80px auto;
}

/* GALERIA PROYECTOS */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0px 150px 100px;
    background-color: none;
    align-items: center;
}
.proyecto-viento {
    border: 0.5px solid #EBCD6C;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.00);
}
.project-gallery-image {
    width: 100%;
    display: block;
    border-radius: 0px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.00);
}
.project-storyboards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 50px;
}
.project-storyboards img {
    width: 45%;
    height: auto;
    display: block;
}
.storyboard-item {
    width: 45%;
    text-align: center;
}
.storyboard-item h3 {
    margin: 0 0 15px;
}
.storyboard-item .project-gallery-image {
    width: 100%;
}


.project-fila {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 120px;
    max-width: 1200px;
    margin: 50px auto;
    align-items: center;
}
.project-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.project-item {
    text-align: center;
}
.project-item h3 {
    margin-bottom: 15px;
}

.avisa-proceso {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px 100px;
    margin-bottom: 70px;
}
.avisa-proceso-parte {
    text-align: center;
}
.avisa-proceso-flecha {
    text-align: center;
    font-size: 50px;
    color:#F27E49;
}
.avisa-design {
    margin-top: 30px;
}
.avisa-animation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.avisa-anim-image {
    width: 100%;
    cursor: pointer;
}
.avisa-animation-grid .avisa-anim-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avisa-gif {
    padding: 30px 450px;
    gap: 150px;
}
.personaje-section {
    background-color: #ffffff;
}
.personaje-fila {
    display: grid;
    grid-template-columns: 2.3fr 1.1fr 1.8fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0px auto;
    padding: 50px 0px;
    align-items: center;
    background-color: #ffffff;
}
.personaje-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.personaje-item {
    text-align: center;
}
.personaje-gallery-image {
    width: 100%;
    display: block;
    border-radius: 0px;
}
.personaje-paleta {
    width: 40%;
}

/* PROYECTOS ILUSTRACION */
.project-illustration {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 50px 50px;
}
.project-illustration img {
    width: 45%;
    height: auto;
    display: block;
}
.illustration-gallery-image {
    width: 100%;
    display: block;
    border-radius: 0px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.00);
}
.illustration-column-item {
    width: 32%;
    text-align: center;
}
.illustration-column-item .illustration-gallery-image {
    width: 100%;
}
.illustration-column-item h3 {
    margin: 15px 0 15px;
}


/* LIGHTBOX */
#image-lightbox {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 40px 80px;
}
#image-lightbox.active {
    opacity: 1;
    visibility: visible;
}
#lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.2s ease;
}
#lightbox-prev,
#lightbox-next,
#lightbox-close {
    position: absolute;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}
#lightbox-prev,
#lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    padding: 15px;
}
#lightbox-prev {
    left: 20px;
}
#lightbox-next {
    right: 20px;
}
#lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 40px;
    line-height: 1;
}

/* BOTÓN VOLVER */
#project-back {
    position: absolute;
    top: 135px;
    left: 20px;
    z-index: 10;
}
.project-back-button {
    display: block;
    width: 30px;
    height: 30px;
}
.project-back-button svg {
    width: 60px;
    height: 50px;
    transform: rotate(-90deg);
}
.project-back-button path {
    fill: none;
    stroke:#F27E49;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}
.project-back-button .back-arrow-main {
    stroke-width: 1.5px;
}
.project-back-button .back-arrow-line {
    stroke-width: 1.53px;
}
.project-back-button:hover path {
    stroke:#EBCD6C;
}

