/*
Theme Name: Robhert Portfolio
Theme URI: http://www.robhert.com
Description: Portfolio profesional para diseñador gráfico y emprendedor cultural
Version: 1.0
Author: Robhert Pimentel
Author URI: http://www.robhert.com
Tags: portfolio, diseño, textpattern
*/

/* -----------------------------------------------------------------------------
   Estilos base para la adaptación de WordPress a TextPattern
----------------------------------------------------------------------------- */

/* LÍNEAS DE FONDO */
.bg-lines {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-line-1, .bg-line-2, .bg-line-3, .bg-line-4 {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  background-color: rgba(0, 0, 0, 0.08);
}

.bg-line-1 {
  left: 25%;
}

.bg-line-2 {
  left: 50%;
}

.bg-line-3 {
  left: 75%;
}

.bg-line-4 {
  left: 100%;
}

/* TIPOGRAFÍA */
.display-2 {
  font-size: 4rem;
  line-height: 1.2;
}

.stroke-text {
  -webkit-text-stroke: 1px #000;
  color: transparent;
}

.font-family-mono {
  font-family: 'Roboto Mono', monospace;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semi-bold {
  font-weight: 600;
}

.line-height-100 {
  line-height: 1;
}

.mono-heading {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: #666;
}

/* MENÚ TOGGLE */
.toggle-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  padding: 30px;
  background-color: #fff;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.toggle-menu.active {
  right: 0;
}

.toggle-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-close:hover {
  transform: rotate(90deg);
}

.menu-dots {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  margin-left: 15px;
}

.menu-dots span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  background-color: #000;
  border-radius: 50%;
}

.menu-dots span::before,
.menu-dots span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #000;
  border-radius: 50%;
}

.menu-dots span::before {
  top: -10px;
  left: 0;
}

.menu-dots span::after {
  bottom: -10px;
  left: 0;
}

/* NAVEGACIÓN LATERAL */
.nav-wrapper {
  position: sticky;
  top: 0;
  padding-top: 20px;
}

.section-nav {
  padding-top: 20px;
}

.nav {
  list-style-type: none;
  padding-left: 0;
}

.nav-item {
  margin-bottom: 15px;
}

.nav-circle {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #000;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #666;
}

.nav-link:hover .nav-circle, .nav-link.active .nav-circle {
  background-color: #000;
}

.nav-mobile {
  display: none;
  list-style-type: none;
  padding-left: 0;
}

@media (max-width: 991px) {
  .nav {
    display: none;
  }
  
  .nav-mobile {
    display: block;
    text-align: center;
  }
  
  .nav-mobile .nav-item {
    display: inline-block;
    margin: 0 10px;
  }
}

/* SECCIONES */
.section-box {
  margin-bottom: 80px;
  position: relative;
}

.title-heading {
  position: relative;
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1;
}

.title-heading::before {
  content: attr(data-backdrop-text);
  position: absolute;
  left: -5px;
  top: -15px;
  font-size: 32px;
  opacity: 0.05;
  z-index: -1;
  white-space: nowrap;
}

/* HERO/ABOUT SECTION */
.hero-avatar {
  position: relative;
  margin-bottom: 30px;
}

.hero-avatar img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

.hero-avatar-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.typer {
  color: #fff;
}

.list-inline-pills {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
}

