/*--------------------------------------------------------------
# Variables de fuentes y colores
--------------------------------------------------------------*/
:root {
  /* Fuentes */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;

  /* Paleta global */
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #21413c;
  --accent-color: #0a74ee;
  --surface-color: #faf6f6fa;
  --contrast-color: #ffffff;

  /* Navegación */
  --nav-color: #212529;
  --nav-hover-color: #1bac91;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #1bac91;

  /* UX Scroll */
  --header-height: 92px; /* Ajusta según alto real del header */
}

/* Paletas reutilizables */
.light-background {
  --background-color: #f2f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# Tipografías
--------------------------------------------------------------*/
/* Fuente Quantum Latin Rounded (OTF) */
@font-face {
  font-family: 'QuantumLatinRounded';
  src: url('../fonts/quantum/Quantum Latin Rounded Bold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Usar solo cuando quieras esa tipografía */
.font-policuidado {
  font-family: 'QuantumLatinRounded', sans-serif !important;
  font-weight: 700; /* Cambia a 400 si usas la Regular */
}

/*--------------------------------------------------------------
# Estilos generales
--------------------------------------------------------------*/
html { scroll-behavior: smooth; }

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# PHP Email Form (mensajes)
--------------------------------------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #0c0c0c;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #070707;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Encabezado global
--------------------------------------------------------------*/
.header {
  --background-color: #ffffff;
  --default-color: #212529; /* Legibilidad en header */
  --heading-color: #0a0a0a;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo { line-height: 1; }

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
}

.scrolled .header {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.05);
  --background-color: #ffffff;
}

/*--------------------------------------------------------------
# Menú de navegación
--------------------------------------------------------------*/
/* Desktop */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }

  .navmenu ul {
    margin: 0; padding: 0;
    display: flex; list-style: none; align-items: center;
  }

  .navmenu li { position: relative; }

  .navmenu>ul>li { white-space: nowrap; padding: 15px 14px; }
  .navmenu>ul>li:last-child { padding-right: 0; }

  .navmenu a, .navmenu a:focus {
    color: color-mix(in srgb, var(--nav-color), transparent 20%);
    font-size: 15px; padding: 0 2px;
    font-family: var(--nav-font); font-weight: 400;
    display: flex; align-items: center; justify-content: space-between;
    white-space: nowrap; transition: 0.3s; position: relative;
  }

  .navmenu a i, .navmenu a:focus i {
    font-size: 12px; line-height: 0; margin-left: 5px; transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute; height: 2px; bottom: -6px; left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden; width: 0; transition: all 0.3s ease-in-out;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before { visibility: visible; width: 100%; }

  .navmenu li:hover>a,
  .navmenu .active, .navmenu .active:focus { color: var(--nav-color); }

  .navmenu .dropdown ul {
    margin: 0; padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block; position: absolute; visibility: hidden;
    left: 14px; top: 130%; opacity: 0; transition: 0.3s;
    border-radius: 4px; z-index: 99;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
  }

  .navmenu .dropdown ul li { min-width: 200px; }

  .navmenu .dropdown ul a {
    padding: 10px 20px; font-size: 15px; text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i { font-size: 12px; }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a { color: var(--nav-dropdown-hover-color); }

  .navmenu .dropdown:hover>ul { opacity: 1; top: 100%; visibility: visible; }

  .navmenu .dropdown .dropdown ul { top: 0; left: -90%; visibility: hidden; }
  .navmenu .dropdown .dropdown:hover>ul { opacity: 1; top: 0; left: -100%; visibility: visible; }
}

/* Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color); font-size: 28px; line-height: 0;
    margin-right: 10px; cursor: pointer; transition: color 0.3s;
  }

  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul {
    display: none; list-style: none; position: absolute;
    inset: 60px 20px 20px 20px; padding: 10px 0; margin: 0;
    border-radius: 6px; background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none; overflow-y: auto; transition: 0.3s; z-index: 9998;
  }

  .navmenu a, .navmenu a:focus {
    color: var(--nav-dropdown-color); padding: 10px 20px;
    font-family: var(--nav-font); font-size: 17px; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
    white-space: nowrap; transition: 0.3s;
  }

  .navmenu a i, .navmenu a:focus i {
    font-size: 12px; line-height: 0; margin-left: 5px;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s; background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover, .navmenu a:focus i:hover {
    background-color: var(--accent-color); color: var(--contrast-color);
  }

  .navmenu a:hover, .navmenu .active, .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i, .navmenu .active:focus i {
    background-color: var(--accent-color); color: var(--contrast-color); transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static; display: none; z-index: 99; padding: 10px 0; margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color); transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul { background-color: rgba(33,37,41,0.1); }

  .navmenu .dropdown>.dropdown-active { display: block; background-color: rgba(33,37,41,0.03); }

  .mobile-nav-active { overflow: hidden; }
  .mobile-nav-active .mobile-nav-toggle {
    color: #fff; position: absolute; font-size: 32px; top: 15px; right: 15px; margin-right: 0; z-index: 9999;
  }
  .mobile-nav-active .navmenu { position: fixed; overflow: hidden; inset: 0; background: rgba(33,37,41,0.8); transition: 0.3s; }
  .mobile-nav-active .navmenu>ul { display: block; }
}

/*--------------------------------------------------------------
# Pie de página global
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo { line-height: 1; margin-bottom: 25px; }

.footer .footer-about .logo img { max-height: 40px; margin-right: 6px; }

.footer .footer-about .logo span {
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
  font-family: var(--heading-font); color: var(--heading-color);
}

.footer .footer-about p { font-size: 14px; font-family: var(--heading-font); }

.footer .social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px; color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px; transition: 0.3s;
}

.footer .social-links a:hover { color: var(--accent-color); border-color: var(--accent-color); }

.footer h4 { font-size: 16px; font-weight: bold; position: relative; padding-bottom: 12px; }

.footer .footer-links { margin-bottom: 30px; }

.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }

.footer .footer-links ul i {
  padding-right: 2px; font-size: 12px; line-height: 0; color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0; display: flex; align-items: center;
}

.footer .footer-links ul li:first-child { padding-top: 0; }

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block; line-height: 1;
}

.footer .footer-links ul a:hover { color: var(--accent-color); }

.footer .footer-contact p { margin-bottom: 5px; }

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px; margin-bottom: 15px; padding: 6px 8px;
  position: relative; border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex; background-color: var(--background-color); transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within { border-color: var(--accent-color); }

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0; padding: 4px; width: 100%;
  background-color: var(--background-color); color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible { outline: none; }

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0; font-size: 16px; padding: 0 20px; margin: -7px -8px -7px 0;
  background: var(--accent-color); color: var(--contrast-color);
  transition: 0.3s; border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p { margin-bottom: 0; }
.footer .credits { margin-top: 6px; font-size: 13px; }

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed; inset: 0; z-index: 999999; overflow: hidden;
  background: var(--background-color); transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed; top: calc(50% - 30px); left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%; width: 60px; height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

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

/*--------------------------------------------------------------
# Botón Scroll Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed; visibility: hidden; opacity: 0;
  right: 15px; bottom: 15px; z-index: 99999;
  background-color: var(--accent-color); width: 40px; height: 40px;
  border-radius: 4px; transition: all 0.4s;
}

.scroll-top i { font-size: 24px; color: var(--contrast-color); line-height: 0; }

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active { visibility: visible; opacity: 1; }

/*--------------------------------------------------------------
# AOS: desactivar delay en móviles
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/*--------------------------------------------------------------
# Títulos & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color); background-color: var(--background-color);
  padding: 160px 0 60px 0; text-align: center; position: relative;
  scroll-margin-top: var(--header-height);
}

.page-title h1 { font-size: 42px; font-weight: 700; margin-bottom: 10px; }

.page-title .breadcrumbs ol {
  display: flex; flex-wrap: wrap; list-style: none; justify-content: center;
  padding: 0; margin: 0; font-size: 16px; font-weight: 400;
}

.page-title .breadcrumbs ol li+li { padding-left: 10px; }

.page-title .breadcrumbs ol li+li::before {
  content: "/"; display: inline-block; padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Secciones globales
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color); background-color: var(--background-color);
  padding: 60px 0; scroll-margin-top: var(--header-height); overflow: clip;
}

@media (max-width: 1199px) {
  section, .section { scroll-margin-top: var(--header-height); }
}

/*--------------------------------------------------------------
# Título de sección
--------------------------------------------------------------*/
.section-title {
  text-align: center; padding-bottom: 60px; position: relative;
}

.section-title h2 {
  font-size: 32px; font-weight: 300; margin-bottom: 15px;
}

.section-title p { margin-bottom: 0; }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  width: 100%; min-height: 100vh; position: relative; padding: 80px 0;
  display: flex; align-items: center; justify-content: center;
}

.hero img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}

