﻿/* Fonts */
:root {
  --default-font: "Open Sans",  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: "Roboto",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #364d59; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #52565e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #130994; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffffd3; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

:root {
  --nav-color: rgba(255, 255, 255, 0.55);  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #0805c2; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}


.light-background {
  --background-color: #f4f7f6;
  --surface-color: #ffffff;
}

/* Estilos mejorados para las tarjetas de servicios */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border: none;
  background: var(--surface-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
  transition: all 0.5s ease;
  position: relative;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card .img-container {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(19, 9, 148, 0), rgba(19, 9, 148, 0.8));
  opacity: 0;
  transition: all 0.3s ease;
}

.service-card:hover .overlay {
  opacity: 1;
}

.service-card .service-title {
  color: var(--heading-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--accent-color);
}

.service-card .service-description {
  color: var(--default-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card .btn {
  transform: translateY(20px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.service-card:hover .btn {
  transform: translateY(0);
  opacity: 1;
}

/* Ajustes compactos + nuevo look (solo sección Servicios) */
#services .service-box {
  padding: 1.25rem !important;
}

#services .service-card {
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-color), transparent 70%),
      transparent 55%
    ) border-box;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.10),
    0 10px 22px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 color-mix(in srgb, var(--accent-color), transparent 88%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#services .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 35%)
  );
  opacity: 0.95;
}

#services .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      560px circle at 15% 0%,
      color-mix(in srgb, var(--accent-color), transparent 80%),
      transparent 48%
    ),
    linear-gradient(
      120deg,
      transparent 35%,
      color-mix(in srgb, var(--accent-color), transparent 88%) 50%,
      transparent 65%
    );
  opacity: 0.75;
  transform: translate3d(-6%, -4%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#services .service-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 color-mix(in srgb, var(--accent-color), transparent 84%);
}

#services .service-card:hover::after {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#services .service-card:focus-within {
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 color-mix(in srgb, var(--accent-color), transparent 84%);
}

#services .service-card img {
  border-radius: 14px;
}

#services .service-card:hover img {
  transform: scale(1.04);
}

#services .service-card .service-title {
  font-size: 1.15rem;
  margin: 0.7rem 0 0.5rem;
  letter-spacing: -0.01em;
}

#services .service-card .service-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

#services .service-card .btn {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 25%)
  );
  border-color: transparent;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--accent-color), transparent 78%),
    inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 45%);
  transform: none;
  opacity: 1;
}

#services .service-card .btn:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-color), transparent 10%),
    var(--accent-color)
  );
}

@media (prefers-reduced-motion: reduce) {
  #services .service-card,
  #services .service-card::after,
  #services .service-card img {
    transition: none;
  }
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
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 Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  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);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

  /* Logo Header Styles */
  .header .logo img {
    width: auto;
    max-height: 70px; /* Tamaño principal del logo */
    max-width: 100%; /* Asegura que no se desborde */
    margin-right: 8px;
    transition: all 0.3s ease-in-out;
  filter: brightness(1.25) contrast(1.15);
  }

/* Header Responsive */
@media (max-width: 1200px) {
  .header .container-fluid {
    padding: 0 20px;
  }
  
  .header .logo img {
    max-height: 65px;
  }
}

@media (max-width: 992px) {
  .header .container-fluid {
    padding: 0 15px;
  }
  
  .header .logo img {
    max-height: 60px;
  }
}

/* Ajuste para header en móviles */
@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  
  .header .container-fluid {
    padding: 0 10px;
  }
  
  .header .logo img {
    max-height: 55px;
  }
}

@media (max-width: 576px) {
  .header .container-fluid {
    padding: 0 8px;
  }
  
  .header .logo img {
    max-height: 50px;
  }
}

@media (max-width: 480px) {
  .header .logo img {
    max-height: 45px;
  }
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(255, 255, 255, 0.95);
  --heading-color: #3c3c3c;
  --nav-color: #3c3c3c;
  --nav-hover-color: #3c3c3c;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@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;
  }

  /* CTA del menú (solo escritorio) */
  .navmenu>ul>li:last-child>a,
  .navmenu>ul>li:last-child>a:focus {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--contrast-color);
    background: linear-gradient(
      90deg,
      var(--accent-color),
      color-mix(in srgb, var(--accent-color), transparent 22%)
    );
    box-shadow:
      0 16px 34px color-mix(in srgb, var(--accent-color), transparent 78%),
      inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 55%);
  }

  .navmenu>ul>li:last-child>a:before {
    display: none;
  }

  .navmenu>ul>li:last-child>a:hover {
    color: var(--contrast-color);
    transform: translateY(-1px);
    box-shadow:
      0 20px 44px color-mix(in srgb, var(--accent-color), transparent 74%),
      inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 50%);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 14px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
    text-transform: uppercase;
  }

  .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(--accent-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .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-hover-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: 0px 0px 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;
    font-weight: 400;
    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 Navigation */
@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;
    top: 70px;
    left: 14px;
    right: 14px;
    bottom: auto;
    padding: 8px 0;
    margin: 0;
    border-radius: 14px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 9px 16px;
    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu li {
    padding: 2px 0;
  }

  /* CTA del menú móvil (último ítem) */
  .mobile-nav-active .navmenu>ul>li:last-child {
    padding: 10px 16px 6px;
  }

  .mobile-nav-active .navmenu>ul>li:last-child>a,
  .mobile-nav-active .navmenu>ul>li:last-child>a:focus {
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--contrast-color);
    background: linear-gradient(
      90deg,
      var(--accent-color),
      color-mix(in srgb, var(--accent-color), transparent 22%)
    );
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent-color), transparent 78%);
  }

  .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;
  }
}

