/**
 * Portfolio Eduardo Rus - Styles
 * @description Estilos principales del portfolio
 * @version 2.0.0
 */

/* ==================== VARIABLES CSS ==================== */
:root {
  /* Colors */
  --primary-color: #1ba1e9;
  --secondary-color: #cde1f8;
  --accent-color: #e7630b;
  --text-color: #4e4e4e;
  --dark-text-color: #1e1e1e;
  --light-background: #f5f5f5;
  --hover-color: #1B1B1B;
  --white: #ffffff;
  
  /* Social Media Colors */
  --gmail-color: #D44638;
  --whatsapp-color: #25D366;
  --instagram-color: #C13584;
  --linkedin-color: #0A66C2;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.5s ease-in-out;
  --transition-slow: 1s ease;
  
  /* Shadows */
  --box-shadow-sm: 0 1px 1px 0 rgba(0, 0, 0, 0.06), 0 2px 5px 0 rgba(0, 0, 0, 0.2);
  --box-shadow-md: 0 13px 8px -10px rgba(0, 0, 0, 0.1);
}

/* ==================== BASE STYLES ==================== */
body {
  background-color: var(--light-background);
  color: var(--text-color);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text-color);
  font-weight: 600;
}

a {
  color: var(--dark-text-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ==================== UTILITY CLASSES ==================== */
.box-shadow {
  box-shadow: var(--box-shadow-md);
}

.box-shadow-full {
  padding: var(--spacing-lg) 1.25rem;
  position: relative;
  background-color: var(--white);
  margin-bottom: var(--spacing-lg);
  z-index: 2;
  box-shadow: var(--box-shadow-sm);
}

.bg-image {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}

.display-table {
  width: 100%;
  height: 100%;
  display: table;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
}

/* ==================== OVERLAYS ==================== */
.overlay-mf {
  background-color: #0078ff;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  opacity: 0.7;
}

.overlay-docencia {
  background-color: rgba(123, 113, 113, 0.80);
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  z-index: 0;
}

.paralax-mf {
  position: relative;
  padding: 8rem 0;
}

/* ==================== NAVBAR ==================== */
.navbar-b {
  transition: var(--transition-normal);
  background-color: transparent;
  padding-top: 1.563rem;
  padding-bottom: 1.563rem;
}

.navbar-b.navbar-reduce {
  background-color: rgba(255, 255, 255, 0.9);
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.navbar-b .navbar-brand {
  color: var(--accent-color);
  font-size: 2rem;
  font-weight: 600;
}

.navbar-b .nav-link {
  color: rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}

.navbar-b .nav-link::before {
  content: '';
  position: absolute;
  margin-left: 0;
  width: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #0078ff;
  transition: var(--transition-normal);
}

.navbar-b .nav-link:hover {
  color: var(--hover-color);
}

.navbar-b .nav-link:hover::before {
  width: 55px;
}

.navbar-b.navbar-trans .nav-link {
  color: rgba(0, 0, 0, 0.8);
}

.navbar-b.navbar-trans .nav-link::before {
  background-color: var(--white);
}

.navbar-b.navbar-trans .nav-link:hover {
  color: var(--white);
}

.navbar-b.navbar-reduce .nav-link {
  color: #5f5959d9;
}

.navbar-b.navbar-reduce .nav-link:hover {
  color: #0078ff;
}

/* Hamburger Menu */
.navbar-toggler {
  position: relative;
  border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: 0;
}

.navbar-toggler span {
  display: block;
  background-color: var(--white);
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transform: rotate(0deg);
  transition: transform 0.35s ease-in-out;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
  position: absolute;
  left: 12px;
  top: 10px;
  transform: rotate(135deg);
  opacity: 0.9;
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
  height: 12px;
  visibility: hidden;
  background-color: transparent;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
  position: absolute;
  left: 12px;
  top: 10px;
  transform: rotate(-135deg);
  opacity: 0.9;
}

/* ==================== INTRO SECTION ==================== */
.intro {
  height: 100vh;
  position: relative;
  color: black;
}

.intro .intro-content {
  text-align: center;
  position: absolute;
}

.intro .overlay-itro {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  opacity: 0.2;
}

.intro .intro-title {
  color: var(--accent-color);
  border: 6px groove #000;
  font-weight: 600;
  font-size: 4rem;
  text-shadow: -5px -5px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.intro .intro-subtitle {
  font-size: 2.5rem;
  font-weight: 400;
  text-shadow: -4px -1px 0 var(--accent-color);
}

.intro .text-slider-items {
  display: none;
}

/* ==================== ABOUT SECTION ==================== */
.experiencia {
  padding: 40px 40px 60px 40px;
}

.experiencia .columna {
  padding: 20px;
  border: 2px solid #8080804d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  transition: var(--transition-fast);
}

.experiencia .columna:hover {
  color: var(--white);
  background-color: #1b1b32;
}

.experiencia i {
  font-size: 2.5rem;
  color: var(--accent-color);
  background-color: #0a0a23;
  padding: 8px 19px;
  border-radius: 50%;
}

.experiencia-titulo {
  font-size: 25px;
  font-weight: bold;
  margin: 10px 0;
}

.badges-contenedor {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.badge-img {
  width: 50px;
}

/* ==================== DOCENCIA SECTION ==================== */
.docencia-section {
  position: relative;
  padding: 8rem 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
}

.docencia-section .container {
  position: relative;
  z-index: 1;
}

.docencia-section .owl-carousel .owl-item img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  margin: 0 auto;
}

.docencia-section .testimonial-box {
  color: var(--dark-text-color);
  text-align: center;
}

.docencia-section .author-test {
  margin-top: var(--spacing-sm);
}

.docencia-section .author {
  color: var(--dark-text-color);
  text-transform: uppercase;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
  display: block;
  font-size: 1.4rem;
}

.docencia-section .content-test {
  padding: var(--spacing-md) var(--spacing-sm);
}

.docencia-section .description {
  color: var(--light-background);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.description.lead {
  font-size: 1.35rem;
  font-weight: 300;
}

.docencia-section .custom-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.docencia-section .custom-link:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.docencia-section .w-date {
  color: var(--light-background);
  font-size: 0.9rem;
  font-style: italic;
}

.docencia-section .comit {
  font-size: 2rem;
  color: #0078ff;
  background-color: var(--white);
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  line-height: 1.6;
}

/* ==================== STATISTICS SECTION ==================== */
.counter-box {
  color: var(--white);
  text-align: center;
}

.counter-ico {
  margin-bottom: var(--spacing-sm);
}

.counter-ico .ico-circle {
  height: 60px;
  width: 60px;
  line-height: 1.8;
  box-shadow: 0 0 0 10px var(--accent-color);
}

.counter-num .counter {
  font-size: 2rem;
  margin-bottom: 0;
}

.ico-circle {
  height: 100px;
  width: 100px;
  font-size: 2rem;
  border-radius: 50%;
  line-height: 1.55;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 0 10px #e2e4e7;
  display: block;
}

/* ==================== PROJECTS SECTION ==================== */
.proyectos-recientes {
  padding: 40px;
}

.proyectos-recientes img {
  height: 100%;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  display: block;
  transition: var(--transition-fast);
}

.proyectos-contenedor {
  padding-top: 60px;
  margin-bottom: 40px;
}

.proyecto {
  position: relative;
}

.proyecto:hover img {
  opacity: 0.2;
}

.proyecto:hover .overlay {
  opacity: 1;
}

.overlay {
  transition: var(--transition-fast);
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.overlay p {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 0;
}

.overlay .iconos-contenedor {
  display: flex;
}

.overlay i {
  color: black;
  font-size: 60px;
  margin: 10px;
}

/* ==================== TESTIMONIALS / FORMACION ==================== */
.testimonials .owl-carousel .owl-item img {
  width: auto;
}

.testimonial-box {
  color: var(--white);
  text-align: center;
}

.testimonial-box .author-test {
  margin-top: var(--spacing-sm);
}

.testimonial-box .author-test img {
  margin: 0 auto;
}

.testimonial-box .author {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
  display: block;
  font-size: 1.4rem;
}

.testimonial-box .comit {
  font-size: 2rem;
  color: #0078ff;
  background-color: var(--white);
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  line-height: 1.6;
}

/* Owl Carousel Navigation */
.owl-theme .owl-dots {
  text-align: center;
  margin-top: 18px;
}

.owl-theme .owl-dots .owl-dot {
  display: inline-block;
}

.owl-theme .owl-dots .owl-dot span {
  width: 18px;
  height: 7px;
  margin: 5px 5px;
  background: var(--secondary-color);
  border: 0;
  display: block;
  transition: var(--transition-normal);
  cursor: pointer;
}

.owl-theme .owl-dots .owl-dot:hover span {
  background-color: var(--secondary-color);
}

.owl-theme .owl-dots .owl-dot.active span {
  background-color: var(--hover-color);
  width: 25px;
}

/* ==================== CONTACT SECTION ==================== */
.contactos {
  margin-top: var(--spacing-lg);
  padding: 5rem 0;
  color: rgb(190, 176, 176);
  background-size: cover;
}

.contactos .titulo {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--light-background);
}

.contactos .site-contacto {
  font-weight: bold;
  color: transparent;
  font-size: 2.3rem;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 6rem 0;
  position: relative;
  z-index: 1;
}

.icons a {
  margin: 5rem 3rem;
  text-decoration: none;
  color: #d22269;
  display: block;
  position: relative;
}

.icons a .layer {
  width: 7rem;
  height: 7rem;
  transition: transform 0.3s;
}

.icons a:hover .layer {
  transform: rotate(-35deg) skew(20deg);
}

.icons a .layer span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: 3px solid;
  border-radius: 5px;
  transition: var(--transition-normal);
}

.icons a .layer span.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  line-height: 55px;
}

.icons a:hover .layer span:nth-child(1) {
  opacity: 0.2;
}

.icons a:hover .layer span:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px, -5px);
}

.icons a:hover .layer span:nth-child(4) {
  opacity: 0.8;
  transform: translate(15px, -15px);
}

.icons a .text {
  position: absolute;
  left: 50%;
  bottom: -20px;
  opacity: 0;
  font-size: 2rem;
  font-weight: 600;
  transform: translateX(-50%);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  transition: bottom 0.3s ease, opacity 0.3s ease;
}

.icons a:hover .text {
  bottom: -50px;
  opacity: 1;
}

/* Contact Icons Colors */
.icons a:nth-child(1) .layer span,
.icons a:nth-child(1) .text {
  color: var(--gmail-color);
  border-color: var(--gmail-color);
}

.icons a:nth-child(1):hover .layer span:nth-child(1) {
  box-shadow: -1px 1px 3px var(--gmail-color);
}

.icons a:nth-child(2) .layer span,
.icons a:nth-child(2) .text {
  color: var(--whatsapp-color);
  border-color: var(--whatsapp-color);
}

.icons a:nth-child(2):hover .layer span:nth-child(1) {
  box-shadow: -1px 1px 3px var(--whatsapp-color);
}

.icons a:nth-child(3) .layer span,
.icons a:nth-child(3) .text {
  color: var(--instagram-color);
  border-color: var(--instagram-color);
}

.icons a:nth-child(4) .layer span,
.icons a:nth-child(4) .text {
  color: var(--linkedin-color);
  border-color: var(--linkedin-color);
}

/* Typed Text Colors */
.gmail-color {
  color: var(--gmail-color);
}

.whatsapp-color {
  color: var(--whatsapp-color);
}

.instagram-color {
  color: var(--instagram-color);
}

.linkedin-color {
  color: var(--linkedin-color);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
  position: fixed;
  display: none;
  background: #0078ff;
  color: var(--white);
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background var(--transition-normal);
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: var(--white);
}

.scrolltop-mf {
  position: relative;
  display: none;
}

.scrolltop-mf span {
  z-index: 999;
  position: fixed;
  width: 42px;
  height: 42px;
  background-color: #0078ff;
  opacity: 0.7;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  color: var(--white);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 50px;
  cursor: pointer;
  border-radius: 50%;
}

/* ==================== PRELOADER ==================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--white);
}

#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #0078ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (min-width: 577px) {
  .counter-box {
    margin-bottom: 1.8rem;
  }
}

@media (min-width: 768px) {
  .box-shadow-full {
    padding: var(--spacing-lg);
  }

  .navbar-b.navbar-trans .nav-item,
  .navbar-b.navbar-reduce .nav-item {
    padding-left: 10px;
  }

  .navbar-b.navbar-trans .nav-link::before,
  .navbar-b.navbar-reduce .nav-link::before {
    margin-left: 18px;
  }

  .intro .intro-title {
    font-size: 4.5rem;
  }

  .intro .intro-subtitle {
    font-size: 2.5rem;
  }

  .testimonial-box .description {
    padding: 0 5rem;
  }

  .docencia-section .description {
    padding: 0 var(--spacing-md);
  }
}

@media (min-width: 992px) {
  .testimonial-box .description {
    padding: 0 8rem;
  }

  .docencia-section .description {
    padding: 0 5rem;
  }
}

@media (min-width: 1200px) {
  .testimonial-box .description {
    padding: 0 13rem;
  }

  .docencia-section .description {
    padding: 0 8rem;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}

@media (max-width: 767px) {
  .icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 6rem 0;
  }

  .icons a {
    margin: var(--spacing-sm);
    flex: 1 1 auto;
    max-width: 100px;
  }
}