/**
 * Sánchez y Díaz Seguros - Main Stylesheet
 * Professional design system with modern interactions
 *
 * @package SanchezYDiaz
 * @since 1.0.0
 */

/* ============================================
   CSS VARIABLES - Design Tokens
   ============================================ */
:root {
    /* Brand Colors */
    --color-primary: #FF8311;
    --color-primary-light: #F5A800;
    --color-primary-dark: #C45A00;
    --color-secondary: #2B1D16;
    --color-accent: #FFB700;
    
    /* Neutral Colors */
    --color-dark: #1a1a2e;
    --color-gray-900: #2d2d3a;
    --color-gray-800: #3f3f4e;
    --color-gray-700: #52525f;
    --color-gray-600: #6e6e7a;
    --color-gray-500: #8b8b95;
    --color-gray-400: #a8a8b0;
    --color-gray-300: #c5c5cb;
    --color-gray-200: #e2e2e6;
    --color-gray-100: #f5f5f7;
    --color-white: #ffffff;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2vw, 4rem);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover, a:focus {
    color: var(--color-primary-light);
}

strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-narrow {
    max-width: var(--container-lg);
}

.container-wide {
    max-width: var(--container-2xl);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.2);
}

.btn-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #F5A800;
    border-color: #F5A800;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 131, 17, 0.3);
}

.btn-secondary {
    color: var(--color-white);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #FFB700;
    border-color: #FFB700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    color: var(--color-primary);
    background-color: transparent;
    border-color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus {
    color: var(--color-white);
    background-color: #FF8311;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-gray-200);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
}

/* ============================================
   FORMS
   ============================================ */
.form-field {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--color-gray-900);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--color-gray-900);
    background-color: var(--color-white);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-error);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
}

.badge-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.badge-success {
    color: var(--color-white);
    background-color: var(--color-success);
}

.badge-warning {
    color: var(--color-dark);
    background-color: var(--color-warning);
}

.badge-info {
    color: var(--color-white);
    background-color: var(--color-info);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in,
.slide-up,
.slide-in-left,
.slide-in-right {
    opacity: 0;
}

.fade-in.is-visible {
    animation: fadeIn 0.6s var(--transition-base) forwards;
}

.slide-up.is-visible {
    animation: slideUp 0.6s var(--transition-base) forwards;
}

.slide-in-left.is-visible {
    animation: slideInLeft 0.6s var(--transition-base) forwards;
}

.slide-in-right.is-visible {
    animation: slideInRight 0.6s var(--transition-base) forwards;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

/* Solo la barra principal (logo + menú) es sticky */
.site-header-main {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.site-header-main.is-sticky {
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0px !important;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
}

.site-header-main.is-sticky .header-wave-bottom {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Custom cursor - Consistente en todas las páginas */
body,
html {
    cursor: default !important;
}

a, button, input[type="submit"], input[type="button"], .btn, .button, [role="button"], 
.wp-block-button__link, select, .swiper-button-next, .swiper-button-prev,
.clickable, [onclick] {
    cursor: pointer !important;
}

/* Asegurar que inputs y textareas tengan el cursor text */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="password"], textarea {
    cursor: text !important;
}

/* Logo heat wave effect */
.logo-heat-wave {
    animation: heatWaveDistortion 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heatWaveDistortion {
    0%, 100% {
        transform: scaleY(1) scaleX(1);
        filter: blur(0px);
    }
    25% {
        transform: scaleY(1.008) scaleX(0.998);
        filter: blur(0.3px);
    }
    50% {
        transform: scaleY(0.995) scaleX(1.005);
        filter: blur(0.2px);
    }
    75% {
        transform: scaleY(1.005) scaleX(0.997);
        filter: blur(0.3px);
    }
}

/* Floating animation for stats cards */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 18px 60px rgba(255, 131, 17, 0.45);
    }
    25% {
        transform: translateY(-12px) rotate(0.5deg);
        box-shadow: 0 25px 70px rgba(255, 131, 17, 0.5);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
        box-shadow: 0 30px 80px rgba(255, 131, 17, 0.55);
    }
    75% {
        transform: translateY(-12px) rotate(-0.5deg);
        box-shadow: 0 25px 70px rgba(255, 131, 17, 0.5);
    }
}

@keyframes floatCard2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 18px 60px rgba(245, 168, 0, 0.45);
    }
    25% {
        transform: translateY(-15px) rotate(-0.5deg);
        box-shadow: 0 28px 75px rgba(245, 168, 0, 0.5);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
        box-shadow: 0 22px 65px rgba(245, 168, 0, 0.48);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
        box-shadow: 0 28px 75px rgba(245, 168, 0, 0.5);
    }
}

@keyframes floatCard3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 18px 60px rgba(255, 183, 0, 0.45);
    }
    25% {
        transform: translateY(-10px) rotate(0.5deg);
        box-shadow: 0 24px 68px rgba(255, 183, 0, 0.48);
    }
    50% {
        transform: translateY(-18px) rotate(0deg);
        box-shadow: 0 32px 85px rgba(255, 183, 0, 0.55);
    }
    75% {
        transform: translateY(-10px) rotate(-0.5deg);
        box-shadow: 0 24px 68px rgba(255, 183, 0, 0.48);
    }
}

