:root {
  /* Fondos */
  --bg-main: #171717; /* Fondo principal */
  --bg-secondary: #262626; /* Cards */
  --negro: #0a0a0a;
  --negro-soft: rgb(10, 10, 10, 0.5);

  /* Texto */
  --text-primary: #e5e5e5; /* Títulos*/
  --text-secondary: #a1a1a1; /* Párrafos */
  --text-muted: #878787; /* Inputs */

  /* Acento */
  --morado: #540863;
  /* --morado: #450693; */
  --morado-claro: #a410c1;
  --morado-oscuro: #380542;
  --morado-sombra: #1d0b1f;
}

html {
  background-color: var(--morado-sombra);
}
body {
  background-color: var(--bg-main);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.navigation {
  background-color: var(--negro-soft);
  backdrop-filter: blur(5px);
}
.servicios {
  background-color: var(--bg-secondary);
}
.contact-us {
  background-image: url("../images/backgrounds/contact-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .contact-us {
    background-position: calc(25%) center;
  }
}

/* .footer {
  background-color: var(--bg-secondary);
} */
.skills {
  background-image: url("../images/backgrounds/skills-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}
/* .about{
  background-color: var(--bg-secondary);
}


*/
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}
p {
  color: var(--text-secondary);
}
i {
  color: var(--text-muted);
}
a {
  color: var(--text-primary);
}
a:hover {
  color: var(--morado-claro);
}
.btn {
  color: var(--text-primary);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
}
.btn:hover {
  color: var(--text-primary);
}
.btn-main:hover {
  background: var(--morado-claro);
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 2.8s ease-out,
    transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================= GENERALES ==================================== */

/* ===========HERO============== */

.hero-img {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  animation-delay: 0.8s;
}
.hero-img img {
  height: 90vh;
  max-height: 900px;
  width: auto;
  display: block;
}
.nombre {
  color: var(--morado);
  /* font-family: "Ephesis", cursive;
  font-weight: 400;
  font-style: normal; */
  font-family: "Cormorant SC", serif;
  font-weight: 400;
  font-style: normal;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}
@media (max-width: 992px) {
  .hero-area .nombre {
    font-size: 80px !important;
  }
}
@media (max-width: 768px) {
  .hero-area .nombre {
    font-size: 48px !important;
  }
}
.hero-icon-container {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  z-index: 10;
}
.hero-icon {
  padding: 8px;
  margin-left: 12px;
  cursor: pointer;
  opacity: 0;
  animation: fadeLeft 1s ease-out forwards;
}
.hero-icon.face {
  animation-delay: 1.2s;
}
.hero-icon.whap {
  animation-delay: 0.9s;
}
.hero-icon.insta {
  animation-delay: 0.6s;
}
.hero-icon.vimeo {
  animation-delay: 0.3s;
}
.hero-icon a i {
  color: var(--text-primary);
  font-size: 18px;
}

.hero-title,
.hero-text {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}
.btn-hero {
  opacity: 0;
  animation: fadeDown 0.8s ease-out forwards;
}
.hero-title {
  animation-delay: 0.3s;
}
.hero-text {
  animation-delay: 0.5s;
}
.btn-hero {
  animation-delay: 0.7s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===========btn hero down============== */
.btn-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.btn-hero-text,
.btn-hero-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
/* Estado inicial */
.btn-hero-text {
  transform: translateY(0);
  opacity: 1;
}
.btn-hero-down {
  position: absolute;
  transform: translateY(150%);
  opacity: 0;
  inset: 0;
}
.btn-hero:hover .btn-hero-text {
  transform: translateY(-150%);
  opacity: 0;
}
.btn-hero:hover .btn-hero-down {
  transform: translateY(0);
  opacity: 1;
}
.btn-hero-down i {
  font-size: 24px;
  color: var(--text-primary);
}
/* ===========btn hero down============== */

/* --------------ABOUT ME -------------------------------- */
.about-title {
  margin-top: 90px;
}

/* ------------- SKILLS ------------------------------------ */
.skills-main-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.habilidades-card {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.habilidades-card.uno {
  animation-delay: 0.3s;
}
.habilidades-card.dos {
  animation-delay: 0.5s;
}
.habilidades-card.tres {
  animation-delay: 0.8s;
}
.habilidades-icon {
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.habilidades-icon i {
  font-size: 32px;
}
.habilidades-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-left: 4px;
}
.habilidades-text h3 {
  margin: 0;
  font-size: 24px;
}
.habilidades-text p {
  font-size: 12px;
  margin: 0;
}
.skill-card-container {
  padding: 0 4px;
}
.skill-card {
  background-color: rgb(38, 38, 38, 0.5);
  display: flex;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 4px;
  padding: 4px 0;
}
.skill-content h4 {
  font-size: 18px;
}
.skill-icon {
  width: 80px;
  min-width: 80px;
  padding-right: 12px;
  padding-left: 4px;
}
.skill-icon img {
  width: 100%;
}
.skill-icon.premiere img {
  transform: scale(1.05);
}
.skill-icon.davinci {
  transform: scale(1) !important;
}
.skill-card-container.premiere {
  animation-delay: 0.2s;
}
.skill-card-container.photo {
  animation-delay: 0.4s;
}
.skill-card-container.light {
  animation-delay: 0.6s;
}
.skill-card-container.after {
  animation-delay: 1s;
}
.skill-card-container.davinci {
  animation-delay: 1.2s;
}

/* ------------- SERVICIOS ------------------------------------ */
.servicios-row {
  align-items: stretch;
}
.servicios-card-container {
  margin-bottom: 12px;
}
.servicios-card {
  height: 100%;
  background-color: var(--bg-main);
}

/* ------------- PORTAFOLIO ------------------------------------ */

.section.portafolio {
  background-color: var(--bg-main);
  padding: 20px 0;
}
.title-portafolio {
  padding: 70px 0 30px;
}
.portafolio-tracks-container {
  position: relative;
}
.portafolio-container {
  overflow-x: hidden;
}
.portafolio-btn {
  width: 260px;
  padding: 18px 0;
  background-color: var(--morado);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 4px 5px 24px 8px rgba(0, 0, 0, 0.5);
}
.portafolio-btn-icon i {
  font-size: 24px;
  color: var(--text-primary);
}
.portafolio-btn .portafolio-btn-icon {
  position: absolute;
  right: -50%;
  display: flex;
  align-items: center;
  transition: 0.8s;
}
.portafolio-btn .portafolio-btn-text {
  transform: translateX(0);
  transition: transform 0.8s ease;
}
.portafolio-btn:hover .portafolio-btn-text {
  transform: translateX(-200px);
  transition: 0.8s;
}
.portafolio-btn:hover .portafolio-btn-icon {
  transform: translateX(0);
  right: 45%;
}

.portafolio-btn:hover {
  background-color: var(--morado-claro);
}
.portafolio-track {
  display: flex;
  width: max-content;
  height: 45vh;
  /* -webkit-animation: scroll-left 30s linear infinite; */
  animation: scroll-left 40s linear infinite;
  margin-bottom: 12px;
}
.portafolio-track.reverse {
  /* -webkit-animation: scroll-right 37s linear infinite; */
  animation: scroll-right 45s linear infinite;
}

.portafolio img {
  height: auto;
  width: auto;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.portafolio video {
  height: auto;
  width: auto;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ------------- BLOG ------------------------------------ */
#blog {
  display: none;
}

/* ------------- CONTACTO ------------------------------------ */
.contact-title {
  padding-top: 24px;
}
.contact-info {
  display: flex;
  justify-content: end;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
}
.con-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.clearfix i,
.clearfix span {
  color: var(--text-muted);
}
.clearfix:hover i,
.clearfix:hover span {
  color: var(--text-primary) !important;
  transition: 0.5s;
  cursor: pointer;
}
.contact-form .contacto-form {
  border: none;
  color: var(--text-primary);
  border-bottom: 1px solid #4c4c4c;
}
.form-control::placeholder {
  color: var(--text-muted);
}
#contact-submit:hover {
  background-color: var(--morado-claro);
}

.thank-you-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--bg-secondary);
  padding: 50px 30px;
  border-radius: 8px;
  text-align: center;
}
.modal-box p {
  padding: 30px 0;
}

/* ------------- FOOTER ------------------------------------ */
.social-icon ul li a i {
  color: var(--text-primary);
}

footer .nombre {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}
