/*--------------------------------------------------------------
# Teramec Custom Effects
--------------------------------------------------------------*/

/* Animated gradient underline for section titles */
.section-title h2::after {
  width: 90px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-color), #5fa8dc);
  animation: underline-grow 1.2s ease-out;
}

@keyframes underline-grow {
  from { width: 0; opacity: 0; }
  to { width: 90px; opacity: 1; }
}

/* Hero gradient headline */
.hero h1 {
  background: linear-gradient(90deg, var(--heading-color) 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.hero .btn-get-started {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color), transparent 55%);
}

.hero .btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent-color), transparent 40%);
}

/* Service cards: glow + lift + icon spin on hover */
.services .service-item {
  border-top: 3px solid transparent;
  transition: all 0.4s ease;
}

.services .service-item:hover {
  border-top-color: var(--accent-color);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.services .service-item .icon i {
  transition: transform 0.5s ease, color 0.3s ease;
}

.services .service-item:hover .icon i {
  transform: rotate(-12deg) scale(1.15);
}

/* Steps images zoom */
.steps-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.steps-image img {
  transition: transform 0.6s ease;
}

.steps-item:hover .steps-image img {
  transform: scale(1.08);
}

/* Portfolio / Productos image zoom + overlay */
.portfolio .portfolio-item {
  overflow: hidden;
  border-radius: 10px;
}

.portfolio .portfolio-item img {
  transition: transform 0.6s ease;
}

.portfolio .portfolio-item:hover img {
  transform: scale(1.12);
}

/* Clients logos: grayscale to color on hover */
.clients .swiper-slide img {
  filter: grayscale(100%);
  opacity: 0.75;
}

.clients .swiper-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.12);
}

/* Gallery (servicios en acción) */
.teramec-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.teramec-gallery .gallery-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-6px);
}

.teramec-gallery .gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: brightness(0.92);
}

.teramec-gallery .gallery-item:hover img {
  transform: scale(1.12);
  filter: brightness(0.65);
}

.teramec-gallery .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 61, 0) 40%, rgba(22, 35, 61, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.teramec-gallery .gallery-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.teramec-gallery .gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transform: translate(-50%, -50%) scale(0.4) rotate(-30deg);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teramec-gallery .gallery-item:hover .gallery-zoom {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
}

.teramec-gallery .gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  transform: translateY(8px);
  opacity: 0.95;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.teramec-gallery .gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.teramec-gallery .gallery-caption h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.teramec-gallery .gallery-caption .bi {
  color: var(--accent-color);
  margin-right: 6px;
}

/* Skills bars accent gradient */
.skills .progress-bar {
  background: linear-gradient(90deg, var(--accent-color), #5fa8dc);
}

/* Why-us image accent frame */
.why-us-img img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/*--------------------------------------------------------------
# Hero real photo
--------------------------------------------------------------*/
.hero-img-real {
  position: relative;
}

.hero-photo {
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  width: 100%;
  max-height: 480px;
}

.hero-badge {
  position: absolute;
  left: 20px;
  bottom: -20px;
  background: var(--surface-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
  color: var(--accent-color);
  font-size: 28px;
}

.hero-badge strong {
  display: block;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 16px;
}

.hero-badge span {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/*--------------------------------------------------------------
# About Section - dynamic
--------------------------------------------------------------*/
.about-img-wrap {
  position: relative;
  padding: 20px 20px 20px 0;
}

.about-img-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), #5fa8dc);
  border-radius: 18px;
  transform: rotate(-4deg);
  z-index: 1;
}

.about-img {
  position: relative;
  z-index: 2;
  border-radius: 18px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img-wrap:hover .about-img {
  transform: translateY(-6px) rotate(1deg);
}

.about-badge {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 10px;
  background: var(--surface-color);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 260px;
}

.about-badge i {
  color: var(--accent-color);
  font-size: 26px;
  flex-shrink: 0;
}

.about-badge strong {
  display: block;
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 14px;
  line-height: 1.3;
}

.about-badge span {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.about-heading {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-heading span {
  color: var(--accent-color);
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  color: var(--heading-color);
}

.about-highlights li i {
  color: var(--accent-color);
  font-size: 18px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  color: var(--heading-color);
  font-weight: 700;
  font-size: 13px;
}

.cert-badge i {
  color: var(--accent-color);
  font-size: 16px;
}

.about-cards .service-item {
  border-top: 3px solid transparent;
}

.about-stats {
  padding: 35px 0 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.about-stats .stat-number {
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1.2;
}

.about-stats .stat-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  font-weight: 500;
}

/*--------------------------------------------------------------
# Reusable section tag / eyebrow
--------------------------------------------------------------*/
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Service icon circles
--------------------------------------------------------------*/
.service-item .icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 85%), color-mix(in srgb, var(--accent-color), transparent 65%));
  margin-bottom: 18px;
}

.service-item .icon i {
  margin: 0;
}

/*--------------------------------------------------------------
# Why-Us FAQ accent
--------------------------------------------------------------*/
.why-us .faq-container .faq-item {
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.why-us .faq-container .faq-item:hover,
.why-us .faq-container .faq-active {
  border-left-color: var(--accent-color);
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# Work Process - dynamic
--------------------------------------------------------------*/
.work-process .steps-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
}

.work-process .steps-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.work-process .steps-content .steps-number {
  background: linear-gradient(135deg, var(--accent-color), #5fa8dc);
  color: #fff;
}

.work-process .feature-item i {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Call To Action - dynamic
--------------------------------------------------------------*/
.call-to-action h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

@media (min-width: 1200px) {
  .call-to-action h3 {
    justify-content: flex-start;
  }
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
  color: var(--accent-color);
  font-size: 22px;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color), transparent 55%); }
  70% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent-color), transparent 100%); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color), transparent 100%); }
}

