/* ============================================
   CardioSmart IPS - Custom Styles
   ============================================ */

/* ============================================
   FONTS - All Round Gothic (Tipografía Oficial CardioSmart)
   ============================================ */

/* NOTA: Las fuentes All Round Gothic oficiales no están disponibles.
   Se usarán las fuentes de Google Fonts (Montserrat y Lato) como alternativa.
   Descomenta estas reglas cuando tengas los archivos de fuente. */

/* All Round Gothic XLig */
/*
@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-XLig.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-XLig.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-XLigOblique.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-XLigOblique.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
*/

/* All Round Gothic Book */
/*
@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-Book.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-BookOblique.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-BookOblique.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
*/

/* All Round Gothic Medium */
/*
@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-Medium.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-MediumOblique.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-MediumOblique.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
*/

/* All Round Gothic Demi */
/*
@font-face {
    font-family: 'All Round Gothic';
    src: url('../assets/fonts/AllRoundGothic-Demi.woff2') format('woff2'),
         url('../assets/fonts/AllRoundGothic-Demi.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
*/

/* ============================================
   1. ROOT VARIABLES & GENERAL STYLES
   ============================================ */

:root {
    /* Primary Colors - CardioSmart Brand (Manual de Marca) */
    --primary-color: #34506F;        /* Azul principal del logo */
    --primary-dark: #2B4560;         /* Azul oscuro del logo */
    --primary-light: #3D5B7E;        /* Azul claro del logo */
    
    /* Secondary Colors - Verde del Manual de Marca */
    --secondary-color: #8FBD3F;      /* Verde principal del logo */
    --secondary-dark: #78A832;       /* Verde oscuro del logo */
    --secondary-light: #A5D24D;      /* Verde claro del logo */
    
    /* Accent Colors */
    --accent-blue: #3D5B7E;          /* Azul de acento */
    --accent-green: #78A832;         /* Verde de acento */
    --accent-color: #8FBD3F;         /* Color de acento principal (verde) */
    
    /* Neutral Colors */
    --dark: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #CCCCCC;
    --light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Gradients - Mezcla profesional de azul y verde */
    --gradient-primary: linear-gradient(135deg, #34506F 0%, #3D5B7E 50%, #78A832 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(52, 80, 111, 0.95) 0%, rgba(61, 91, 126, 0.92) 50%, rgba(120, 168, 50, 0.90) 100%);
    --gradient-blue-green: linear-gradient(90deg, #34506F 0%, #8FBD3F 100%);
    --gradient-hero: linear-gradient(135deg, #2B4560 0%, #34506F 40%, #78A832 100%);
    
    /* Typography - All Round Gothic (Manual de Marca CardioSmart) */
    --font-primary: 'All Round Gothic', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'All Round Gothic', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 400; /* All Round Gothic Book */
    letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600; /* All Round Gothic Demi */
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

h1 {
    font-weight: 600; /* All Round Gothic Demi */
    letter-spacing: -1px;
}

h2 {
    font-weight: 600; /* All Round Gothic Demi */
    letter-spacing: -0.5px;
}

h3, h4 {
    font-weight: 500; /* All Round Gothic Medium */
}

h5, h6 {
    font-weight: 400; /* All Round Gothic Book */
}

/* Clases de utilidad para variaciones de fuente */
.font-xlig {
    font-weight: 200; /* All Round Gothic XLig */
}

.font-book {
    font-weight: 400; /* All Round Gothic Book */
}

.font-medium {
    font-weight: 500; /* All Round Gothic Medium */
}

.font-demi {
    font-weight: 600; /* All Round Gothic Demi */
}

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

img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

img[src] {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-padding {
    padding: var(--section-padding);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Equal height columns */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.row.g-4 > [class*='col-'] {
    display: flex;
}

/* ============================================
   2. NAVIGATION
   ============================================ */

.navbar {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: var(--gradient-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    backdrop-filter: blur(15px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--white);
}

.navbar-brand .brand-icon {
    height: 110px;
    width: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled .navbar-brand .brand-icon {
    height: 85px;
    width: 85px;
    margin-right: 0;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

.navbar-brand .logo {
    height: 65px;
    margin-right: 0;
    transition: var(--transition);
}

/* Logo blanco visible */
.navbar-brand .logo-white {
    display: block;
}

/* Logo a color oculto */
.navbar-brand .logo-color {
    display: none;
}

/* Al hacer scroll - mantener logo blanco */
.navbar.scrolled .navbar-brand .logo-white {
    display: block;
}

.navbar.scrolled .navbar-brand .logo-color {
    display: none;
}

.navbar.scrolled .navbar-brand .logo {
    height: 65px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 20px;
    margin: 0 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
    border-radius: var(--radius-sm);
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--white);
}

.navbar-nav .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--white);
    opacity: 0.85;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-light), var(--white));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* Navbar Toggler for Mobile */
.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-appointment {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-light);
    color: var(--white);
}

/* ============================================
   3. HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--white);
    padding-top: 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('../assets/img/hero-bg.jpg') center/cover no-repeat; */
    /* NOTA: Imagen hero-bg.jpg no existe. Descomenta cuando agregues la imagen. */
    background: linear-gradient(135deg, rgba(52, 80, 111, 0.05) 0%, rgba(119, 158, 126, 0.05) 100%);
    opacity: 0.1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
}

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

.hero-content {
    color: var(--dark);
    animation: fadeInLeft 0.8s ease-out;
}

.hero-logo {
    width: 450px;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
    animation: fadeInDown 1s ease-out;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 400px;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(52, 80, 111, 0.4);
}

.hero-buttons .btn-outline-light {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 80, 111, 0.3);
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

.stat-item:nth-child(odd) .stat-number {
    color: var(--secondary-color);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    text-align: center;
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

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

.hero-image img {
    max-width: 100%;
    max-height: 550px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--secondary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--secondary-dark);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ============================================
   4. SECTION HEADERS
   ============================================ */

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 60px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Divider Block */
.section-divider-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    max-width: 200px;
}

.divider-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding: 0 20px;
}

/* ============================================
   5. ABOUT SECTION
   ============================================ */

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-md);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--gray-dark);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   6. SERVICES SECTION
   ============================================ */

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::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);
    transition: all 0.6s;
    opacity: 0;
}

