* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

:root {
    --dark: #34495E;
    --light: #ffffff;
    --success: #0ABF30;
    --error: #E24D4C;
    --warning: #E9BD0C;
    --info: #3498DB;
}

html{
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
}

section {
    overflow-x: hidden;
}

#header {
    width: 100%;
    height: 100vh;
    /* background-image: url(images/background.png); */
    background-size: cover;
    background-position: center;
}

.home-imgHover{
    position: absolute;
    top: 0;
    right: 30px;
    width: 800px;
    height: 100%;
    background: transparent;
    transition: 3s;
    animation: minipActiveHover .1s forwards;
    animation-delay: 4s;
    pointer-events: none;
}

.home-imgHover::after{
    content: '';
    position: absolute;
    top: 0;
    height: 0;
    width: 120%;
    height: 100%;
    background: #1d878a;
    animation: showRigth 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 100;
}

.home-imgHover:hover{
    background-color: #1d878a;
    opacity: .8;
}

.logo{
    position: relative;
    font-size: 25px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}

.logo::before{
    content: '';
    position: absolute;
    top: 0;
    height: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    animation: showRigth 1s ease forwards;
    animation-delay: .3s;
}

.container {
    padding: 10px 10%;
}

.header-content {
    padding: 10px 10%;
    width: 100%;
    height: 4rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #080808;
}

/* Header styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a:after {
    content: '';
    width: 0;
    height: 3px;
    background: #1d878a;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-content .logo {
    color: #1d878a;
}

.header-text h1 {
    position: relative;
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1::before{
    content: '';
    position: absolute;
    top: 0;
    height: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    animation: showRigth 1s ease forwards;
    animation-delay: .3s;
}

.header-text h1 span {
    color: #1d878a;
}

.header-text p {
    position: relative;
}

.header-text p::before{
    content: '';
    position: absolute;
    top: 0;
    height: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    animation: showRigth 1s ease forwards;
    animation-delay: .3s;
}

.header-box {
    display: flex;
    justify-content: space-between;
}

.header-icons {
    margin-top: 10%;
    width: 35%;
}

.icon-box{
    text-align: center;
    align-items: center;
}

.rotate-center{
    margin: 5px 5px;
    font-size: 100px;
    font-weight: 800;
    animation:rotate-center 2s ease-in-out both;
    animation-delay: 2s;
}

.flip-horizontal-bottom{
    margin: 5px 5px;
    font-size: 100px;
    font-weight: 800;
    animation:flip-horizontal-bottom .5s cubic-bezier(.455,.03,.515,.955) 2 reverse both;
    animation-delay: 1s;
}

@keyframes flip-horizontal-bottom{0%{transform:rotateX(0)}100%{transform:rotateX(-180deg)}}
@keyframes rotate-center{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* About Me */

#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 p {
    font-size: 1rem;
    text-align: justify;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-tiles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #1d878a;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #1d878a;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

section .animate{
    opacity: 0;
    filter: blur(5px);
    transition: 1s;
}

section.show-animate .animate{
    opacity: 1;
    filter: blur(0);
}

.sec-1 .animate{
    transform: translateX(-100%);
}

.sec-1.show-animate .animate{
    transform: translateX(0);
}

/* Services */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div p {
    font-size: 15px;
}

.services-list div:hover {
    background-color: #1d878a;
    transform: translateY(-10px);
}

.sec-2 .animate{
    transform: translateX(100%);
    transition-delay: calc(.3s * var(--i));
}

.sec-2.show-animate .animate{
    transform: translateX(0);
}

/* PORTFOLIO */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work-list.second-sec {
    display: none;
}

.work {
    border-radius: 10px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 1s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #1d878a);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 1s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: #1d878a;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #1d878a;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #1d878a;
}
.sec-3 .animate{
    transform: translateX(100%);
    transition-delay: calc(.3s * var(--i));
}

.sec-3.show-animate .animate{
    transform: translateX(0);
}
/* CONTACT */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 40px;
}