/*--------------------------------------------------------------
# Global Footer - Versión más opaca
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  background: url("../img/hero-carousel/hero8.webp") center 20% no-repeat;
  background-size: cover;
  font-size: 14px;
  position: relative;
}

.footer .container {
  position: relative;
  z-index: 2; /* Asegura que el contenido esté sobre el overlay */
}

.footer:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%); /* Más opaco (30% de transparencia) */
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px); /* Efecto de desenfoque sutil */
}

.footer .footer-top {
  padding-top: 50px;
}

/* Contenido del footer con mejor contraste */
.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 60px;
  margin-right: 6px;
  filter: brightness(1.4) contrast(1.2) saturate(1.1); /* Logo más brillante y claro */
  transition: all 0.3s ease;
}

.footer .footer-about .logo:hover img {
  filter: brightness(1.6) contrast(1.3) saturate(1.2);
  transform: scale(1.05);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
  color: color-mix(in srgb, var(--default-color), transparent 20%); /* Texto más visible */
}

/* Enlaces sociales mejorados */
.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.1); /* Fondo sutil para mejor contraste */
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Títulos de sección */
.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  color: var(--heading-color);
}

.footer h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

/* Enlaces del footer */
.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.footer .footer-links ul li:hover {
  transform: translateX(5px);
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%); /* Texto más visible */
  display: inline-block;
  line-height: 1;
  transition: color 0.3s ease;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

/* Sección de copyright */
.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  background-color: rgba(0,0,0,0.05); /* Fondo sutil para la sección */
}

.footer .copyright p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%); /* Texto más visible */
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* Footer Responsive */
@media (max-width: 1200px) {
  .footer .footer-top {
    padding: 50px 0;
  }
  
  .footer h4 {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  .footer .footer-top {
    padding: 40px 0;
  }
  
  .footer .footer-about,
  .footer .footer-links,
  .footer .footer-newsletter {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .footer:before {
    background: color-mix(in srgb, var(--background-color), transparent 20%); /* Más opaco en móviles */
  }
  
  .footer .footer-top {
    padding: 30px 0;
  }
  
  .footer .container {
    padding: 0 15px;
  }
  
  .footer h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer .footer-about p,
  .footer .footer-links ul li a,
  .footer .footer-newsletter p {
    font-size: 14px;
  }
  
  .footer .social-links a {
    width: 35px;
    height: 35px;
    font-size: 14px;
    margin-right: 8px;
  }
  
  .footer .footer-newsletter form {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer .footer-newsletter input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .footer .footer-newsletter button {
    width: 100%;
    justify-content: center;
  }
  
  .footer .copyright {
    padding: 20px 0;
    text-align: center;
  }
  
  .footer .copyright p {
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  .footer .credits {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .footer .footer-top {
    padding: 25px 0;
  }
  
  .footer .container {
    padding: 0 10px;
  }
  
  .footer h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .footer .footer-about p,
  .footer .footer-links ul li a,
  .footer .footer-newsletter p {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .footer .social-links a {
    width: 32px;
    height: 32px;
    font-size: 13px;
    margin-right: 6px;
  }
  
  .footer .copyright {
    padding: 15px 0;
  }
  
  .footer .copyright p {
    font-size: 12px;
  }
  
  .footer .credits {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer .footer-about,
  .footer .footer-links,
  .footer .footer-newsletter {
    margin-bottom: 25px;
  }
  
  .footer h4 {
    font-size: 14px;
  }
  
  .footer .footer-about p {
    font-size: 12px;
  }
  
  .footer .social-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer .social-links a {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin: 0 3px;
  }
}
/*--------------------------------------------------------------
# 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);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.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(--default-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;
}

/*--------------------------------------------------------------
# General Responsive Optimizations
--------------------------------------------------------------*/

/* Container responsive */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .section-title p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .section-title p {
    font-size: 15px;
  }
  
  /* Spacing adjustments */
  .section {
    padding: 40px 0;
  }
  
  /* Button responsive */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .section-title p {
    font-size: 14px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .section-title p {
    font-size: 13px;
  }
  
  .section {
    padding: 25px 0;
  }
}

/* Typography responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  p, li, span {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  p, li, span {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
  .row {
    margin: 0 -10px;
  }
  
  .row > * {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .row {
    margin: 0 -5px;
  }
  
  .row > * {
    padding: 0 5px;
  }
}

/* Image responsive */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Scroll behavior for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 60px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 40%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 56px;
  font-weight: 500;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .page-title h1 {
    font-size: 28px;
    line-height: 1.3;
    padding: 0 10px;
  }

  .page-title {
    padding: 120px 0 40px 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-title h1 {
    font-size: 38px;
    line-height: 1.3;
  }
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.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 20%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
}

.section-title h2:before,
.section-title h2:after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent-color);
  display: inline-block;
}

.section-title h2:before {
  margin: 0 15px 10px 0;
}

.section-title h2:after {
  margin: 0 0 10px 15px;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section - FIXED VERSION
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Overlay aclarado sutil para mejorar visibilidad del fondo sin oscurecer demasiado */

.hero .info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
  width: 90%;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .hero .info {
    width: 95%;
    padding: 10px 10px 0 10px;
    top: 58%;
    transform: translate(-50%, -45%);
  }
}

.hero .info h1 {
  margin-bottom: 30px;
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero .info h1 {
    font-size: 2.5rem;
  }
}

.hero .info .lead {
  color: rgba(255,255,255,0.95);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Hero CTAs */
.hero-cta .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 11;
}

.hero-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.hero-cta .btn:hover::before {
  left: 100%;
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Trust Indicators */
.glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.glass:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* CAROUSEL FIXED */
#hero-carousel {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#hero-carousel .carousel-inner {
  width: 100% !important;
  height: 100% !important;
}

#hero-carousel .carousel-item {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  transition: transform 0.8s ease-in-out;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#hero-carousel .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  filter: brightness(1.1) contrast(1.05) saturate(1.05) !important;
  transition: all 0.3s ease;
  background-color: #1a1a1a; /* Color de fondo mientras carga */
  min-height: 100vh; /* Asegurar altura mínima */
}

/* Overlay for better text readability */
#hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 2;
}

/* Loading spinner */
#hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: carousel-spin 1s linear infinite;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#hero-carousel .carousel-item.loaded::before {
  opacity: 0;
  pointer-events: none;
}

/* Scroll suave y destacado de secciones */
html {
  scroll-behavior: smooth;
}

/* Destacar sección cuando se navega a ella */
.detailed-services .row[id]:target,
.detailed-services .row.section-highlight {
  background: linear-gradient(135deg, rgba(0,123,255,0.15) 0%, rgba(0,123,255,0.08) 100%);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  transition: all 0.8s ease;
  box-shadow: 0 10px 30px rgba(0,123,255,0.2);
  border: 2px solid rgba(0,123,255,0.3);
}

/* Animación suave para el scroll */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Efecto de pulso para secciones destacadas */
.section-highlight {
  animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0,123,255,0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,123,255,0.3);
  }
}