.list-inline-pills li {
  background-color: #f5f5f5;
  padding: 5px 15px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

/* PORTFOLIO SECTION */
.portfolio-grid {
  position: relative;
}

.filter ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.filter ul li {
  margin-right: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter ul li:hover, .filter ul li.active {
  color: #666;
}

.filter ul li.ver-mas {
  margin-left: auto;
}

.portfolio-box {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-box:hover {
  transform: translateY(-10px);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.portfolio-box:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-box:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 5px;
  color: #000;
  font-size: 18px;
  transition: all 0.3s ease;
}

.portfolio-overlay-content a:hover {
  background-color: #000;
  color: #fff;
}

.portfolio-content {
  padding: 20px;
  background-color: #fff;
}

.portfolio-content h5 {
  margin-bottom: 5px;
}

.portfolio-content a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-content a:hover {
  color: #666;
}

/* SERVICIOS SECTION */
.services-list {
  list-style-type: none;
  padding-left: 0;
}

.services-item {
  display: flex;
  align-items: flex-start;
  padding: 30px;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  position: relative;
  transition: background-color 0.3s ease;
}

.services-item:hover {
  background-color: #f0f0f0;
}

.services-number {
  position: absolute;
  top: -15px;
  left: 30px;
  z-index: 1;
}

.services-title {
  margin-right: 30px;
  min-width: 180px;
}

.services-title i {
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
}

.icon-xl i {
  font-size: 28px;
}

/* CLIENTES SECTION */
.clients-swiper {
  padding: 20px 0;
}

.client-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.client-box:hover {
  background-color: #f0f0f0;
}

.client-box img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.client-box:hover img {
  filter: grayscale(0);
}

/* BLOG SECTION */
.post-box {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.post-box:hover {
  transform: translateY(-10px);
}

.post-img {
  position: relative;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.post-box:hover .post-img img {
  transform: scale(1.1);
}

.post-time {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #000;
  color: #fff;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
}

.post-content {
  padding: 20px;
  background-color: #fff;
}

.post-meta {
  margin-bottom: 10px;
}

.list-inline-dots {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.list-inline-dots li {
  position: relative;
  padding-right: 15px;
  margin-right: 10px;
}

.list-inline-dots li:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: 0;
}

.button-text {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.button-text i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.button-text:hover {
  color: #666;
}

.button-text:hover i {
  transform: translateX(5px);
}

/* CONTACTO SECTION */
.contact-form {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #000;
  outline: none;
}

.button {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.button:hover {
  background-color: #000;
  color: #fff;
}

.button-sm {
  padding: 8px 20px;
  font-size: 12px;
}

.button-outline {
  background-color: transparent;
  border: 1px solid #000;
}

/* MAPA */
.gmap {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.gmap-sm {
  height: 300px;
}

.border-radius {
  border-radius: 10px;
}

.box-shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-content {
  width: 80%;
  max-width: 800px;
}

.search-form {
  position: relative;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 20px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
  border-bottom-color: #fff;
  outline: none;
}

.search-form button {
  position: absolute;
  right: 0;
  top: 20px;
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.close-search {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.close-search::before,
.close-search::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 0;
}

.close-search::before {
  transform: rotate(45deg);
}

.close-search::after {
  transform: rotate(-45deg);
}

/* SEARCH RESULTS */
.search-result-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.search-result-item h4 {
  margin-bottom: 10px;
}

.search-result-item h4 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-item h4 a:hover {
  color: #666;
}

.search-result-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.search-result-date,
.search-result-category {
  margin-right: 15px;
}

.search-result-excerpt {
  margin-bottom: 15px;
}

.search-result-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.search-result-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.search-result-link:hover {
  color: #666;
}

.search-result-link:hover i {
  transform: translateX(5px);
}

/* PAGINACIÓN */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
  background-color: #000;
  color: #fff;
}

/* PROYECTO INDIVIDUAL */
.project-meta {
  margin-bottom: 30px;
}

.project-info h5 {
  font-weight: 600;
  margin-bottom: 5px;
}

.project-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.project-gallery {
  margin-top: 40px;
}

.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.project-navigation,
.post-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.nav-direction {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.nav-title {
  font-weight: 500;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 991px) {
  .display-2 {
    font-size: 3rem;
  }
  
  .toggle-menu {
    width: 280px;
  }
  
  .services-item {
    flex-direction: column;
  }
  
  .services-title {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .display-2 {
    font-size: 2.5rem;
  }
  
  .post-time {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .list-inline-dots {
    flex-direction: column;
  }
  
  .list-inline-dots li {
    margin-bottom: 5px;
  }
  
  .list-inline-dots li:not(:last-child)::after {
    display: none;
  }
  
  .filter ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter ul li {
    white-space: nowrap;
  }
}

/* UTILIDADES ADICIONALES PARA TEXTPATTERN */
.txp-search-result-count {
  margin-bottom: 20px;
  font-style: italic;
}

/* Estilos para comentarios */
.comments-wrapper {
  margin-top: 40px;
}

.comments-list {
  list-style: none;
  padding-left: 0;
}

.comments-list li {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  font-size: 12px;
  color: #666;
  margin-left: 10px;
}

.comment-text {
  margin-top: 10px;
}