.contact-left p i {
    color: #1d878a;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #1d878a;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #1d878a;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    resize: none;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.sec-4 .animate{
    transform: scale(.7);
}

.sec-4.show-animate .animate{
    transform: scale(1);
}

/* Copyright */
.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
    margin-top: 15%;
}

/* NOTIFICATIONS */
.notifications {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 110;
}

.notifications :where(.toast, .column) {
    display: flex;
    align-items: center;
}

.notifications .toast {
    position: relative;
    overflow: hidden;
    width: 400px;
    list-style: none;
    border-radius: 4px;
    padding: 16px 17px;
    margin-bottom: 10px;
    background: var(--light);
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
}

/* &:not(.showing):not(.show) {
    opacity: 1;
} */

@keyframes showRigth{
    100%{
        width: 0;
    }
}

@keyframes show_toast {
    0% {
        transform: translate(100%);
    }
    40% {
        transform: translate(-5%);
    }
    80% {
        transform: translate(0%);
    }
    100% {
        transform: translate(-10px);
    }
}

.notifications .toast.hide {
    animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
    0% {
        transform: translate(-10px);
    }
    40% {
        transform: translate(0%);
    }
    80% {
        transform: translate(-5%);
    }
    100% {
        transform: translate(calc(100% + 20px));
    }
}

.toast::before {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    bottom: 0px;
    left: 0px;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

.toast .column i {
    font-size: 1.75rem;
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--error);
}

.toast.success .column i {
    color: var(--success);
}

.toast.error .column i {
    color: var(--error);
}

.toast .column span {
    font-size: 1.07rem;
    margin-left: 12px;
    color: var(--dark);
}

.toast i:last-child {
    color: var(--dark);
    cursor: pointer;
}

.toast i:last-child:hover {
    color: var(--dark);
}

/* CSS FOR SMALL SCREENS */
nav .fas {
    display: none;
}

@media screen and (max-width: 968px) {
    .header-icons {
        margin-top: 15%;
        margin-left: 15%;
    }

    .rotate-center{
        margin: 5px 5px;
        font-size: 45px;
        font-weight: 500;
        animation:rotate-center 1s ease-in-out both;
        animation-delay: 1s;
    }
    
    .flip-horizontal-bottom{
        margin: 5px 5px;
        font-size: 45px;
        font-weight: 500;
        animation:flip-horizontal-bottom .3s cubic-bezier(.455,.03,.515,.955) 2 reverse both;
        animation-delay: 1s;
    }
}