/* Smooth Carousel Transition */
#hero-carousel .carousel-item {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Preloader para imágenes */
#hero-carousel .carousel-item img {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#hero-carousel .carousel-item img[loading] {
  opacity: 0;
}

/* Carousel Controls */
#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  z-index: 15;
  opacity: 0.8;
}

#hero-carousel .carousel-control-prev:hover,
#hero-carousel .carousel-control-next:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

#hero-carousel .carousel-control-prev {
  left: 20px;
}

#hero-carousel .carousel-control-next {
  right: 20px;
}

/* Carousel Indicators */
#hero-carousel .carousel-indicators {
  bottom: 30px;
  z-index: 15;
}

#hero-carousel .carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin: 0 5px;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  transition: all 0.3s ease;
}

#hero-carousel .carousel-indicators button.active {
  background: white;
  border-color: white;
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero .info h1 {
    font-size: 3rem;
  }
  
  .hero .info .lead {
    font-size: 1.1rem;
  }

  .hero-cta .btn {
    padding: 12px 30px !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .hero .info h1 {
    font-size: 2.8rem;
  }
  
  .hero .info {
    width: 95%;
  }

  .hero-trust .col-md-3 {
    margin-bottom: 15px;
  }

  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  
  #hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }
}

@media (max-width: 768px) {
  .hero .info h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  
  .hero .info .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero .info {
    width: 95%;
    padding: 15px;
    top: 48%;
    transform: translate(-50%, -50%);
  }

  .hero-cta {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .hero-cta .btn {
    padding: 15px 25px !important;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-trust {
    margin-top: 2rem !important;
  }

  .hero-trust .glass {
    padding: 15px !important;
    margin-bottom: 10px;
  }

  .hero-trust .glass i {
    font-size: 1.5rem !important;
  }

  .hero-trust .fw-bold {
    font-size: 1rem;
  }

  .hero-trust small {
    font-size: 0.8rem;
  }

  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #hero-carousel .carousel-control-prev {
    left: 10px;
  }
  
  #hero-carousel .carousel-control-next {
    right: 10px;
  }
  
  #hero-carousel .carousel-indicators {
    bottom: 15px;
  }
  
  #hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}

@media (max-width: 576px) {
  .hero .info {
    width: 95%;
    padding: 10px 10px 0 10px;
    top: 58%;
    transform: translate(-50%, -45%);
  }
  
  .hero .info .lead {
    font-size: 0.95rem;
  }

  .hero-cta .btn {
    padding: 12px 20px !important;
    font-size: 0.85rem;
  }

  .hero-trust .glass {
    padding: 12px !important;
  }

  .hero-trust .glass i {
    font-size: 1.3rem !important;
  }

  .hero-trust .fw-bold {
    font-size: 0.9rem;
  }

  .hero-trust small {
    font-size: 0.75rem;
  }

  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #hero-carousel .carousel-indicators {
    bottom: 10px;
  }

  #hero-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 2px;
  }
}

@media (max-width: 480px) {
  .hero .info {
    width: 85%;
    padding: 10px 8px 0 8px;
    top: 75%;
    transform: translate(-50%, -50%);
  }
  
  .hero .info h1 {
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  
  .hero .info .lead {
    font-size: 0.8rem;
    margin-bottom: 25px;
    line-height: 1.3;
  }

  .hero-cta {
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 20px;
  }
  
  .hero-cta .btn {
    padding: 10px 16px !important;
    font-size: 0.8rem;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-trust .row {
    gap: 10px !important;
  }

  .hero-trust .col-6 {
    flex: 0 0 calc(50% - 5px);
  }

  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    display: none;
  }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
  .hero .info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero .info .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-cta .btn {
    padding: 10px 20px !important;
    font-size: 0.8rem;
  }

  .hero-trust {
    display: none !important;
  }

  .hero-trust .glass {
    padding: 8px !important;
  }
  
  .hero-trust .glass i {
    font-size: 1.2rem !important;
  }
  
  .hero-trust .fw-bold {
    font-size: 0.9rem !important;
  }
  
  .hero-trust small {
    font-size: 0.65rem !important;
  }

  #hero-carousel .carousel-indicators {
    bottom: 5px;
  }
}

/*--------------------------------------------------------------
# Get Started Section
--------------------------------------------------------------*/
.get-started .content {
  padding: 30px 0;
}

.get-started .content h3 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 25px;
  position: relative;
}

.get-started .content h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.get-started .content p {
  font-size: 14px;
}