.call-to-action .cta-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-to-action .cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/*--------------------------------------------------------------
# Portfolio filters - pill style
--------------------------------------------------------------*/
.portfolio .portfolio-filters li {
  border-radius: 30px;
  transition: all 0.3s ease;
}

.portfolio .portfolio-filters li.filter-active,
.portfolio .portfolio-filters li:hover {
  background: var(--accent-color);
  color: #fff;
}

/*--------------------------------------------------------------
# Contact - dynamic cards
--------------------------------------------------------------*/
.contact .info-item {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact .info-item i {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50%;
}

.contact .info-wrap iframe {
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact .php-email-form {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.contact .php-email-form button[type=submit] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .php-email-form button[type=submit]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-color), transparent 55%);
}

/*--------------------------------------------------------------
# Footer - accents
--------------------------------------------------------------*/
.footer {
  border-top: 3px solid var(--accent-color);
}

.footer .footer-links ul li {
  transition: transform 0.25s ease;
}

.footer .footer-links ul li:hover {
  transform: translateX(6px);
}

.footer .footer-links ul li a {
  transition: color 0.25s ease;
}

/*--------------------------------------------------------------
# WhatsApp floating button
--------------------------------------------------------------*/
.whatsapp-btn {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 2.4s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Keep scroll-to-top above the WhatsApp button */
.scroll-top.active {
  bottom: 82px;
}

/*--------------------------------------------------------------
# Jobs page (trabajos.html)
--------------------------------------------------------------*/
.jobs-intro {
  text-align: center;
  padding-bottom: 10px;
}

.jobs-intro .about-heading {
  font-size: 28px;
}

.jobs-intro p {
  max-width: 760px;
  margin: 0 auto;
}

.job-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.job-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-6px);
}

.job-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  filter: brightness(0.92);
}

.job-card:hover img {
  transform: scale(1.12);
  filter: brightness(0.6);
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 61, 0) 35%, rgba(22, 35, 61, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.job-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.job-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(3px);
}

.job-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.4s ease;
}

.job-card:hover .job-caption {
  transform: translateY(0);
}

.job-caption h4 {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.job-caption p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Header - always legible, glass effect
--------------------------------------------------------------*/
.index-page .header {
  --background-color: rgba(22, 35, 61, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.index-page.scrolled .header {
  --background-color: rgba(17, 27, 48, 0.96);
}

.header .logo img {
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  max-height: 68px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.header .logo:hover img {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.footer-about .logo img {
  max-height: 60px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  margin-right: 10px;
}

@media (min-width: 1200px) {
  .navmenu > ul > li > a {
    position: relative;
  }

  .navmenu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 12px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .navmenu > ul > li:hover > a::after,
  .navmenu > ul > li > a.active::after {
    transform: scaleX(1);
  }
}

/*--------------------------------------------------------------
# Logo watermark on real photos (signature)
--------------------------------------------------------------*/
.hero-img-real,
.about-img-wrap,
.job-card,
.portfolio .portfolio-item,
.teramec-gallery .gallery-item,
.steps-image {
  position: relative;
}

.hero-img-real::after,
.about-img-wrap::after,
.job-card::after,
.portfolio .portfolio-item::after,
.teramec-gallery .gallery-item::after,
.steps-image::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 100px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  background-image: url("../img/logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68% auto;
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 4;
  pointer-events: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-img-real:hover::after,
.about-img-wrap:hover::after,
.job-card:hover::after,
.portfolio .portfolio-item:hover::after,
.teramec-gallery .gallery-item:hover::after,
.steps-item:hover .steps-image::after {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* Reposition the watermark to a free corner on cards that already have badges/captions */
.hero-img-real::after,
.about-img-wrap::after {
  right: auto;
  bottom: auto;
  left: 14px;
  top: 14px;
}

.portfolio .portfolio-item::after {
  bottom: auto;
  top: 14px;
}