.hero:before {
  content: ""; background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute; inset: 0; z-index: 2;
}

.hero .container { position: relative; z-index: 3; }

.hero h2 { margin: 0; font-size: 48px; font-weight: 700; }
.hero p { margin: 10px 0 0 0; font-size: 24px; color: var(--heading-color); }

.hero .btn-get-started {
  color: var(--default-color); font-weight: 400; font-size: 16px; letter-spacing: 1px;
  display: inline-block; padding: 8px 40px; margin: 30px 0 0 0; border-radius: 4px;
  transition: 0.5s; border: 2px solid color-mix(in srgb, var(--default-color), transparent 50%);
}

.hero .btn-get-started:hover {
  color: var(--contrast-color); background: var(--accent-color); border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 18px; }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .about-content h3 { font-weight: 700; font-size: 26px; }

.about .about-content ul { list-style: none; padding: 0; }
.about .about-content ul li {
  display: flex; align-items: flex-start; margin-bottom: 35px;
}
.about .about-content ul li:first-child { margin-top: 35px; }

.about .about-content ul i {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 64px; font-size: 32px; color: #fff; background: var(--accent-color);
  margin-right: 15px; line-height: 0; border-radius: 5px;
}

.about .about-content ul h4 { font-size: 18px; font-weight: 600; }
.about .about-content ul p { font-size: 15px; }
.about .about-content p:last-child { margin-bottom: 0; }

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.cards .card {
  background-color: transparent; color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 40px; margin: -1px; border-radius: 0;
}