.get-started .php-email-form {
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  padding: 30px;
  height: 100%;
}

@media (max-width: 575px) {
  .get-started .php-email-form {
    padding: 20px;
  }
}

.get-started .php-email-form h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.get-started .php-email-form p {
  font-size: 14px;
  margin-bottom: 20px;
}

.get-started .php-email-form input[type=text],
.get-started .php-email-form input[type=email],
.get-started .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 20%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.get-started .php-email-form input[type=text]:focus,
.get-started .php-email-form input[type=email]:focus,
.get-started .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.get-started .php-email-form input[type=text]::placeholder,
.get-started .php-email-form input[type=email]::placeholder,
.get-started .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.get-started .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;
}

.get-started .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Constructions Section
--------------------------------------------------------------*/
.constructions .card-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
  border-radius: 0;
}

.constructions .card-item .card-bg {
  min-height: 300px;
  position: relative;
}

.constructions .card-item .card-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.constructions .card-item .card-body {
  padding: 30px;
}

.constructions .card-item h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
}

.constructions .card-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: var(--heading-color);
  font-size: 56px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--heading-color), transparent 95%);
  border-radius: 50px;
  z-index: 1;
  top: 10px;
  right: -20px;
  transition: 0.3s;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid color-mix(in srgb, var(--heading-color), transparent 90%);
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item .readmore {
  margin-top: 15px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.services .service-item:hover .icon i {
  color: var(--heading-color);
}

.services .service-item:hover .icon:before {
  background: var(--accent-color);
}

.services .service-item:hover h3 {
  border-color: var(--accent-color);
  color: var(--heading-color);
}

.services .service-item:hover .readmore {
  color: var(--accent-color);
}

/* Service Box Styles for New Layout */
.service-box {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 15px !important;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--accent-color);
}

.service-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.service-box:hover img {
  transform: scale(1.05);
}

.service-box .service-title {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  letter-spacing: -0.02em;
}

.service-box:hover .service-title {
  color: var(--accent-color);
}

.service-box .service-description {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: justify;
  hyphens: auto;
}

.service-box .btn {
  margin-top: auto;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Services Responsive */
@media (max-width: 1200px) {
  .service-box {
    padding: 25px !important;
  }
  
  .service-box img {
    height: 180px;
  }
  
  .service-box .service-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 992px) {
  .services .row {
    justify-content: center;
  }
  
  .service-box {
    padding: 20px !important;
    margin-bottom: 30px;
  }
  
  .service-box img {
    height: 160px;
  }
  
  .service-box .service-title {
    font-size: 1.1rem;
  }
  
  .service-box .service-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .services .section-title h2 {
    font-size: 2rem;
  }
  
  .service-box {
    padding: 15px !important;
    margin-bottom: 25px;
  }
  
  .service-box img {
    height: 150px;
  }
  
  .service-box .service-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .service-box .service-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .service-box .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .services .container {
    padding: 0 15px;
  }
  
  .services .section-title {
    padding: 0 10px;
    margin-bottom: 40px;
  }
  
  .services .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .services .section-title p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .service-box {
    padding: 20px 15px !important;
    margin-bottom: 25px;
    border-radius: 12px !important;
  }
  
  .service-box img {
    height: 180px;
    border-radius: 8px !important;
  }
  
  .service-box .service-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .service-box .service-description {
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.5;
    text-align: justify;
  }
  
  .service-box .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 8px;
  }
}

/* Estilos específicos para móviles muy pequeños */
@media (max-width: 480px) {
  .services {
    padding: 40px 0;
  }
  
  .services .section-title h2 {
    font-size: 1.6rem;
  }
  
  .service-box {
    padding: 18px 12px !important;
    margin-bottom: 20px;
  }
  
  .service-box img {
    height: 160px;
  }
  
  .service-box .service-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .service-box .service-description {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  .service-box .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    max-width: 180px;
  }
}

