html, body{
     min-width: 100% !important;
     max-width: 100% !important;
     overflow-x: hidden !important;
}
 .swiper-button-prev, .swiper-button-next{
     margin: 0 auto !important;
}
 :root {
     --theme-primary: #4F46E5;
     --theme-secondary: #8B5CF6;
     --theme-primary-light: #818cf8;
     --theme-glow: rgba(79, 70, 229, 0.33);
}
 body {
     font-family: 'Inter', sans-serif;
     background-color: #F8F9FA;
     color: #1a202c;
}
/* --- Global Style Adjustments --- */
 ::placeholder {
     color: #d1d5db;
    /* gray-300 */
     opacity: 0.8;
     font-weight: 300;
}
 .service-form-panel ::placeholder {
     color: #9ca3af;
    /* gray-400 */
}
/* --- Animations --- */
 @keyframes scroll {
     to {
         transform: translate(calc(-50%));
    }
}
 @keyframes inicioKenBurns {
     0% {
         transform: scale(1.25) translate(0, 0);
    }
     50% {
         transform: scale(1.1) translate(-5%, 5%);
    }
     100% {
         transform: scale(1.25) translate(0, 0);
    }
}
 @keyframes inicioKenBurnsAlt {
     0% {
         transform: scale(1.25) translate(0, 0);
    }
     50% {
         transform: scale(1.1) translate(5%, -5%);
    }
     100% {
         transform: scale(1.25) translate(0, 0);
    }
}
 @keyframes typing {
     from {
         width: 0 
    }
     to {
         width: 100% 
    }
}
 @keyframes blink-caret {
     from, to {
         border-color: transparent 
    }
     50% {
         border-color: var(--theme-primary);
    }
}
 @keyframes fadeInScaleUp {
     from {
         opacity: 0;
         transform: scale(0.95);
    }
     to {
         opacity: 1;
         transform: scale(1);
    }
}
 @keyframes gradient-rotate {
     0% {
         background-position: 0% 50%;
    }
     50% {
         background-position: 100% 50%;
    }
     100% {
         background-position: 0% 50%;
    }
}
 @keyframes fadeInSlideUp {
     from {
         opacity: 0;
         transform: translateY(20px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}
 @keyframes notification-bounce-in {
     0% {
         opacity: 0;
         transform: scale(0.7);
    }
     80% {
         opacity: 1;
         transform: scale(1.05);
    }
     100% {
         opacity: 1;
         transform: scale(1);
    }
}
 @keyframes draw-check {
     from {
         stroke-dashoffset: 30;
    }
     to {
         stroke-dashoffset: 0;
    }
}
 @keyframes draw-x-1 {
     from {
         stroke-dashoffset: 20;
    }
     to {
         stroke-dashoffset: 0;
    }
}
 @keyframes draw-x-2 {
     from {
         stroke-dashoffset: 20;
    }
     to {
         stroke-dashoffset: 0;
    }
}
 @keyframes pulse-warning {
     0%, 100% {
         transform: scale(1);
    }
     50% {
         transform: scale(1.1);
    }
}
 @keyframes radial-pulse {
     0% {
         box-shadow: 0 0 0 0px var(--theme-glow);
    }
     100% {
         box-shadow: 0 0 0 40px rgba(79, 70, 229, 0);
    }
}
/* -- NEW ANIMATIONS -- */
 @keyframes form-pulse {
     0% {
         box-shadow: 0 0 0 0px var(--theme-glow);
         border-color: var(--theme-primary-light);
    }
     70% {
         box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
         border-color: var(--theme-primary-light);
    }
     100% {
         box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
         border-color: rgba(255, 255, 255, 0.1);
    }
}
 .service-form-panel.newly-loaded {
     animation: form-pulse 2s ease-out;
}
 .content-stagger-animation > * {
     opacity: 0;
     animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
 .content-stagger-animation > *:nth-child(1) {
     animation-delay: 0.1s;
}
 .content-stagger-animation > *:nth-child(2) {
     animation-delay: 0.2s;
}
 .content-stagger-animation > *:nth-child(3) {
     animation-delay: 0.3s;
}
 .content-stagger-animation > *:nth-child(4) {
     animation-delay: 0.4s;
}
/* --- Header --- */
 #header {
     height: 6rem;
    /* 96px */
     transition: height 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
 #header.scrolled {
     height: 4.5rem;
    /* 72px */
     background-color: rgba(255, 255, 255, 0.7);
     backdrop-filter: blur(16px);
     box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
 #header.scrolled .header-logo {
     color: #374151;
     text-shadow: none;
}
 #header.scrolled .header-logo-accent {
     color: var(--theme-primary);
}
 #header .header-logo-accent {
     color: var(--theme-primary-light);
}
/* --- General & Button Styles --- */
 .btn-shiny {
     position: relative;
     overflow: hidden;
     z-index: 1;
     transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
     background-size: 200% auto;
     color: white;
     border-radius: 0;
     font-weight: 600;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
     background-image: linear-gradient(to right, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-primary) 100%);
     border: none;
     padding: 1rem 2rem;
}
 .btn-shiny:hover {
     background-position: right center;
     transform: translateY(-4px) scale(1.03);
     box-shadow: 0 10px 20px var(--theme-glow), 0 4px 8px rgba(0, 0, 0, 0.1);
}
 .btn-shiny:active {
     transform: translateY(-1px) scale(0.99);
     box-shadow: 0 4px 10px var(--theme-glow), 0 2px 4px rgba(0, 0, 0, 0.1);
}
 .inicio-slide {
     position: absolute;
     top: 0;
     left: 0;
     opacity: 0;
     transform: scale(1.25);
     transition: opacity 2s ease-in-out;
     animation: inicioKenBurns 24s infinite;
}
 .inicio-slide.active {
     opacity: 1;
}
 .inicio-slide:nth-child(2) {
     animation-name: inicioKenBurnsAlt;
}
 #typewriter {
     color: var(--theme-primary-light);
     display: inline-block;
     vertical-align: top;
     min-height: 80px;
}
 .typewriter-text {
     display: inline-block;
     overflow: hidden;
     border-right: .15em solid var(--theme-primary-light);
     white-space: nowrap;
     margin: 0 auto;
     letter-spacing: .05em;
     animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}
 .btn-inicio .btn-icon {
     transition: transform 0.3s ease;
}
 .btn-inicio:hover .btn-icon {
     transform: translateX(5px) rotate(15deg);
}
 .logo-scroller {
     overflow: hidden;
     -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
     mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}
 .logo-scroller-inner {
     display: flex;
     animation: scroll 40s linear infinite;
}
 .nosotros-features-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.5rem;
}
 .nosotros-features-grid > div:last-child {
     grid-column: span 2 / span 2;
}
 @media (min-width: 768px) {
     .nosotros-features-grid {
         grid-template-columns: 1fr 1fr 1fr;
    }
     .nosotros-features-grid > div:last-child {
         grid-column: span 1 / span 1;
    }
}
 .stat-card {
     background-color: #FFFFFF;
     padding: 1.5rem;
     text-align: center;
     transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
     position: relative;
     overflow: hidden;
     border-radius: 0.75rem;
}
 @media (min-width: 640px) {
     .stat-card {
         padding: 2rem;
    }
}
 .stat-card::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 4px;
     background-color: var(--theme-primary);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
 .stat-card:hover {
     transform: translateY(-12px);
     box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}
 .stat-card:hover::after {
     transform: scaleX(1);
}
 .stat-card-icon-wrapper {
     margin-bottom: 1rem;
     display: inline-flex;
     transition: all 0.3s ease;
}
 .stat-card:hover .stat-card-icon-wrapper {
     transform: scale(1.1);
}
 .stat-card h3 {
     color: var(--theme-primary);
     font-family: 'Inter', sans-serif;
     font-weight: 800;
}
 .stat-card p {
     font-weight: 600;
}
/* --- Team Section --- */
 .team-swiper-container {
     width: 100%;
     padding-top: 2rem;
     padding-bottom: 4rem;
}
 .team-swiper-container .swiper-slide {
     height: auto;
     padding-bottom: 1rem;
     transition: transform 0.4s ease, opacity 0.4s ease;
}
 .swiper-slide:not(.swiper-slide-active) {
     transform: scale(0.9);
     opacity: 0.6;
}
 .profile-card {
     background-color: white;
     border-radius: 1.25rem;
     border: 1px solid #e5e7eb;
     padding: 1.25rem;
     text-align: center;
     transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
 .swiper-slide-active .profile-card {
     box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.15);
     border-color: var(--theme-primary-light);
}
 .avatar-ring {
     padding: 3px;
     border-radius: 9999px;
     margin-left: auto;
     margin-right: auto;
     margin-bottom: 0.75rem;
     width: 96px;
     height: 96px;
     background: linear-gradient(to right, #e5e7eb, #e5e7eb);
     transition: background 0.4s ease;
}
 .swiper-slide-active .avatar-ring {
     background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), #EC4899, var(--theme-primary));
     background-size: 300% 100%;
     animation: gradient-rotate 4s linear infinite;
}
 .profile-avatar {
     width: 84px;
     height: 84px;
     border-radius: 9999px;
     object-fit: cover;
     border: 3px solid white;
}
 .accent-line {
     width: 30px;
     height: 2px;
     background-color: #d1d5db;
     margin: 0.5rem auto;
     border-radius: 2px;
     transition: width 0.4s ease, background-color 0.4s ease;
}
 .swiper-slide-active .accent-line {
     width: 50px;
     background-color: var(--theme-primary-light);
}
 .profile-name {
     font-size: 1.125rem;
}
 .profile-role {
     color: var(--theme-primary);
     font-weight: 600;
     font-size: 0.875rem;
}
 .profile-desc {
     font-size: 0.8rem;
     color: #4b5563;
     margin-top: 0.75rem;
     min-height: 55px;
     line-height: 1.5;
}
 .credentials-bar {
     margin-top: 1rem;
     padding-top: 1rem;
     border-top: 1px solid #e5e7eb;
     display: flex;
     gap: 1rem;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
     min-height: 40px;
}
 .credential-logo {
     height: 32px;
     width: auto;
     object-fit: contain;
     transition: transform 0.3s ease;
}
 .credential-logo:hover {
     transform: scale(1.1);
}
 .swiper-pagination-bullet {
     background-color: #9ca3af;
     border-radius: 0;
}
 .swiper-pagination-bullet-active {
     background-color: var(--theme-primary) !important;
}
 .swiper-button-next, .swiper-button-prev {
     color: var(--theme-primary) !important;
     border-radius: 0;
}
/* --- testimonios Section (UPGRADED & MODIFIED) --- */
 #testimonios {
     background-color: #111827;
     color: white;
     position: relative;
     overflow: hidden;
}
 #testimonios::before {
     content: '';
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 150%;
     height: 400px;
     background: radial-gradient(circle, var(--theme-glow), transparent 70%);
     opacity: 0.5;
}
 .testimonial-swiper-container {
     width: 100%;
     padding-top: 2rem;
     padding-bottom: 4rem;
}
 .testimonial-swiper-container .swiper-slide {
     height: auto;
     padding-bottom: 1rem;
     transition: transform 0.4s ease, opacity 0.4s ease;
}
 .swiper-slide:not(.swiper-slide-active) {
     transform: scale(0.9);
     opacity: 0.6;
}
 .testimonial-card {
     background-color: rgba(31, 41, 55, 0.4);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 1.25rem;
     padding: 2rem 1.5rem 1.5rem;
    /* Padding reducido */
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
     height: 100%;
     box-sizing: border-box;
     position: relative;
     transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
 .swiper-slide-active .testimonial-card {
     border-color: var(--theme-primary-light);
     box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.15);
}
 .testimonial-quote-icon {
     position: absolute;
     top: 0.75rem;
    /* Ajustado */
     left: 1rem;
    /* Ajustado */
     font-size: 3.5rem;
    /* Reducido */
     color: rgba(255, 255, 255, 0.08);
     line-height: 1;
}
 .testimonial-avatar-ring {
     padding: 3px;
     border-radius: 9999px;
     margin-bottom: 1rem;
    /* Margen reducido */
     width: 80px;
    /* Tamaño reducido */
     height: 80px;
    /* Tamaño reducido */
     background: linear-gradient(to right, #4b5563, #4b5563);
     transition: background 0.4s ease;
     flex-shrink: 0;
}
 .swiper-slide-active .testimonial-avatar-ring {
     background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), #EC4899, var(--theme-primary));
     background-size: 300% 100%;
     animation: gradient-rotate 4s linear infinite;
}
 .testimonial-avatar {
     width: 70px;
    /* Tamaño reducido */
     height: 70px;
    /* Tamaño reducido */
     border-radius: 9999px;
     object-fit: cover;
     border: 3px solid #1f2937;
}
 .testimonial-rating {
     display: flex;
     gap: 0.25rem;
     color: #FBBF24;
    /* amber-300 */
     margin-bottom: 1rem;
}
 .testimonial-card blockquote {
     font-size: 0.95rem;
    /* Fuente reducida */
     font-style: italic;
     color: #d1d5db;
     margin: 0;
     line-height: 1.6;
     flex-grow: 1;
     min-height: 80px;
    /* Altura mínima reducida */
}
 .testimonial-card footer {
     margin-top: 1.5rem;
}
 .testimonial-author-name {
     font-size: 1rem;
     font-weight: 700;
     color: white;
}
 .testimonial-author-role {
     display: block;
     font-weight: 500;
     font-size: 0.875rem;
     color: var(--theme-primary-light);
     margin-top: 0.25rem;
}
 .testimonial-swiper-container .swiper-pagination-bullet {
     background-color: rgba(255,255,255,0.5);
}
 .testimonial-swiper-container .swiper-pagination-bullet-active {
     background-color: white !important;
}
 .testimonial-swiper-container .swiper-button-prev, .testimonial-swiper-container .swiper-button-next {
     color: white !important;
}
/* --- Job Offers Section --- */
 .job-card {
     border: 1px solid #e5e7eb;
     transition: all 0.3s ease;
     border-radius: 0.75rem;
}
 .job-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
     border-color: var(--theme-primary-light);
}
 .pagination-btn {
     transition: all 0.2s ease;
     border-radius: 0;
}
 .pagination-btn.active {
     background-color: var(--theme-primary);
     color: white;
     transform: scale(1.1);
}
/* --- Modals & Forms --- */
 .modal-container.hidden {
     display: none;
}
 .modal-content {
     animation: fadeInScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
     border-radius: 0.75rem;
}
 .file-input-label {
     cursor: pointer;
     border-radius: 0.5rem;
}
 .habeas-data-container {
     display: flex;
     align-items: flex-start;
     gap: 0.75rem;
}
 .habeas-data-container p {
     font-size: 0.75rem;
     color: #9ca3af;
     line-height: 1.5;
}
 .habeas-data-checkbox {
     -webkit-appearance: none;
     appearance: none;
     background-color: rgba(0,0,0,0.2);
     margin: 0;
     font: inherit;
     color: currentColor;
     width: 1.15em;
     height: 1.15em;
     border: 1px solid rgba(255,255,255,0.2);
     border-radius: 0.25rem;
     transform: translateY(2px);
     display: grid;
     place-content: center;
     cursor: pointer;
     flex-shrink: 0;
}
 .habeas-data-checkbox::before {
     content: "";
     width: 0.65em;
     height: 0.65em;
     transform: scale(0);
     transition: 120ms transform ease-in-out;
     box-shadow: inset 1em 1em var(--theme-primary-light);
     transform-origin: center;
     clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
 .habeas-data-checkbox:checked::before {
     transform: scale(1);
}
 .form-input.invalid-field {
     border-color: #EF4444 !important;
     box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* MODIFICADO: Se agrupan los selectores para aplicar a ambos botones de campos opcionales. */
.toggle-message-btn,
.toggle-phone-btn {
     width: 100%;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0.75rem 1rem;
     border-radius: 0;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     border: 1px dashed;
     margin-top: 1.5rem;
}

/* MODIFICADO: Estilos de botón para el formulario de servicios. */
.service-form-panel .toggle-message-btn,
.service-form-panel .toggle-phone-btn {
     color: var(--theme-primary-light);
     border-color: var(--theme-primary-light);
     background-color: transparent;
}
.service-form-panel .toggle-message-btn:hover,
.service-form-panel .toggle-phone-btn:hover {
     background-color: var(--theme-glow);
     color: white;
     border-color: var(--theme-primary);
}

/* MODIFICADO: Estilos de botón para los formularios generales. */
#general-contact-form .toggle-message-btn,
#fab-contact-form .toggle-message-btn,
#general-contact-form .toggle-phone-btn,
#fab-contact-form .toggle-phone-btn {
     color: #4F46E5;
     border-color: #C7D2FE;
     background-color: #EEF2FF;
}
#general-contact-form .toggle-message-btn:hover,
#fab-contact-form .toggle-message-btn:hover,
#general-contact-form .toggle-phone-btn:hover,
#fab-contact-form .toggle-phone-btn:hover {
     background-color: #E0E7FF;
     border-color: #A5B4FC;
}

