/* =============================================
   JC Arquitecto — Full Page Theme
   Minimalista · Arquitectura · Mobile First
   Bootstrap 5 · AOS.js
   ============================================= */

:root {
  --jcarq-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --jcarq-font-heading: 'Playfair Display', Georgia, serif;
  --jcarq-dark: #1a1a1a;
  --jcarq-light: #f8f9fa;
  --jcarq-accent: #c9a96e;
  --jcarq-white: #ffffff;
  --jcarq-dark-bg: #111111;
  --jcarq-nav-height: 70px;
}

/* ====== ESTILO GLOBAL DE LINKS (anula Bootstrap) ====== */
a, a:link, a:visited, a:active, a:focus {
  color: var(--jcarq-dark);
  text-decoration: none !important;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--jcarq-accent);
  text-decoration: underline !important;
}

/* Navbar */
.nav-link, .nav-link:link, .nav-link:visited {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
.nav-link:hover, .nav-link:focus {
  color: white !important;
}

/* Botones */
a.btn, a.btn:link, a.btn:visited, a.btn:active {
  text-decoration: none !important;
}
a.btn-outline-dark:hover,
a.btn-outline-dark:focus {
  color: white !important;
}

/* Contenido de posts y páginas (hereda editor de WP) */
.entry-content a,
.single-content a,
.page-content a,
.category-archive a,
.post-content a {
  color: var(--jcarq-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.entry-content a:hover,
.single-content a:hover,
.page-content a:hover,
.category-archive a:hover,
.post-content a:hover {
  color: #b0884a;
  text-decoration-thickness: 2px;
}

/* Hero slider — mantener texto blanco */
.hero-slider-section a,
.hero-slider-section a:link,
.hero-slider-section a:visited,
.hero-slider-section a:hover {
  color: white !important;
}
.hero-slider-section .slide-caption h1,
.hero-slider-section .slide-caption p {
  color: white !important;
}

/* ====== BASE ====== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--jcarq-font);
  color: var(--jcarq-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--jcarq-font-heading);
  letter-spacing: -0.02em;
}
img {
  max-width: 100%;
  height: auto;
}

/* ====== FULL PAGE SECTIONS ====== */
.fullpage-section {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section-light {
  background: var(--jcarq-light);
}
.section-dark {
  background: var(--jcarq-dark-bg);
}

/* ====== NAVBAR ====== */
.navbar {
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: transparent !important;
}
.navbar.navbar-shrink {
  background: rgba(17,17,17,0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar .nav-link {
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.5rem 1rem !important;
  color: rgba(255,255,255,0.8) !important;
  transition: color 0.3s;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--jcarq-accent) !important;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--jcarq-accent);
  transition: width 0.3s;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}
.brand-text {
  font-family: var(--jcarq-font-heading);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: white !important;
  font-size: 1.5rem;
}
.navbar.navbar-solid {
  background: rgba(17,17,17,0.95) !important;
  backdrop-filter: blur(10px);
}
.navbar-toggler {
  color: white !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ====== HERO SLIDER ====== */
.hero-slider-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
}
.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
  height: 100%;
}
.hero-slider-section .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slider-section .hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-slider-section .hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 80px;
}
.hero-slider-section .carousel-indicators {
  z-index: 3;
}
.hero-slider-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  margin: 0 6px;
  transition: all 0.3s;
}
.hero-slider-section .carousel-indicators button.active {
  background: white;
  border-color: white;
}
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-slider-section:hover .carousel-control-prev,
.hero-slider-section:hover .carousel-control-next {
  opacity: 1;
}
.hero-title {
  font-family: var(--jcarq-font-heading);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--jcarq-white);
}
.hero-subtitle {
  font-weight: 200 !important;
  max-width: 600px;
  margin: 0 auto;
}
.hero-section .btn {
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.9rem 2.5rem;
  transition: all 0.4s;
}
.hero-section .btn-light {
  color: var(--jcarq-dark);
  border: 1px solid var(--jcarq-white);
}
.hero-section .btn-light:hover {
  background: transparent;
  color: var(--jcarq-white);
}
.hero-section .btn-outline-light:hover {
  background: var(--jcarq-white);
  color: var(--jcarq-dark);
}

/* ====== SCROLL INDICATOR ====== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: block;
  position: relative;
}
.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ====== SECTION TITLE ====== */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--jcarq-accent);
  margin: 0.8rem auto 0;
}
.section-dark .section-title::after {
  background: var(--jcarq-accent);
}

/* ====== PROJECT CARDS ====== */
.project-card {
  transition: all 0.5s ease;
  cursor: pointer;
  height: 100%;
}
.project-card .project-info {
  min-height: 80px;
}
.project-card:hover {
  transform: translateY(-8px);
}
.project-img-wrap {
  overflow: hidden;
  position: relative;
}
.project-img-wrap img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: all 0.6s ease;
  min-height: 260px;
}
.project-card:hover .project-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.project-info h5 a {
  position: relative;
  display: inline-block;
}
.project-info h5 a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--jcarq-dark);
  transition: width 0.3s;
}
.project-card:hover .project-info h5 a::after {
  width: 100%;
}

/* ====== SERVICE ITEMS ====== */
.service-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  transition: all 0.4s ease;
  background: rgba(255,255,255,0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-item:hover {
  border-color: var(--jcarq-accent);
  background: rgba(255,255,255,0.06);
  transform: translateY(-5px);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--jcarq-accent);
  display: block;
  margin-bottom: 1rem;
}