/*--------------------------------------------------------------
# Chat CTA Section Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .chat-cta {
    padding: 40px 0 !important;
  }
  
  .chat-cta .bi-robot {
    font-size: 2.5rem !important;
    margin-bottom: 15px;
  }
  
  .chat-cta h4 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }
  
  .chat-cta p {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
  }
  
  .chat-cta .btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
  }
}

@media (max-width: 480px) {
  .chat-cta {
    padding: 30px 0 !important;
  }
  
  .chat-cta .container {
    padding: 0 15px;
  }
  
  .chat-cta .bi-robot {
    font-size: 2rem !important;
  }
  
  .chat-cta h4 {
    font-size: 1.2rem !important;
  }
  
  .chat-cta p {
    font-size: 0.85rem !important;
    line-height: 1.4;
  }
  
  .chat-cta .btn {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    max-width: 250px;
  }
}

/*--------------------------------------------------------------
# Features/Services Cards Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 25px !important;
    padding: 20px 15px !important;
  }
  
  .feature-card .card-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 15px !important;
  }
  
  .feature-card .card-icon i {
    font-size: 1.8rem !important;
  }
  
  .feature-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    line-height: 1.25;
    text-align: center;
  }
  
  .feature-card p {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.55;
    text-align: justify;
    color: #495057 !important;
  }
  
  .feature-card ul li {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    line-height: 1.45;
    color: #6c757d !important;
  }
}

@media (max-width: 480px) {
  .alt-services {
    padding: 40px 0 !important;
  }
  
  .feature-card {
    margin-bottom: 20px !important;
    padding: 18px 12px !important;
  }
  
  .feature-card .card-icon {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 12px !important;
  }
  
  .feature-card .card-icon i {
    font-size: 1.5rem !important;
  }
  
  .feature-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2;
    text-align: center;
  }
  
  .feature-card p {
    font-size: 0.85rem !important;
    margin-bottom: 12px !important;
    line-height: 1.5;
    text-align: justify !important;
    color: #495057 !important;
    font-weight: 400 !important;
  }
  
  .feature-card ul li {
    font-size: 0.8rem !important;
    margin-bottom: 5px !important;
    text-align: left !important;
    line-height: 1.4;
    color: #6c757d !important;
  }
  
  .feature-card ul {
    padding-left: 10px !important;
  }
}

/*--------------------------------------------------------------
# Service Detail Sections Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .service-details {
    padding: 40px 0 !important;
  }
  
  .service-details h2 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  
  .service-details .carousel {
    margin-bottom: 20px !important;
  }
  
  .service-details .carousel img {
    height: 250px !important;
    object-fit: cover;
  }
  
  .service-details .carousel-caption {
    padding: 10px !important;
  }
  
  .service-details .carousel-caption h5 {
    font-size: 1.1rem !important;
  }
  
  .service-details .carousel-caption p {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  
  .service-details .service-content p {
    font-size: 0.9rem !important;
    line-height: 1.5;
    text-align: justify;
  }
  
  .service-details .service-benefits ul li {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 480px) {
  .service-details {
    padding: 30px 0 !important;
  }
  
  .service-details .container {
    padding: 0 15px;
  }
  
  .service-details h2 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    text-align: center;
  }
  
  .service-details .carousel img {
    height: 200px !important;
  }
  
  .service-details .carousel-caption {
    padding: 8px !important;
    bottom: 5px !important;
  }
  
  .service-details .carousel-caption h5 {
    font-size: 1rem !important;
    margin-bottom: 3px !important;
  }
  
  .service-details .carousel-caption p {
    font-size: 0.8rem !important;
    display: none; /* Ocultar descripción en móviles para mejor legibilidad */
  }
  
  .service-details .service-content p {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 15px !important;
  }
  
  .service-details .service-benefits h3 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
  }
  
  .service-details .service-benefits ul {
    padding-left: 15px !important;
  }
  
  .service-details .service-benefits ul li {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
    line-height: 1.3;
  }
}
  
  .services .section-title h2 {
    font-size: 1.8rem;
  }
  
  .services .section-title p {
    font-size: 0.9rem;
  }
  
  .service-box {
    padding: 12px !important;
    margin-bottom: 20px;
  }
  
  .service-box img {
    height: 140px;
  }
  
  .service-box .service-title {
    font-size: 0.95rem;
  }
  
  .service-box .service-description {
    font-size: 0.8rem;
  }
  
  .service-box .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }


/*--------------------------------------------------------------
# Alt Services Section
--------------------------------------------------------------*/
.alt-services .features-image {
  position: relative;
  min-height: 400px;
}

.alt-services .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.alt-services h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.alt-services h3:after {
  content: "";
  background: var(--accent-color);
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  left: 0;
  bottom: 0;
}

.alt-services .icon-box {
  margin-top: 50px;
}

.alt-services .icon-box i {
  color: var(--accent-color);
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.alt-services .icon-box:hover i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.alt-services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.alt-services .icon-box h4 a:hover {
  color: var(--accent-color);
}

.alt-services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  color: var(--heading-color);
  padding: 15px 0;
  transition: 0.3s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.features .nav-link.active {
  background-color: var(--background-color);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--accent-color);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Projects Section - Redesigned
--------------------------------------------------------------*/
.projects .section-header {
  text-align: center;
  margin-bottom: 30px;
}
.projects .section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.projects .section-header p {
  font-size: 16px;
  color: #666;
}

/*--------------------------------------------------------------
# Testimonials Section - Diseño Moderno
--------------------------------------------------------------*/
.testimonials {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 4rem 0;
}

.testimonials .testimonial-wrap {
  padding-left: 0;
  padding: 0.5rem;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin: 1rem 0.5rem;
  min-height: 200px;
  position: relative;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials .testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item .testimonial-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  position: static;
  left: auto;
}

.testimonials .testimonial-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #1e293b;
}

.testimonials .testimonial-item h4 {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0 0 0.75rem 0;
}

.testimonials .testimonial-item .stars {
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.testimonials .testimonial-item .stars i {
  color: #f59e0b;
  font-size: 0.85rem;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  position: relative;
  margin-right: 0.25rem;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  position: relative;
  margin-left: 0.25rem;
  transform: scaleX(-1);
}

.testimonials .testimonial-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  font-style: normal;
}

.testimonials .testimonial-item p span {
  display: inline;
}

.testimonials .swiper-wrapper {
  height: auto;
  padding: 0.5rem 0 1.5rem;
}

.testimonials .swiper-pagination {
  margin-top: 1rem;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #cbd5e1;
  opacity: 1;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  width: 24px;
}