.cards .card span { display: block; font-size: 24px; font-weight: 400; color: var(--accent-color); }

.cards .card h4 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-size: 24px; font-weight: 400; margin: 20px 0;
}

.cards .card p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 15px; margin: 0;
}

/*--------------------------------------------------------------
# Tabs
--------------------------------------------------------------*/
.tabs .nav-tabs { border: 0; }
.tabs .nav-item { width: 100%; margin-bottom: 15px; }
.tabs .nav-item:last-child { margin-bottom: 0; }

.tabs .nav-link {
  color: var(--heading-color); border: 0; padding: 30px; transition: 0.3s;
  border-radius: 10px; display: flex; cursor: pointer;
}

.tabs .nav-link i {
  background-color: var(--surface-color); color: var(--accent-color);
  display: flex; align-items: center; justify-content: center;
  margin-right: 20px; width: 48px; height: 48px; font-size: 22px; flex-shrink: 0;
  border-radius: 50px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs .nav-link h4 { font-size: 20px; font-weight: 600; margin: 0 0 10px 0; transition: 0.3s; }
.tabs .nav-link p { font-size: 15px; margin: 0; }

.tabs .nav-link:hover { background: color-mix(in srgb, var(--accent-color), transparent 96%); }
.tabs .nav-link.active { background: color-mix(in srgb, var(--accent-color), transparent 96%); color: var(--default-color); }

.tabs .tab-pane img { border-radius: 15px; }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services { --background-color: color-mix(in srgb, var(--accent-color), transparent 97%); }

.services .service-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  height: 100%; padding: 30px; transition: 0.3s; border-radius: 10px; display: flex;
}

.services .service-item .icon {
  font-size: 32px; border-radius: 10px; position: relative; margin-right: 25px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; flex-shrink: 0;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 25%);
  font-weight: 700; font-size: 22px; transition: 0.3s;
}

.services .service-item p {
  margin-bottom: 0; color: color-mix(in srgb, var(--default-color), transparent 40%); transition: 0.3s;
}

.services .service-item .read-more { display: inline-flex; align-items: center; margin-top: 10px; transition: 0.3s; font-size: 14px; }
.services .service-item .read-more i { margin-left: 10px; }