/* ====== ABOUT ====== */
.about-img-wrap {
  overflow: hidden;
  position: relative;
}
.about-img-wrap img {
  filter: grayscale(50%);
  transition: all 0.6s;
  width: 100%;
}
.about-img-wrap:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.counter {
  font-family: var(--jcarq-font);
  font-weight: 300;
  font-size: 2.5rem;
  color: var(--jcarq-dark);
}

/* ====== CONTACT ====== */
.contact-info i {
  color: var(--jcarq-accent) !important;
}
.contact-form-wrap {
  border: none;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}
.contact-form-wrap .wpcf7-form input,
.contact-form-wrap .wpcf7-form textarea {
  border-radius: 0 !important;
  border: 1px solid #dee2e6;
  padding: 0.8rem 1rem;
  font-weight: 300;
  font-size: 0.9rem;
}
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  border-color: var(--jcarq-dark);
  box-shadow: none;
}
.contact-form-wrap .wpcf7-form .wpcf7-submit {
  background: var(--jcarq-dark);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s;
  width: 100%;
}
.contact-form-wrap .wpcf7-form .wpcf7-submit:hover {
  background: var(--jcarq-accent);
}

/* ====== BOTONES FLOTANTES ====== */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 999;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.1);
  color: white;
}

/* Subir */
.scroll-top-btn {
  background: #c9a96e;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: #b8954f;
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}

/* WhatsApp */
.whatsapp-float {
  background: #25d366;
}
.whatsapp-float:hover {
  background: #1da851;
  box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ====== SINGLE POST & PAGE ====== */
.site-main.page-content {
  padding-top: 100px;
  min-height: 100vh;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 991px) {
  .navbar.fixed-top {
    position: relative;
    background: #111 !important;
  }
  .navbar.navbar-solid {
    background: #111 !important;
  }
  .navbar-collapse {
    background: rgba(17,17,17,0.98);
    padding: 1rem;
    border-radius: 0;
    margin-top: 0.5rem;
  }
  .hero-slider-section {
    height: 70vh;
    min-height: 400px;
  }
  .hero-slider-section .carousel-item {
    padding-top: 0;
  }
  .fullpage-section {
    min-height: auto;
    padding: 80px 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    min-height: 100vh;
  }
  .about-img-wrap {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-section .btn {
    font-size: 0.75rem;
    padding: 0.8rem 1.8rem;
  }
  .fullpage-section {
    padding: 60px 0;
  }
  .project-img-wrap img {
    height: 200px;
  }
  .service-item {
    padding: 1.5rem !important;
  }
  .counter {
    font-size: 2rem;
  }
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ====== PAGE LOADER (SPINNER) ====== */
body {
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.page-loaded {
  opacity: 1;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top: 2px solid #c9a96e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ====== SINGLE PROYECTO ====== */
.single-hero {
  height: 65vh;
  min-height: 400px;
  max-height: 700px;
}
.single-hero img {
  object-fit: cover;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.single-hero-content {
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.single-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
}
.single-content p {
  margin-bottom: 1.5rem;
}

/* Galería */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-img-wrap {
  overflow: hidden;
  position: relative;
  height: 240px;
}
.gallery-img-wrap img {
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(30%);
}
.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.08);
  filter: grayscale(0%);
}
.gallery-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
}

/* Navegación entre posts */
.single-proyecto .nav-links a {
  color: var(--jcarq-dark);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}
.single-proyecto .nav-links a:hover {
  color: var(--jcarq-accent);
}

/* ====== CATEGORY ARCHIVE ====== */
.category-archive .service-item {
  border: 1px solid #eee;
  border-radius: 0;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.category-archive .service-item:hover {
  border-color: var(--jcarq-accent);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.category-archive .service-icon {
  font-size: 2.5rem;
  color: var(--jcarq-accent);
  display: block;
  margin-bottom: 1rem;
}
.category-archive .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  border: 1px solid #dee2e6;
  color: var(--jcarq-dark);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 300;
}
.category-archive .page-numbers:hover,
.category-archive .page-numbers.current {
  background: var(--jcarq-dark);
  color: white;
  border-color: var(--jcarq-dark);
}

/* ====== UTILITY ====== */
.text-white-50 {
  color: rgba(255,255,255,0.6) !important;
}

/* ====== BOTONERA COMPARTIR ====== */
.share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  margin-top: 1rem;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--jcarq-dark) !important;
  text-decoration: none !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}
.share-icon:hover {
  background: var(--jcarq-accent);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.3);
}
.share-icon:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.3);
}
.share-copy .copied-msg {
  display: none;
  font-size: 0.65rem;
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--jcarq-dark);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
}
.share-copy.copied .copied-msg {
  display: block;
}
.share-copy.copied {
  background: #28a745;
  color: white !important;
}

/* ====== TESTIMONIOS ====== */
.testimonial-carousel {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
}
.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.testimonial-card.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.testimonial-stars .star-filled {
  color: #f4c430;
  font-size: 1.1rem;
  margin: 0 1px;
}
.testimonial-stars .star-empty {
  color: #ddd;
  font-size: 1.1rem;
  margin: 0 1px;
}
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  position: relative;
  padding: 0 1rem;
}
.testimonial-text::before {
  content: '\201c';
  font-size: 3rem;
  color: var(--jcarq-accent);
  font-family: Georgia, serif;
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}
.testimonial-avatar img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.testimonial-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
  background: var(--jcarq-accent);
  transform: scale(1.2);
}

/* Logos clientes */
.client-logo-item {
  text-align: center;
  opacity: 0.7;
  transition: all 0.3s;
  flex: 0 0 auto;
}
.client-logo-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.tracking-wider {
  letter-spacing: 0.1em;
}