/* Testimonials Responsive */
@media (max-width: 1200px) {
  .testimonials .testimonial-item {
    padding: 1.75rem;
    margin: 0.75rem 0.5rem;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 992px) {
  .testimonials {
    padding: 3rem 0;
  }
  
  .testimonials .testimonial-item {
    padding: 1.5rem;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    width: 64px;
    height: 64px;
  }
  
  .testimonials .testimonial-item h3 {
    font-size: 1rem;
  }
  
  .testimonials .testimonial-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 2.5rem 0;
  }
  
  .testimonials .testimonial-wrap {
    padding: 0.25rem;
  }

  .testimonials .testimonials-carousel,
  .testimonials .testimonials-slider {
    overflow: hidden;
  }

  .testimonials .testimonial-item {
    padding: 1.5rem 1.25rem;
    margin: 0.5rem 0.25rem;
    border-radius: 12px;
  }

  .testimonials .testimonial-item .testimonial-img {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
  }
  
  .testimonials .testimonial-item h3 {
    font-size: 0.95rem;
  }
  
  .testimonials .testimonial-item h4 {
    font-size: 0.75rem;
  }
  
  .testimonials .testimonial-item .stars i {
    font-size: 0.75rem;
  }
  
  .testimonials .testimonial-item p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  
  .testimonials .testimonial-item .quote-icon-left,
  .testimonials .testimonial-item .quote-icon-right {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .testimonials .testimonial-item {
    padding: 1.25rem 1rem;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    width: 48px;
    height: 48px;
  }
  
  .testimonials .swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  
  .testimonials .swiper-pagination .swiper-pagination-bullet-active {
    width: 18px;
  }
}



/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
/* ===== ABOUT MODERN ===== */
.about-modern {
  padding: 5rem 0;
  background: #fff;
}

/* Imagen */
.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-main-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent-color, #3b82f6);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.about-experience-badge .exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .exp-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Contenido */
.about-content-wrapper {
  padding-left: 2rem;
}

.about-content-wrapper .section-subtitle {
  display: inline-block;
  color: var(--accent-color, #3b82f6);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.about-content-wrapper .section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-content-wrapper .lead-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-content-wrapper p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Features */
.about-features {
  margin: 2rem 0;
}

.about-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.about-features .feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #3b82f6), #60a5fa);
  border-radius: 12px;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about-features .feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.about-features .feature-text p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* Botón CTA */
.btn-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent-color, #3b82f6);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-about-cta:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-about-cta i {
  transition: transform 0.3s ease;
}

.btn-about-cta:hover i {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
  .about-content-wrapper {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .about-main-img {
    height: 350px;
  }
  
  .about-content-wrapper .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 575px) {
  .about-modern {
    padding: 3rem 0;
  }
  
  .about-main-img {
    height: 280px;
  }
  
  .about-experience-badge {
    padding: 1rem 1.25rem;
    bottom: 15px;
    right: 15px;
  }
  
  .about-experience-badge .exp-number {
    font-size: 2rem;
  }
  
  .about-content-wrapper .section-title {
    font-size: 1.6rem;
  }
  
  .about-features .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ===== ABOUT LEGACY (mantener compatibilidad) ===== */
.about .inner-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 30px 0;
}

@media (min-width: 991px) {
  .about .inner-title {
    max-width: 65%;
    margin: 0 0 80px 0;
  }
}

.about .our-story {
  padding: 40px;
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 35%;
  }
}

.about .our-story h4 {
  text-transform: uppercase;
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.about .our-story h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .our-story p:last-child {
  margin-bottom: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.about ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  color: var(--accent-color);
}




.about .about-img {
  min-height: 300px;
  position: relative;
}

@media (min-width: 992px) {
  .about .about-img {
    position: absolute;
    top: 0;
    right: 0;
    min-height: 600px;
  }
}

.about .about-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/*--------------------------------------------------------------
# Nosotros: Visión y Misión (Premium)
--------------------------------------------------------------*/
#vision-mision.section-bg {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-color), transparent 96%),
    color-mix(in srgb, var(--default-color), transparent 98%)
  );
}

#vision-mision .vision-box,
#vision-mision .mision-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px;
  background:
    radial-gradient(
      800px circle at 10% 0%,
      color-mix(in srgb, var(--accent-color), transparent 90%),
      transparent 55%
    ),
    linear-gradient(var(--surface-color), var(--surface-color));
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 88%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 60%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#vision-mision .vision-box::before,
#vision-mision .mision-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 35%)
  );
  opacity: 0.95;
}

@media (hover: hover) {
  #vision-mision .vision-box:hover,
  #vision-mision .mision-box:hover {
    transform: translateY(-6px);
    box-shadow:
      0 26px 62px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 55%);
  }
}

#vision-mision .vision-box h3,
#vision-mision .mision-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#vision-mision .vision-box h3 i,
#vision-mision .mision-box h3 i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--contrast-color);
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 20%)
  );
  box-shadow: 0 14px 26px color-mix(in srgb, var(--accent-color), transparent 78%);
}

/*--------------------------------------------------------------
# Nosotros: Resumen Servicios (Premium)
--------------------------------------------------------------*/
#resumen-servicios .border.rounded-3.bg-white.shadow-sm.small {
  position: relative;
  overflow: hidden;
  border-radius: 16px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent-color), transparent 72%),
      transparent 58%
    ) border-box;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 65%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#resumen-servicios .border.rounded-3.bg-white.shadow-sm.small::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at 15% 0%,
    color-mix(in srgb, var(--accent-color), transparent 86%),
    transparent 45%
  );
  opacity: 0.95;
}

@media (hover: hover) {
  #resumen-servicios .border.rounded-3.bg-white.shadow-sm.small:hover {
    transform: translateY(-6px);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.14),
      inset 0 1px 0 color-mix(in srgb, var(--contrast-color), transparent 60%);
  }
}

#resumen-servicios i {
  color: var(--accent-color) !important;
}

/* Ajustes de proporción específicos para página Nosotros */
body:not(.home) #about .about-img {
  min-height: 300px; /* base */
}
@media (min-width: 992px) {
  body:not(.home) #about .about-img {
    position: relative;
    min-height: 480px;
    max-height: 520px;
    border-radius: 18px;
    overflow: hidden;
  }
  body:not(.home) #about .about-img img {
    position: relative;
    height: 100%;
  }
}