@media screen and (max-width: 768px) {
    .header-text {
        /* margin-top: 50%; */
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    nav .fas {
        display: block;
    }

    nav ul {
        background: #1d878a;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
    }

    .copyright {
        font-size: 14px;
    }

    .header-icons {
        margin-top: 50%;
    }

    .rotate-center{
        margin: 5px 5px;
        font-size: 30px;
        font-weight: 500;
        animation:rotate-center 1s ease-in-out both;
        animation-delay: 1s;
    }
    
    .flip-horizontal-bottom{
        margin: 5px 5px;
        font-size: 30px;
        font-weight: 500;
        animation:flip-horizontal-bottom .3s cubic-bezier(.455,.03,.515,.955) 2 reverse both;
        animation-delay: 1s;
    }
}

@media screen and (max-width: 576px) {
    /* #header {
        background-image: url(images/phone-background.png);
    } */

    .logo {
        right: 10%;
    }

    .header-text {
        /* margin-top: 100%; */
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    .ul_menu {
        position: fixed;
    }

    nav .fas {
        display: block;
    }

    nav ul {
        background: #1d878a;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .other {
        position: fixed;
        left: 90%;
        display: block;
        text-align: center;
        justify-content: center;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
    }

    .copyright {
        font-size: 14px;
    }

    .header-icons {
        margin-top: 100%;
    }

    .rotate-center{
        margin: 5px 5px;
        font-size: 20px;
        font-weight: 400;
        animation:rotate-center 1s ease-in-out both;
        animation-delay: 1s;
    }
    
    .flip-horizontal-bottom{
        margin: 5px 5px;
        font-size: 20px;
        font-weight: 400;
        animation:flip-horizontal-bottom .3s cubic-bezier(.455,.03,.515,.955) 2 reverse both;
        animation-delay: 1s;
    }
}

/* UPDATES */

/* Tech Chips minimal */
.header-icons.tech-chips {
  width: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icons.tech-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-icons.tech-chips li {
  padding: 8px 12px;
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  font-size: 14px;
  color: #eaeaea;
  background: #111;
  letter-spacing: .2px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  user-select: none;
}

.header-icons.tech-chips li:hover {
  transform: translateY(-2px);
  border-color: #1d878a;
  background: #0f0f0f;
}

/* Responsive */
@media (max-width: 968px) {
  .header-icons.tech-chips { width: 100%; margin: 24px 0 0; }
  .header-icons.tech-chips ul { justify-content: center; }
}
@media (max-width: 576px) {
  .header-icons.tech-chips li { font-size: 12px; padding: 6px 10px; }
  #header{
    height: unset;
  }
}

/* ===== Header chips: responsive layout ===== */
@media (max-width: 968px) {
  .header-box{
    flex-direction: column;         /* texto arriba, chips abajo */
    gap: 16px;
  }
  .header-icons.tech-chips{
    width: 100%;
    margin: 8px 0 0;
    display: block;
    align-self: center;              /* centra el bloque */
  }
  .header-icons.tech-chips ul{
    display: grid;                   /* grid en lugar de wrap */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;                /* limita el ancho total */
    justify-items: center;           /* centra cada chip */
  }
  .header-icons.tech-chips li{
    width: 100%;                     /* que cada chip llene su celda */
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .header-icons.tech-chips ul{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columnas en phones */
    max-width: 380px;
  }
  .header-icons.tech-chips li{
    font-size: 12px;
    padding: 6px 0;
  }
}

/* opcional: orden explícito (por si algún estilo previo interfiere) */
@media (max-width: 968px) {
  .header-text { order: 1; }
  .header-icons.tech-chips { order: 2; }
}

/* DESACTIVAR ANIMACIONES */

/* Desactivar efectos de scroll por sección */
section .animate,
.sec-1 .animate,
.sec-2 .animate,
.sec-3 .animate,
.sec-4 .animate {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

/* Si existía show-animate, queda sin efecto */
section.show-animate .animate,
.sec-1.show-animate .animate,
.sec-2.show-animate .animate,
.sec-3.show-animate .animate,
.sec-4.show-animate .animate {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Opcional: si no usarás más la cortina del hero */
@keyframes showRigth { /* mantener vacío para anular */
  100% { width: 0; }
}

/* ===== Tarjeta con múltiples enlaces (solo afecta a esta) ===== */
.work--multi .layer--multi {
  /* padding: 24px 24px 28px; */
}

/* evita que herede el estilo circular de .layer a de las otras tarjetas */
.work--multi .layer--multi a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: #fff;
  line-height: 1.2;
  font-size: 14px;
  text-decoration: none;

  /* reset de estilos del botón circular global */
  height: auto;
  border-radius: 10px;        /* en vez de 50% */
  text-align: left;           /* en vez de center */
  width: 100%;                /* en vez de 60px */
}

.work--multi .layer--multi a:hover {
  background: rgba(29,135,138,0.25);
  border-color: #1d878a;
  transform: translateY(-2px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.work--multi .layer--multi a i {
  /* icono discreto a la derecha */
  font-size: 14px;
  opacity: .85;
}

/* grid de enlaces */
.work--multi .links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 2 columnas en desktop */
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

/* responsive */
@media (max-width: 968px) {
  .work--multi .links-grid { grid-template-columns: 1fr; } /* 1 columna en tablet/phone */
  .work--multi .layer--multi a { font-size: 13px; }
  
}

/* por si algún estilo previo del .layer aplica margin-top grande al primer <a> */
.work--multi .links-grid a:first-child { margin-top: 0; }

@media (max-width: 576px) {
    .work--multi .layer--multi{
        padding: 0 40px !important;
    }
}