/* MODIFICADO: Se agrupan los wrappers de los campos opcionales para que tengan el mismo comportamiento. */
.message-wrapper,
.phone-wrapper {
     max-height: 0;
     opacity: 0;
     overflow: hidden;
     transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out, margin-top 0.7s ease;
     visibility: hidden;
}
.message-wrapper.is-visible,
.phone-wrapper.is-visible {
     max-height: 500px;
     opacity: 1;
     visibility: visible;
     margin-top: 1.5rem;
}

 .form-input {
     border-radius: 0.5rem !important;
}
/* --- servicios Section --- */
 #servicios {
     position: relative;
     overflow: hidden;
}
 #service-bg-container {
     position: absolute;
     inset: 0;
     z-index: 0;
     background-color: #111827;
     overflow: hidden;
}
 .service-bg-media {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     opacity: 0;
     transform: scale(1.1);
     transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
 .service-bg-media.active {
     opacity: 1;
     transform: scale(1);
}
 .service-bg-media > div {
     width: 100%;
     height: 100%;
     position: absolute;
     inset: 0;
}
 .service-bg-media::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(to top, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.4));
     z-index: 2;
}
 .particles-canvas {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
}
 .service-hub-grid {
     position: relative;
     z-index: 1;
     display: grid;
     grid-template-columns: minmax(0, 1fr);
     align-items: center;
     gap: 2rem;
     min-height: auto;
}
 @media (min-width: 1024px) {
     .service-hub-grid {
         grid-template-columns: 220px 1fr;
         gap: 2.5rem;
         min-height: 700px;
    }
}
 .service-icon-carousel-container {
     display: block;
     width: 100%;
     position: relative;
}
 @media (min-width: 1024px) {
     .service-icon-carousel-container {
         height: 550px;
    }
}
 .service-swiper {
     width: 100%;
     height: 100%;
}
/* ✨ NUEVA REGLA AÑADIDA PARA FORZAR EL CENTRADO ✨ */
 .service-swiper .swiper-wrapper {
     margin: 0 auto;
}
 .service-swiper .swiper-slide {
     display: flex;
     justify-content: center;
     align-items: center;
     opacity: 0.5;
     transition: opacity 0.4s ease, transform 0.4s ease;
     transform: scale(0.9);
}
 .service-swiper .swiper-slide-active {
     opacity: 1;
     transform: scale(1);
}
 .service-icon-node {
     width: 120px;
     height: 110px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     gap: 0.5rem;
     background: rgba(31, 41, 55, 0.4);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 0.75rem;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
     backdrop-filter: blur(4px);
}
 .service-swiper .swiper-slide:not(.swiper-slide-active):hover .service-icon-node {
     background-color: var(--service-theme-color);
     transform: scale(1.05);
     opacity: 0.8;
}
 .service-icon-node.active, .service-swiper .swiper-slide-active .service-icon-node {
     background: var(--theme-primary);
     border-color: var(--theme-primary-light);
     box-shadow: 0 0 25px var(--theme-glow);
}
 .service-icon-node i {
     width: 28px;
     height: 28px;
     color: white;
}
 .service-node-title {
     font-size: 0.75rem;
     color: #d1d5db;
     text-align: center;
     font-weight: 500;
}
 .service-icon-node.active .service-node-title, .service-swiper .swiper-slide-active .service-node-title {
     color: white;
}
 .service-icon-carousel-container .swiper-button-prev, .service-icon-carousel-container .swiper-button-next {
     color: white;
     position: absolute;
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     transition: background-color 0.3s;
     z-index: 10;
     display: flex;
     align-items: center;
     justify-content: center;
}
 .service-icon-carousel-container .swiper-button-prev:hover, .service-icon-carousel-container .swiper-button-next:hover {
     background: var(--theme-primary);
}
 .service-icon-carousel-container .swiper-button-prev {
     left: 5px;
     top: 50%;
     transform: translateY(-50%);
}
 .service-icon-carousel-container .swiper-button-next {
     right: 5px;
     top: 50%;
     transform: translateY(-50%);
}
 .arrow-vertical {
     display: none;
}
 .arrow-horizontal {
     display: block;
}
 @media (min-width: 1024px) {
     .service-icon-carousel-container .swiper-button-prev {
         top: -40px;
         left: 50%;
         transform: translateX(-50%);
    }
     .service-icon-carousel-container .swiper-button-next {
         bottom: -40px;
         left: 50%;
         transform: translateX(-50%);
         top: auto;
         right: auto;
    }
     .arrow-vertical {
         display: block;
    }
     .arrow-horizontal {
         display: none;
    }
}
 .service-icon-carousel-container .swiper-button-prev::after, .service-icon-carousel-container .swiper-button-next::after {
     display: none;
}
 #service-hub-center-content {
     background: rgba(17, 24, 39, 0.7);
     backdrop-filter: blur(16px);
     border-radius: 1.5rem;
     border: 1px solid rgba(255, 255, 255, 0.1);
     color: white;
     padding: 1.5rem;
     opacity: 0;
     transform: scale(0.95);
     transition: opacity 0.6s ease, transform 0.6s ease;
     box-shadow: 0 0 80px rgba(0,0,0,0.5);
     min-width: 0;
}
 @media (min-width: 768px) {
     #service-hub-center-content {
         padding: 2rem;
    }
}
 #service-hub-center-content.content-visible {
     opacity: 1;
     transform: scale(1);
}
/* --- Styles for Upgraded servicios Section --- */
 .service-content-layout {
     display: grid;
     grid-template-columns: minmax(0, 1fr);
     gap: 2rem;
     align-items: start;
}
 @media (min-width: 1024px) {
     .service-content-layout {
         grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
         gap: 2.5rem;
    }
}
 .service-main-panel, .service-form-panel {
     min-width: 0;
}
 .service-main-panel h3 {
     font-size: 1.2375rem;
     font-weight: 800;
     color: white;
     margin-bottom: 0.5rem;
     line-height: 1.2;
}
 @media (min-width: 768px) {
     .service-main-panel h3 {
         font-size: 1.65rem;
    }
}
 .service-main-panel .service-subtitle {
     font-size: 0.928125rem;
     font-weight: 500;
     color: var(--theme-primary-light);
     margin-bottom: 1rem;
}
 .service-main-panel > p {
     font-size: 0.9rem;
     color: #d1d5db;
     margin-bottom: 1.5rem;
     word-break: break-word;
}
 @media (min-width: 768px) {
     .service-main-panel > p {
         font-size: 1rem;
    }
}
 .service-audience-tabs {
     display: flex;
     gap: 0.5rem;
     margin-bottom: 1.5rem;
     border-bottom: 1px solid rgba(255,255,255,0.1);
     padding-bottom: 0.75rem;
}
 .service-audience-tab {
     padding: 0.5rem 1rem;
     border-radius: 0.5rem;
     border: 1px solid transparent;
     font-size: 0.875rem;
     font-weight: 600;
     color: #d1d5db;
     cursor: pointer;
     transition: all 0.3s;
}
 .service-audience-tab:hover {
     background-color: rgba(255,255,255,0.1);
     color: white;
}
 .service-audience-tab.active {
     background-color: var(--theme-primary);
     color: white;
     border-color: var(--theme-primary-light);
}
 .service-crosslink {
     color: var(--theme-primary-light);
     font-weight: 600;
     text-decoration: none;
     border-bottom: 1px dashed var(--theme-primary-light);
     transition: color 0.3s, border-color 0.3s;
}
 .service-crosslink:hover {
     color: white;
     border-color: white;
}
 .case-study-teaser {
     background: rgba(0,0,0,0.2);
     margin-top: 2rem;
     padding: 1rem;
     border-radius: 0.75rem;
     border: 1px solid rgba(255,255,255,0.1);
}
 .case-study-teaser h5 {
     font-size: 0.8rem;
     font-weight: 600;
     color: #9ca3af;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     margin-bottom: 1rem;
}
 .case-study-teaser-content {
     display: flex;
     align-items: center;
     gap: 1.5rem;
}
 .case-study-teaser-metric {
     text-align: center;
}
 .case-study-teaser-metric .value {
     font-size: 2.25rem;
     font-weight: 800;
     color: var(--theme-primary-light);
     line-height: 1;
}
 .case-study-teaser-metric .label {
     font-size: 0.75rem;
     color: #d1d5db;
     max-width: 100px;
     margin: auto;
}
 .case-study-teaser-info h6 {
     font-size: 1rem;
     font-weight: 700;
     color: white;
}
 .case-study-teaser-info p {
     font-size: 0.875rem;
     color: #d1d5db;
     margin-bottom: 0.75rem;
}
 .case-study-teaser-info a {
     font-weight: 600;
     color: white;
}
 .service-subsection {
     margin-top: 2rem;
     opacity: 0;
     transform: translateY(20px);
     animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
 .content-visible .service-subsection:nth-of-type(1) {
     animation-delay: 0.2s;
}
 .content-visible .service-subsection:nth-of-type(2) {
     animation-delay: 0.3s;
}
 .content-visible .service-subsection:nth-of-type(3) {
     animation-delay: 0.4s;
}
 .content-visible .service-subsection:nth-of-type(4) {
     animation-delay: 0.5s;
}
 .service-subsection-title {
     display: flex;
     align-items: center;
     font-size: 1.125rem;
     font-weight: 700;
     color: var(--theme-primary-light);
     margin-bottom: 1rem;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     padding-bottom: 0.5rem;
}
 .service-subsection-title i {
     width: 20px;
     height: 20px;
     margin-right: 0.75rem;
}
 .service-feature-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
}
 @media (min-width: 640px) {
     .service-feature-grid {
         grid-template-columns: 1fr 1fr;
    }
}
 .service-feature-item {
     display: flex;
     align-items: flex-start;
     gap: 0.75rem;
     background: rgba(255, 255, 255, 0.05);
     padding: 0.75rem;
     border-radius: 0.5rem;
}
 .service-feature-item i {
     width: 18px;
     height: 18px;
     color: var(--theme-primary-light);
     flex-shrink: 0;
     margin-top: 3px;
}
 .service-feature-item p {
     font-size: 0.875rem;
     color: #d1d5db;
}
 .dedicated-expert-module {
     background: rgba(0,0,0,0.2);
     padding: 1rem;
     border-radius: 0.75rem;
     border: 1px solid rgba(255,255,255,0.1);
     margin-bottom: 1.5rem;
}
 .dedicated-expert-header {
     font-size: 1.2rem !important;
     font-weight: 600;
     color: #9ca3af;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     margin-bottom: 1rem;
     text-align: center;
}
 @media (min-width: 1024px) and (max-width: 1440px) {
    .dedicated-expert-header {
        font-size: 1.02rem !important;
    }
 }
 .dedicated-expert-card {
     display: flex;
     align-items: center;
     gap: 1rem;
}
 .expert-avatar {
     width: 64px;
     height: 64px;
     border-radius: 9999px;
     object-fit: cover;
     border: 2px solid var(--theme-primary-light);
     flex-shrink: 0;
}
 .expert-info h5 {
     font-size: 1rem;
     font-weight: 700;
     color: white;
}
 .expert-info p {
     font-size: 0.875rem;
     color: var(--theme-primary-light);
     font-weight: 500;
}
/* NEW: Expert quote style */
 .expert-info blockquote {
     font-size: 0.8rem;
     font-style: italic;
     color: #9ca3af;
     margin-top: 0.5rem;
     padding-left: 0.75rem;
     border-left: 2px solid var(--theme-primary);
}
 .expert-creds {
     display: flex;
     gap: 0.5rem;
     margin-top: 0.5rem;
}
 .expert-creds img {
     height: 24px;
     width: auto;
     object-fit: contain;
     filter: grayscale(100%) brightness(1.5);
}
 .service-form-panel {
     background: rgba(255,255,255,0.05);
     padding: 1.5rem;
     border-radius: 1rem;
     border: 1px solid rgba(255, 255, 255, 0.1);
     margin-top: 2rem;
     position: sticky;
     top: 100px;
}
 @media (min-width: 1024px) {
     .service-form-panel {
         margin-top: 0;
         padding: 2rem;
    }
}
 .service-form-panel h4 {
     font-size: 1.125rem;
     font-weight: 700;
     color: white;
     margin-bottom: 1.5rem;
     text-align: center;
}
 @media (min-width: 768px) {
     .service-form-panel h4 {
         font-size: 1.25rem;
    }
}
 .service-form-panel .form-group {
     margin-bottom: 1rem;
}
 .service-form-panel .form-label {
     display: block;
     font-size: 0.875rem;
     color: #d1d5db;
     margin-bottom: 0.5rem;
}
 .service-form-panel .form-input {
     width: 100%;
     background: rgba(0,0,0,0.2);
     border: 1px solid rgba(255,255,255,0.1);
     color: white;
     padding: 0.75rem 1rem;
     transition: border-color 0.3s, box-shadow 0.3s;
}
 .service-form-panel .form-input:focus {
     outline: none;
     border-color: var(--theme-primary-light);
     box-shadow: 0 0 0 3px var(--theme-glow);
}
/* --- FAB & Notifications --- */
 @keyframes ripple {
     0% {
         transform: scale(1);
         opacity: 0.5;
    }
     100% {
         transform: scale(2.5);
         opacity: 0;
    }
}
 @keyframes icon-wave {
     0%, 100% {
         transform: rotate(0deg);
    }
     25% {
         transform: rotate(-20deg);
    }
     75% {
         transform: rotate(20deg);
    }
}
 #contact-fab {
     display: flex;
     position: fixed;
     bottom: 1.5rem;
     right: 1.5rem;
     z-index: 40;
     width: 60px;
     height: 60px;
     border-radius: 50%;
     background-color: var(--theme-primary);
     color: white;
     justify-content: center;
     align-items: center;
     box-shadow: 0 5px 15px rgba(0,0,0,0.2);
     transition: background-color 0.4s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     border: none;
     cursor: pointer;
}
 #contact-fab::before {
     content: '';
     position: absolute;
     z-index: -1;
     inset: 0;
     border-radius: 50%;
     background-color: var(--theme-primary);
     animation: ripple 2s infinite ease-out;
}
 #contact-fab:hover {
     transform: scale(1.1);
}
 #contact-fab:hover i {
     animation: icon-wave 0.5s ease-in-out;
}
 #contact-fab:active {
     transform: scale(0.95);
}
 .notification-modal {
     position: fixed;
     inset: 0;
     z-index: 100;
     display: flex;
     align-items: center;
     justify-content: center;
     background-color: rgba(17, 24, 39, 0.8);
     backdrop-filter: blur(8px);
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease, visibility 0.3s ease;
}
 .notification-modal.is-visible {
     opacity: 1;
     visibility: visible;
}
 .notification-modal-content {
     background-color: white;
     border-radius: 0.75rem;
     padding: 2.5rem;
     width: 90%;
     max-width: 420px;
     text-align: center;
     box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
     animation: notification-bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
 .notification-icon {
     margin-bottom: 1.5rem;
}
 .notification-icon .checkmark {
     stroke-dasharray: 30;
     stroke-dashoffset: 30;
     animation: draw-check 0.5s 0.2s ease-out forwards;
}
 .notification-icon .cross-1 {
     stroke-dasharray: 20;
     stroke-dashoffset: 20;
     animation: draw-x-1 0.4s 0.2s ease-out forwards;
}
 .notification-icon .cross-2 {
     stroke-dasharray: 20;
     stroke-dashoffset: 20;
     animation: draw-x-2 0.4s 0.4s ease-out forwards;
}
 .notification-icon .warning-symbol {
     animation: pulse-warning 1.5s ease-in-out infinite;
}
 .notification-modal-content h3 {
     font-size: 1.5rem;
     font-weight: 700;
     color: #111827;
     margin-bottom: 0.5rem;
}
 .notification-modal-content p {
     color: #4b5563;
     margin-bottom: 2rem;
}
 .notification-modal-content button {
     width: 100%;
     padding: 0.75rem;
     border-radius: 0;
     color: white;
     font-weight: 600;
     border: none;
     cursor: pointer;
     transition: transform 0.2s, box-shadow 0.2s;
}
 .notification-modal-content button:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
 .notification-modal.modal--success .notification-modal-content button {
     background-color: #10B981;
}
 .notification-modal.modal--error .notification-modal-content button {
     background-color: #EF4444;
}
 .notification-modal.modal--warning .notification-modal-content button {
     background-color: #F59E0B;
}
 #apply-from-detail-button {
     background-image: linear-gradient(to right, var(--theme-primary) 0%, var(--theme-secondary) 50%, var(--theme-primary) 100%);
}