/* Mobile optimization for About image */
@media (max-width: 575.98px) {
  .hero-cta {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .hero-cta .btn {
    padding: 15px 25px !important;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# Stats Counter Section
--------------------------------------------------------------*/
.stats-counter .stats-item {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.stats-counter .stats-item i {
  color: var(--accent-color);
  font-size: 42px;
  line-height: 0;
  margin-right: 20px;
}

.stats-counter .stats-item span {
  color: var(--heading-color);
  font-size: 36px;
  display: block;
  font-weight: 600;
}

.stats-counter .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Alt Services 2 Section
--------------------------------------------------------------*/
.alt-services-2 .features-image {
  position: relative;
  min-height: 400px;
}

.alt-services-2 .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.alt-services-2 h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.alt-services-2 .icon-box {
  margin-top: 30px;
}

.alt-services-2 .icon-box i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 24px;
  line-height: 1.2;
}

.alt-services-2 .icon-box h4 {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services-2 .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# tarjetas  carrusel servicios
--------------------------------------------------------------*/
.features-cards h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.features-cards p {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.65;
  margin-bottom: 20px;
  text-align: justify;
  font-weight: 400;
}

.features-cards ul li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  padding-top: 8px;
  color: #6c757d;
  line-height: 1.5;
  font-weight: 400;
}

.features-cards ul li i {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-right: 8px;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.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);
}

/*--------------------------------------------------------------
# Project Details Section
--------------------------------------------------------------*/
.project-details .portfolio-details-slider img {
  width: 100%;
}

.project-details .swiper-wrapper {
  height: auto;
}

.project-details .swiper-button-prev,
.project-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.project-details .swiper-button-prev:after,
.project-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project-details .swiper-button-prev:hover:after,
.project-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .project-details .swiper-button-prev,
  .project-details .swiper-button-next {
    display: none;
  }
}

.project-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.project-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.project-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.project-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.project-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.project-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.project-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.project-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.project-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.project-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.project-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-details .portfolio-description p {
  padding: 0;
}

.project-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.project-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.project-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.project-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left,
.project-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.project-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.project-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}



/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background-color: var(--surface-color);
  padding: 20px 0 30px 0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 20px;
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 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: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/





  /* Estilos para las imágenes de servicios */
  .service-image-wrapper {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
  }
  
  .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .service-item:hover .service-image {
    transform: scale(1.05);
  }
  
  .service-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    height: 100%;
  }
  
  .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  }
  
  .service-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
  }
  
  .service-item p {
    color: #666;
    margin-bottom: 20px;
  }
  
  .readmore {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  
  .readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
  }
  
  .readmore:hover i {
    transform: translateX(5px);
  }

/* Chat Widget Premium - Lado Izquierdo */
.chat-widget {
  position: fixed;
  left: 20px;
  bottom: 90px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.15), 0 0 0 1px rgba(255,255,255,0.8);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.chat-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.chat-header h5 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.chat-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 2px;
  background: white;
}