/* White wave under main header bar */
.site-header-main {
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Services Slider - Uniform card heights */
.swiper {
    padding: 10px !important;
}

.services-swiper .swiper-wrapper,
.services-related-swiper .swiper-wrapper {
    align-items: stretch;
}

.services-swiper .swiper-slide,
.services-related-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.services-swiper .swiper-slide > div,
.services-related-swiper .swiper-slide > div {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Google Reviews - Fuentes oficiales */
.google-reviews-wrapper,
.google-reviews-wrapper * {
    font-family: var(--font-body) !important;
}

.google-reviews-wrapper .review-author,
.google-reviews-wrapper .reviewer-name,
.google-reviews-wrapper h3,
.google-reviews-wrapper h4 {
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
}

.google-reviews-wrapper .review-text,
.google-reviews-wrapper .review-content,
.google-reviews-wrapper p {
    font-family: var(--font-body) !important;
    line-height: 1.6 !important;
}

/* Particle Animations */
@keyframes floatParticles {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg);
    }
    75% {
        transform: translate(-35px, -40px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Hero Icon Float Animation */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.02);
    }
    50% {
        transform: translateY(-10px) scale(1);
    }
    75% {
        transform: translateY(-25px) scale(0.98);
    }
}

/* Hero Photo Float 1 */
@keyframes photoFloat1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* Hero Photo Float 2 */
@keyframes photoFloat2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(-1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Protección de partículas - prevenir que se oculten */
.particle-dust {
    display: block !important;
    visibility: visible !important;
    opacity: inherit !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Table of Contents */
#toc-nav a {
    transition: all 0.2s ease;
}

#toc-nav a:hover {
    transform: translateX(4px);
}

/* Active link styling */
#toc-nav a.active {
    background-color: rgba(255, 131, 17, 0.1);
    color: #FF8311;
    font-weight: 600;
    border-left: 2px solid #FF8311;
}

.header-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    width: 100%;
    height: 60px;
    overflow: visible;
    line-height: 0;
    pointer-events: none;
    z-index: 0;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header-wave-bottom svg {
    display: block;
    width: calc(100% + 4px);
    height: 100%;
    margin-left: -2px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Header Waves */
.header-wave-container {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    color: var(--color-white);
}

.header-wave-container--top {
    top: -58px;
}

.header-wave-container--bottom {
    bottom: -58px;
}

.header-wave-container--invert {
    transform: rotate(180deg);
}

.header-wave-container--light {
    color: #f7eee1;
}

.header-wave-group {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-wave {
    position: absolute;
    inset: 0;
}

.header-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.header-wave path {
    fill: var(--wave-color, currentColor);
}

.header-wave--back {
    opacity: 0.35;
    transform: translateY(6px) scaleX(1.02);
}

.header-wave--front {
    opacity: 0.75;
    animation: headerWaveDrift 12s ease-in-out infinite;
}

@keyframes headerWaveDrift {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-6px) translateX(-12px);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.primary-navigation ul {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-gray-900);
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all var(--transition-base);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-modal);
    background-color: var(--color-white);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.cookie-banner__content h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.cookie-banner__content p {
    margin-bottom: var(--space-3);
    color: var(--color-gray-700);
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cookie-modal.cookie-modal--visible {
    opacity: 1;
}

.cookie-modal__inner {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 90%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .primary-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow);
    }
    
    .primary-navigation.is-active {
        max-height: 500px;
    }
    
    .primary-navigation ul {
        flex-direction: column;
        padding: var(--space-6);
    }
    
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-banner__actions .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SERVICES SLIDER - SWIPER CUSTOMIZATION
   ============================================ */
.services-swiper,
.services-related-swiper {
    padding: 0 60px 60px;
    position: relative;
}

.services-swiper .swiper-slide,
.services-related-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Botones de navegación (Home y Related) */
.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev,
.services-related-swiper .swiper-button-next,
.services-related-swiper .swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    top: 50% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
}

.services-swiper .swiper-button-next,
.services-related-swiper .swiper-button-next {
    right: 10px !important;
}

.services-swiper .swiper-button-prev,
.services-related-swiper .swiper-button-prev {
    left: 10px !important;
}

.services-swiper .swiper-button-next:hover,
.services-swiper .swiper-button-prev:hover,
.services-related-swiper .swiper-button-next:hover,
.services-related-swiper .swiper-button-prev:hover {
    background: #FF8311 !important;
    box-shadow: 0 6px 20px rgba(255, 131, 17, 0.3) !important;
}

.services-swiper .swiper-button-next::after,
.services-swiper .swiper-button-prev::after,
.services-related-swiper .swiper-button-next::after,
.services-related-swiper .swiper-button-prev::after {
    font-size: 20px !important;
    color: #FF8311 !important;
    font-weight: 900 !important;
}

.services-swiper .swiper-button-next:hover::after,
.services-swiper .swiper-button-prev:hover::after,
.services-related-swiper .swiper-button-next:hover::after,
.services-related-swiper .swiper-button-prev:hover::after {
    color: white !important;
}

.services-swiper .swiper-button-disabled,
.services-related-swiper .swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Paginación bullets (Home y Related) */
.services-swiper .swiper-pagination,
.services-related-swiper .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 32px !important;
}

.services-swiper .swiper-pagination-bullet,
.services-related-swiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #E5E7EB !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    margin: 0 6px !important;
}

.services-swiper .swiper-pagination-bullet-active,
.services-related-swiper .swiper-pagination-bullet-active {
    background: #FF8311 !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* Botón CTA en las cards - texto siempre blanco */
.services-swiper .swiper-slide a[class*="bg-gradient"] {
    color: white !important;
}

.services-swiper .swiper-slide a[class*="bg-gradient"]:hover {
    color: white !important;
}

@media (max-width: 768px) {
    .services-swiper,
    .services-related-swiper {
        padding: 0 20px 60px;
    }
    
    .services-swiper .swiper-button-next,
    .services-swiper .swiper-button-prev,
    .services-related-swiper .swiper-button-next,
    .services-related-swiper .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .services-swiper .swiper-button-next::after,
    .services-swiper .swiper-button-prev::after,
    .services-related-swiper .swiper-button-next::after,
    .services-related-swiper .swiper-button-prev::after {
        font-size: 16px !important;
    }
}