.services .service-item.item-cyan .icon { color: #0dcaf0; border: 1px solid #0dcaf0; background: rgba(13,202,240,0.1); }
.services .service-item.item-orange .icon { color: #fd7e14; border: 1px solid #fd7e14; background: rgba(253,126,20,0.1); }
.services .service-item.item-teal .icon { color: #20c997; border: 1px solid #20c997; background: rgba(32,201,151,0.1); }
.services .service-item.item-red .icon { color: #df1529; border: 1px solid #df1529; background: rgba(223,21,4,0.1); }
.services .service-item.item-indigo .icon { color: #6610f2; border: 1px solid #6610f2; background: rgba(102,16,242,0.1); }
.services .service-item.item-pink .icon { color: #f3268c; border: 1px solid #f3268c; background: rgba(243,38,140,0.1); }

.services .service-item:hover { box-shadow: 0 2px 25px rgba(0,0,0,0.1); }
.services .service-item:hover h3 { color: var(--heading-color); }
.services .service-item:hover p { color: color-mix(in srgb, var(--default-color), transparent 10%); }

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider { overflow: hidden; }

.testimonials .testimonial-item { box-sizing: content-box; min-height: 320px; }

.testimonials .testimonial-item .testimonial-img {
  width: 90px; border-radius: 50%; margin: -40px 0 0 40px; position: relative; z-index: 2;
  border: 6px solid var(--background-color);
}

.testimonials .testimonial-item h3 { font-size: 18px; font-weight: bold; margin: 10px 0 5px 45px; }
.testimonials .testimonial-item h4 {
  font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 20%); margin: 0 0 0 45px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%); font-size: 26px; line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left { display: inline-block; left: -5px; position: relative; }
.testimonials .testimonial-item .quote-icon-right { display: inline-block; right: -5px; position: relative; top: 10px; transform: scale(-1, -1); }

.testimonials .testimonial-item p {
  font-style: italic; margin: 0 15px; padding: 20px 20px 60px;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  border-radius: 6px; position: relative; z-index: 1;
}

.testimonials .swiper-wrapper { height: auto; }

.testimonials .swiper-pagination { margin-top: 20px; position: relative; }

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px; height: 12px; background-color: var(--background-color); opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active { background-color: var(--accent-color); }

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0; margin: 0 auto 20px; list-style: none; text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer; display: inline-block; padding: 0; font-size: 18px; font-weight: 400;
  margin: 0 10px 5px; line-height: 1; transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active { color: var(--accent-color); }

@media (max-width: 575px) {
  .portfolio .portfolio-filters li { font-size: 14px; margin: 0 5px; }
}

.portfolio .portfolio-content { position: relative; overflow: hidden; }
.portfolio .portfolio-content img { transition: 0.3s; }

.portfolio .portfolio-content .portfolio-info {
  opacity: 0; position: absolute; inset: 0; z-index: 3; transition: all 0.3s ease-in-out;
  background: rgba(0,0,0,0.6); padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px; padding: 5px 10px; font-weight: 400; color: #fff; display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center;
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute; left: calc(50% - 40px); top: calc(50% - 14px); color: #fff; transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover { color: var(--accent-color); }

.portfolio .portfolio-content .portfolio-info .details-link { left: 50%; font-size: 34px; line-height: 0; }

.portfolio .portfolio-content:hover .portfolio-info { opacity: 1; }
.portfolio .portfolio-content:hover img { transform: scale(1.1); }

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
.team { --default-color: #ffffff; }

.team .member { text-align: center; position: relative; overflow: hidden; }

.team .member .member-info { opacity: 0; position: absolute; inset: 0; transition: 0.2s; }
.team .member .member-info-content { position: absolute; left: 50px; right: 0; bottom: 0; transition: bottom 0.4s; }

.team .member .member-info-content h4 {
  color: var(--contrast-color); font-weight: 700; margin-bottom: 2px; font-size: 18px;
}

.team .member .member-info-content span { font-style: italic; display: block; font-size: 13px; }

.team .member .social {
  position: absolute; left: -50px; top: 0; bottom: 0; width: 50px; transition: left 0.3s ease-in-out;
  background: rgba(0,0,0,0.6); text-align: center;
}

.team .member .social a {
  transition: color 0.3s; display: block; color: var(--default-color); margin-top: 15px;
}

.team .member .social a:hover { color: var(--accent-color); }
.team .member .social i { font-size: 18px; margin: 0 2px; }

.team .member:hover .member-info {
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.8) 20%, rgba(255,255,255,0) 100%);
  opacity: 1; transition: 0.4s;
}

.team .member:hover .member-info-content { bottom: 30px; transition: bottom 0.4s; }
.team .member:hover .social { left: 0; transition: left 0.3s ease-in-out; }

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color); position: relative; padding: 20px; margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); border-radius: 5px; overflow: hidden;
}

.faq .faq-container .faq-item:last-child { margin-bottom: 0; }

.faq .faq-container .faq-item h3 {
  font-weight: 600; font-size: 16px; line-height: 24px; margin: 0 30px 0 0;
  transition: 0.3s; cursor: pointer; display: flex; align-items: center;
}

.faq .faq-container .faq-item h3 .num { color: var(--accent-color); padding-right: 5px; }
.faq .faq-container .faq-item h3:hover { color: var(--accent-color); }

.faq .faq-container .faq-item .faq-content {
  display: grid; grid-template-rows: 0fr; transition: 0.3s ease-in-out; visibility: hidden; opacity: 0;
}

.faq .faq-container .faq-item .faq-content p { margin-bottom: 0; overflow: hidden; }

.faq .faq-container .faq-item .faq-toggle {
  position: absolute; top: 20px; right: 20px; font-size: 16px; line-height: 0; transition: 0.3s; cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover { color: var(--accent-color); }

.faq .faq-container .faq-active {
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.faq .faq-container .faq-active h3 { color: var(--accent-color); }

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr; visibility: visible; opacity: 1; padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle { transform: rotate(90deg); color: var(--accent-color); }

/*--------------------------------------------------------------
# Contacto
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color); box-shadow: 0 0 20px rgba(0,0,0,0.1); padding: 30px;
}

@media (max-width: 575px) { .contact .info-wrap { padding: 20px; } }

.contact .info-item { margin-bottom: 40px; }

.contact .info-item i {
  font-size: 20px; color: var(--accent-color); background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px; height: 44px; display: flex; justify-content: center; align-items: center;
  border-radius: 4px; transition: all 0.3s ease-in-out; margin-right: 15px;
}

.contact .info-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.contact .info-item p { margin-bottom: 0; font-size: 14px; }
.contact .info-item:hover i { background: var(--accent-color); color: var(--contrast-color); }

.contact .php-email-form {
  background-color: var(--surface-color); height: 100%; padding: 30px; box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

@media (max-width: 575px) { .contact .php-email-form { padding: 20px; } }

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px; padding: 10px 15px; box-shadow: none; border-radius: 0;
  color: var(--default-color); background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus { border-color: var(--accent-color); }

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color); background: var(--accent-color);
  border: 0; padding: 10px 30px; transition: 0.4s; border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img { width: 100%; }

.portfolio-details .portfolio-details-slider .swiper-pagination { margin-top: 20px; position: relative; }

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px; height: 12px; background-color: color-mix(in srgb, var(--default-color), transparent 85%); opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color); padding: 30px; box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul { list-style: none; padding: 0; font-size: 15px; }
.portfolio-details .portfolio-info ul li+li { margin-top: 10px; }

.portfolio-details .portfolio-description { padding-top: 30px; }
.portfolio-details .portfolio-description h2 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.portfolio-details .portfolio-description p {
  padding: 0; color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color); padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); margin-bottom: 20px;
}

.service-details .services-list a {
  display: block; line-height: 1; padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0; color: color-mix(in srgb, var(--default-color), transparent 20%); transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color); font-weight: 700; border-color: var(--accent-color);
}

.service-details .services-list a:hover { border-color: var(--accent-color); }

.service-details .services-img { margin-bottom: 20px; }

.service-details h3 { font-size: 26px; font-weight: 700; }
.service-details h4 { font-size: 20px; font-weight: 700; }

.service-details p { font-size: 15px; }

.service-details ul { list-style: none; padding: 0; font-size: 15px; }
.service-details ul li {
  padding: 5px 0; display: flex; align-items: center;
}
.service-details ul i { font-size: 20px; margin-right: 8px; color: var(--accent-color); }

/*--------------------------------------------------------------
# Ajustes finales de scroll anclas
--------------------------------------------------------------*/
section, .page-title { scroll-margin-top: var(--header-height); }