.btn-close-chat {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-chat:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

.chat-message {
  margin-bottom: 12px;
  max-width: 85%;
  animation: messageSlide 0.4s ease;
}

@keyframes messageSlide {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message p {
  margin: 0;
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.5;
  font-size: 0.95rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-message.bot p {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  color: #2c3e50;
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.chat-message.user p {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 8px;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-btn {
  background: linear-gradient(135deg, #f8f9ff 0%, #e3e8ff 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #667eea;
  font-weight: 500;
}

.quick-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.chat-input {
  display: flex;
  padding: 15px 20px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  background: rgba(255,255,255,0.8);
  gap: 10px;
}

.chat-input input {
  flex: 1;
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 25px;
  padding: 12px 18px;
  outline: none;
  background: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.chat-input input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.typing-indicator .typing-dots {
  display: flex;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 20px;
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  margin: 0 3px;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%, 60%, 100% { 
    transform: translateY(0);
    opacity: 0.4;
  }
  30% { 
    transform: translateY(-8px);
    opacity: 1;
  }
}

.service-item, .service-detail {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-item h5 {
  margin: 0 0 8px 0;
  color: #667eea;
  font-weight: 600;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8892b0;
}

.summary-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f1 100%);
  border-radius: 12px;
  padding: 15px;
  margin: 12px 0;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.confirmation-message {
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f1 100%);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.chat-toggle-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255,255,255,0.2);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4);
  }
}

.chat-toggle-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
  animation: none;
}

.chat-toggle-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0056b3, #0d6efd);
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Premium del Chat */
@media (max-width: 1200px) {
  .chat-widget {
    left: 15px;
    width: 360px;
  }
  .chat-toggle-btn {
    left: 15px;
  }
}

@media (max-width: 768px) {
  .chat-widget {
    left: 10px;
    bottom: 80px;
    width: calc(100vw - 20px);
    height: 450px;
  }
  .chat-toggle-btn {
    left: 15px;
    bottom: 15px;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .chat-widget {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: none;
  }
  
  .chat-toggle-btn {
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}


/*--------------------------------------------------------------
# fin de la  Seccion
  /* Estilos personalizados */
  .about {
    padding: 80px 0;
    background-color: #f9f9f9;
  }
  
  .about-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
  }
  
  .about-image:hover img {
    transform: scale(1.02);
  }
  
  .about-content {
    padding: 20px;
  }
  
  .about-list {
    list-style: none;
    padding-left: 0;
  }
  
  .about-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .about-list i {
    color: var(--color-primary);
    margin-right: 10px;
  }
  
  .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
  }
  
  
/* Iconos Flotantes Sociales - Versión Mejorada */
.floating-social-icons {
  position: fixed;
  right: 30px;
  bottom: -100px; /* Inicia oculto */
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  pointer-events: none;
}

/* Posición más alta cuando está visible (20px desde el fondo) */
.floating-social-icons.visible {
  bottom: 80px; /* Aumentado de 30px a 80px para posición más alta */
  opacity: 1;
  pointer-events: auto;
}

.fsi-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  border: none;
  cursor: pointer;
  text-decoration: none;
  animation: pulseResting 2s infinite ease-in-out; /* Animación palpitante en estado normal */
}

/* Efecto palpitante más pronunciado al hacer hover */
.fsi-btn:hover {
  animation: pulseHover 0.8s infinite ease-in-out;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Animaciones palpitantes */
@keyframes pulseResting {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseHover {
  0%, 100% { transform: translateY(-5px) scale(1.1); }
  50% { transform: translateY(-5px) scale(1.15); }
}

/* Colores y efectos específicos para cada red social */
.fsi-whatsapp { 
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.fsi-facebook { 
  background: linear-gradient(135deg, #1877F2, #0A58CA);
}

.fsi-instagram { 
  background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C);
  background-size: 400% 400%;
  animation: instagramGradient 8s ease infinite, pulseResting 2s infinite ease-in-out;
}

.fsi-instagram:hover {
  animation: instagramGradient 8s ease infinite, pulseHover 0.8s infinite ease-in-out;
}

/* Tooltip mejorado */
.fsi-tooltip {
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c3e50;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.fsi-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #2c3e50;
}

.fsi-btn:hover .fsi-tooltip {
  opacity: 1;
  right: 70px;
}

/* Efecto de onda al hacer clic */
.fsi-btn:active {
  transform: scale(0.95);
  animation: none; /* Detiene la animación al hacer clic */
}

.fsi-btn:active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: ripple 0.6s ease-out;
}

/* Animación para Instagram */
@keyframes instagramGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animación ripple */
@keyframes ripple {
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ------------------------- */
/* RESPONSIVE DESIGN */
/* ------------------------- */

@media (max-width: 1200px) {
  .floating-social-icons {
    right: 25px;
  }
}

@media (max-width: 992px) {
  .fsi-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .fsi-tooltip {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .floating-social-icons {
    right: 15px;
    gap: 12px;
    bottom: -120px;
  }
  
  .floating-social-icons.visible {
    bottom: 70px; /* Ajuste proporcional para móviles */
  }
  
  .fsi-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .fsi-tooltip {
    display: none;
  }
}

@media (max-width: 576px) {
  .floating-social-icons {
    right: 10px;
    bottom: -150px;
  }
  
  .floating-social-icons.visible {
    bottom: 60px;
  }
  
  .fsi-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    animation: pulseRestingMobile 2s infinite ease-in-out;
  }
  
  @keyframes pulseRestingMobile {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
  }
  
  .fsi-btn:hover {
    animation: pulseHoverMobile 0.8s infinite ease-in-out;
  }
  
  @keyframes pulseHoverMobile {
    0%, 100% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.08); }
  }
}

/* Efecto de aparición escalonada para los iconos */
.floating-social-icons.visible .fsi-btn:nth-child(1) {
  transition-delay: 0.1s;
}

.floating-social-icons.visible .fsi-btn:nth-child(2) {
  transition-delay: 0.2s;
}

.floating-social-icons.visible .fsi-btn:nth-child(3) {
  transition-delay: 0.3s;
}


.confirmation-message {
  background-color: #e8f5e9;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
}

.confirmation-message a {
  color: #25D366;
  font-weight: bold;
  text-decoration: none;
}

.summary-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  border-left: 4px solid #2c3e50;
}

.chat-select, .chat-input-field {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px 0;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-btn {
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-btn:hover {
  background-color: #1a5276;
  transform: translateY(-2px);
}

/* Estilos para el indicador de "escribiendo" */
.typing-indicator .typing-dots {
  display: flex;
  padding: 10px 15px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 2px;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

@keyframes typingAnimation {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Estilos para los carruseles de servicios detallados */
.detailed-services {
  padding: 60px 0;
}

.detailed-services .carousel {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detailed-services .carousel-inner {
  border-radius: 10px;
}

.detailed-services .carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* Controles del carrusel */
.detailed-services .carousel-control-prev,
.detailed-services .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0.8;
}

.detailed-services .carousel-control-prev:hover,
.detailed-services .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.detailed-services .carousel-control-prev {
  left: 20px;
}

.detailed-services .carousel-control-next {
  right: 20px;
}

/* Estilos para el contenido del servicio */
.detailed-services h4 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.detailed-services p {
  color: var(--default-color);
  font-family: var(--default-font);
  line-height: 1.6;
  margin-bottom: 15px;
}

.detailed-services .advantages-list h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.detailed-services .advantages-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detailed-services .advantages-list ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: var(--default-color);
}

.detailed-services .advantages-list ul li i {
  font-size: 18px;
  margin-right: 10px;
  color: #28a745;
}

/* Botón de contacto */
.detailed-services .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.detailed-services .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive para tablets */
@media (max-width: 992px) {
  .detailed-services .row {
    margin-bottom: 40px !important;
  }
  
  .detailed-services .carousel-item img {
    height: 300px;
  }
  
  .detailed-services h4 {
    font-size: 1.5rem;
  }
  
  .detailed-services .carousel-control-prev,
  .detailed-services .carousel-control-next {
    width: 45px;
    height: 45px;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .detailed-services {
    padding: 40px 0;
  }
  
  .detailed-services .carousel-item img {
    height: 250px;
  }
  
  .detailed-services h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .detailed-services p {
    font-size: 0.9rem;
  }
  
  .detailed-services .carousel-control-prev,
  .detailed-services .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .detailed-services .carousel-control-prev {
    left: 10px;
  }
  
  .detailed-services .carousel-control-next {
    right: 10px;
  }
  
  .detailed-services .btn-primary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* CSS para tamaño fijo de imágenes en carruseles de servicios */
.detailed-services .carousel-item img {
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .detailed-services .carousel-item img {
    height: 300px;
  }
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .detailed-services .carousel-item img {
    height: 250px;
  }
}