.service-card:hover::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 50%;
        left: 50%;
        opacity: 0;
    }
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-card:nth-child(even):hover {
    border-color: var(--primary-color);
}

.service-card:nth-child(odd) .service-icon {
    background: var(--gradient-blue-green);
}

.service-card:nth-child(even) .service-icon {
    background: var(--gradient-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ============================================
   7. WHY CHOOSE US SECTION
   ============================================ */

.why-us-list {
    margin-top: 30px;
}

.why-us-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-us-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.why-us-item:hover::before {
    transform: scaleY(1);
}

.why-us-item:hover {
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(12px);
}

.why-us-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    min-width: 60px;
}

.why-us-item:nth-child(odd) .why-us-number {
    color: var(--secondary-color);
}

.why-us-item:nth-child(even) .why-us-number {
    color: var(--primary-color);
}

.why-us-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.why-us-content p {
    color: var(--gray);
    margin: 0;
}

.why-us-image img {
    border-radius: var(--radius-md);
}

/* ============================================
   8. SPECIALISTS SECTION
   ============================================ */

.specialist-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.specialist-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.specialist-image {
    position: relative;
    overflow: hidden;
}

.specialist-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) brightness(0.95);
}

/* Ajuste específico para todas las fotos de especialistas */
.specialist-image {
    background-color: #F1F1F1;
}

.specialist-image img[src*="Jonnathan Patiño Pinilla"],
.specialist-image img[src*="Orlando Castaño Cifuentes"],
.specialist-image img[src*="Stephany Barbosa Balaguera"] {
    object-fit: contain;
    object-position: center top;
}

.specialist-card:hover .specialist-image img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1.05);
}

.specialist-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.specialist-card:hover .specialist-social {
    opacity: 1;
}

.specialist-social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.specialist-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.specialist-info {
    padding: 25px;
    text-align: center;
}

.specialist-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.specialist-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.specialist-card:nth-child(2n) .specialist-title {
    color: var(--secondary-dark);
}

.specialist-credentials {
    text-align: left;
}

.specialist-credentials p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.specialist-credentials i {
    color: var(--primary-color);
}

.specialist-card:nth-child(2n) .specialist-credentials i {
    color: var(--secondary-color);
}

.specialist-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   9. TESTIMONIALS SECTION
   ============================================ */