/* NEW: Scroll Progress Bar */
 #scroll-progress-bar {
     position: absolute;
     top: 0;
     left: 0;
     height: 5px;
     background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), #EC4899);
     width: 0%;
     z-index: 999999999999;
     transition: width 0.1s linear;
     display: block;
}

/* --- NEW STYLES FOR VALIDATION & ANTI-BOT --- */

/* 1. Honeypot Field: Make it truly invisible */
.hidden-honeypot {
    position: absolute;
    left: -5000px;
    top: -5000px;
    opacity: 0;
    pointer-events: none;
}

/* 2. Human Challenge Styling */
.human-challenge-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    visibility: hidden;
    margin-top: 0;
}
.human-challenge-wrapper.is-visible {
    max-height: 100px; /* Adjust as needed */
    opacity: 1;
    visibility: visible;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255,255,255,0.2);
}
.human-challenge-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary-light);
    margin-bottom: 0.75rem;
    text-align: center;
}
.human-challenge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #d1d5db;
}

/* 3. General Form Group Wrapper for error messages */
.form-group-wrapper {
    margin-bottom: 1rem;
}

/* 4. Error Message Styling */
.error-message-container {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #F87171; /* A light red for dark backgrounds */
    font-weight: 500;
}
#general-contact-form .error-message-container,
#fab-contact-form .error-message-container {
    color: #EF4444; /* A standard red for light backgrounds */
}

/* 5. Invalid Checkbox Styling */
.habeas-data-checkbox.invalid-field {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* --- AJUSTE DE TAMAÑO DE FUENTE Y DESBORDAMIENTO EN EL TITULAR PRINCIPAL --- */
/*
    Se aplica un tamaño de fuente relativo al titular principal.
    Esto hace que el texto del efecto de máquina de escribir sea
    un 30% más pequeño que el tamaño de su padre (`<h1>`), sin importar
    la resolución de la pantalla.
    
    Además, se fuerza a que el texto permanezca en una sola línea
    para evitar el problema de desbordamiento.
*/
#inicio-h1 #typewriter {
    font-size: 70%;
    white-space: nowrap;
}

/* --- NUEVA REGLA PARA EL LOGO EN MENOR RESOLUCIÓN (CORREGIDO) --- */
@media (max-width: 550px) {
    .header-logo .text-xl {
        font-size: 1.47rem; /* Aumenta un 15% (de 1.25rem a 1.4375rem, se redondea a 1.35rem para un mejor aspecto) */
    }
}