.testimonial-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.testimonial-author p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* ============================================
   10. APPOINTMENT SECTION
   ============================================ */

.appointment-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.appointment-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.appointment-benefits {
    list-style: none;
    padding: 0;
}

.appointment-benefits li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.appointment-benefits i {
    font-size: 1.3rem;
}

.appointment-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.appointment-form .form-control,
.appointment-form .form-select {
    padding: 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 80, 111, 0.1);
    transform: translateY(-2px);
}

.appointment-form .form-control:hover,
.appointment-form .form-select:hover {
    border-color: var(--secondary-light);
}

/* ============================================
   11. CONTACT SECTION
   ============================================ */

.contact-info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-info-card:hover::after {
    transform: scaleX(1);
}

.contact-info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-info-card:nth-child(2) .contact-icon {
    background: var(--gradient-blue-green);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    padding: 20px 0;
}

.contact-info-card p {
    color: var(--gray);
    margin: 0;
}

.contact-info-card .contact-text {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-info-card .whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.contact-info-card .whatsapp-link:hover {
    color: #128C7E;
    transform: scale(1.05);
}

.contact-info-card .btn-success {
    background: #25D366;
    border-color: #25D366;
    color: white;
    margin-top: auto;
}

.contact-info-card .btn-success:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.contact-info-card .btn-outline-primary {
    margin-top: auto;
}

/* Media query para asegurar altura uniforme en desktop */
@media (min-width: 992px) {
    .contact-info-card {
        min-height: 420px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .contact-content {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 160px !important;
    }
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
}

.contact-form .form-control {
    padding: 12px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    border-radius: var(--radius-md);
}

/* ============================================
   12. FOOTER
   ============================================ */

.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 80, 111, 0.95) 0%, rgba(61, 91, 126, 0.92) 50%, rgba(120, 168, 50, 0.90) 100%);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 80, 111, 0.4);
}

.footer-social a:nth-child(2n):hover {
    background: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
    transform: translateX(5px);
}

.footer-links li:nth-child(odd) a:hover {
    color: var(--secondary-light);
}

.footer-schedule {
    list-style: none;
    padding: 0;
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-schedule li span:first-child {
    font-weight: 600;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   13. FLOATING APPOINTMENT BUTTON
   ============================================ */

.floating-appointment {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    background: linear-gradient(135deg, #34506F 0%, #3D5B7E 50%, #78A832 100%) !important;
    background: var(--gradient-primary) !important;
    color: #FFFFFF !important;
    color: var(--white) !important;
    padding: 15px 25px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: floatButton 3s ease-in-out infinite !important;
}

.floating-appointment i {
    font-size: 1.2rem;
}

.floating-appointment:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(52, 80, 111, 0.4);
    color: var(--white);
    animation-play-state: paused;
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.floating-appointment span {
    font-family: 'All Round Gothic', 'Montserrat', sans-serif;
}

/* ============================================
   14. BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 12px 45px rgba(120, 168, 50, 0.4);
    }
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   15. RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding: 20px 0;
        background: var(--gradient-primary);
        border-radius: var(--radius-sm);
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        color: var(--white);
        padding: 10px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-us-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn.ms-3 {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .experience-badge {
        right: 15px;
        bottom: 15px;
        padding: 20px;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-info-card,
    .contact-form-container,
    .appointment-form-container {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        padding-left: 40px;
    }
    
    .section-subtitle::before {
        width: 30px;
    }
    
    .contact-map iframe {
        height: 300px;
    }
}

/* ============================================
   15. UTILITY CLASSES
   ============================================ */

.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue-green);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Utility Classes - Green Accent */
.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-gradient-green {
    background: var(--gradient-blue-green) !important;
}

.border-green {
    border-color: var(--secondary-color) !important;
}

/* Accent alternation for dynamic elements */
.accent-green {
    color: var(--secondary-color) !important;
}

.bg-accent-green {
    background-color: var(--secondary-color) !important;
}

/* ============================================
   16. ANIMATIONS
   ============================================ */

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

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ============================================
   CUSTOM STYLES - CardioSmart
   ============================================ */

/* Value Badges */
.value-badge {
    background: var(--white);
    padding: 20px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid transparent;
}

.value-badge:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 80, 111, 0.2);
}

.value-badge:nth-child(odd):hover {
    border-color: rgba(143, 189, 63, 0.3);
}

.value-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.value-badge:nth-child(odd) i {
    color: var(--secondary-color);
}

.value-badge:nth-child(even) i {
    color: var(--primary-color);
}

.value-badge:hover i {
    transform: scale(1.1);
}

.value-badge span {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: block;
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.info-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-left-color: var(--secondary-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-card h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Privacy Policy Boxes */
.privacy-intro {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--light-blue);
    height: 100%;
    transition: all 0.3s ease;
}

.privacy-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.15);
    transform: translateY(-5px);
}

.privacy-box h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.privacy-box p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: left;
    word-spacing: normal;
    letter-spacing: normal;
}

.privacy-box .custom-list {
    font-size: 0.9rem;
}

.privacy-box .custom-list li {
    padding: 6px 0 6px 30px;
    text-align: left;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Ethics and Conduct Styles */
.principle-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--light-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.principle-badge:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.2);
    transform: translateY(-10px) scale(1.03);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.principle-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.principle-badge:nth-child(odd) i {
    color: var(--secondary-color);
}

.principle-badge:nth-child(even) i {
    color: var(--primary-color);
}

.principle-badge:hover i {
    transform: scale(1.15) rotate(5deg);
}

.principle-badge p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
    text-align: center;
    text-justify: auto;
}

.conduct-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.conduct-card:nth-child(odd) {
    border-left-color: var(--secondary-color);
}

.conduct-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}
.conduct-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.conduct-card:hover {
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.15);
    transform: translateX(5px);
}

.conduct-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
}

.conduct-card:nth-child(odd) .conduct-number {
    background: var(--gradient-blue-green);
}

.conduct-card:hover .conduct-number {
    transform: rotate(360deg);
}

.conduct-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.ethics-section h5,
.conduct-section h5 {
    font-size: 1.75rem;
    font-weight: 600;
}

.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding: 8px 0 8px 35px;
    position: relative;
    line-height: 1.6;
}

.custom-list li:before {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.custom-list-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-list-inline li {
    padding: 8px 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    color: var(--gray-dark);
    font-weight: 500;
}

/* Specialist Card Updates */
.specialist-credentials {
    margin-top: 15px;
}

.specialist-credentials p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.specialist-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* Service Card Extended */
.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card .service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-card .service-description strong {
    color: var(--primary-color);
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 450px;
    background: var(--light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .value-badge span {
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .custom-list li {
        font-size: 0.9rem;
    }
}

/* ============================================
   TEXT ALIGNMENT - JUSTIFY
   ============================================ */

/* About Section */
.about-text {
    text-align: justify;
}

/* Service Cards */
.service-description {
    text-align: justify;
}

/* Info Cards - Derechos, Deberes, etc */
.info-card p {
    text-align: justify;
}

.info-card ol li,
.info-card ul li {
    text-align: justify;
}

/* Footer */
.footer-text {
    text-align: justify;
}

/* Appointment Section */
.appointment-text {
    text-align: justify;
}

/* Section descriptions */
.section-description {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero subtitle */
.hero-subtitle {
    text-align: justify;
}

/* Specialist bio and credentials */
.specialist-bio {
    text-align: justify !important;
}

.specialist-credentials p {
    text-align: left;
}

/* Why us content */
.why-us-content p {
    text-align: justify;
}

/* General paragraph justification */
p:not(.text-center):not(.specialist-title):not(.stat-label):not(.section-subtitle) {
    text-align: justify;
}

/* ============================================
   ADDITIONAL INTERACTIVE EFFECTS
   ============================================ */

/* Smooth Focus Ring for Accessibility */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Section Entrance Animations */
.section-padding {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Link Hover Effects */
a:not(.btn):not(.nav-link) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn):not(.nav-link):hover {
    color: var(--primary-color);
}

/* Card Lift Effect Base */
.card-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Text Gradient Effect */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Ripple Effect Enhancement */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Image Zoom Effect on Hover */
.img-zoom-hover {
    overflow: hidden;
    position: relative;
}

.img-zoom-hover img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom-hover:hover img {
    transform: scale(1.1);
}

/* Stagger Animation for Lists */
.stagger-animation > * {
    opacity: 0;
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

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

/* Skeleton Loading Effect */
.skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Parallax Effect Base */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
