/* Estilos para pÃ¡ginas internas (Presupuesto, Contacto, Servicios, GalerÃ­a, Directorio) */

.page-main {
    min-height: 60vh;
    padding-top: 0;
}

.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-hero-small {
    padding: 60px 0 50px;
}

.page-hero .subtitle {
    color: var(--accent);
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.template-blog .page-title,
.template-careers .page-title {
    color: var(--dark);
}

.page-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.template-blog .page-lead,
.template-careers .page-lead {
    color: var(--gray);
}

.container-narrow {
    max-width: 720px;
}

.form-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    border: 1px solid var(--glass-border);
}

.form-modern .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .form-modern .form-row {
        grid-template-columns: 1fr;
    }
}

.form-modern .form-group {
    margin-bottom: 24px;
}

.form-modern label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-modern input,
.form-modern select,
.form-modern textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-modern input:focus,
.form-modern select:focus,
.form-modern textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Contacto: mapa + info */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-info-card p,
.contact-info-card a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 16px;
}

.contact-info-card a:hover {
    color: var(--primary);
}

.map-placeholder {
    background: var(--light);
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border: 2px dashed var(--gray-light);
}

/* Servicios: lista de especialidades */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.service-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item .service-item-content {
    padding: 24px;
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* GalerÃ­a grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.gallery-item .gallery-caption {
    padding: 16px;
}

.gallery-item .gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.gallery-item .gallery-caption small {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Directorio: cards de especialistas */
.directorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.doctor-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all var(--transition-base);
}

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

.doctor-card .doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.doctor-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.doctor-card .specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.doctor-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.doctor-card .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Pricing Cards - Planes de Maternidad */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--glass-border);
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(235, 94, 155, 0.05) 0%, rgba(28, 155, 212, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-light);
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-price .currency {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 600;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--gray);
}

.pricing-features i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Highlighted Plan - Plan de cesáreas */
.pricing-card-highlight {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--glass-border);
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    position: relative;
    transition: all var(--transition-base);
}

.highlight-main-flex {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

.highlight-footer {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    background: rgba(28, 155, 212, 0.05);
    border-radius: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.95rem;
    border: 1px dashed rgba(28, 155, 212, 0.3);
}

.highlight-footer i {
    color: var(--primary);
    font-size: 1.1rem;
}

.highlight-footer strong {
    color: var(--dark);
    font-weight: 700;
}

#plan-cesarea {
    scroll-margin-top: 100px;
}

.pricing-card-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border-color: var(--secondary);
}

.pricing-card-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(235, 94, 155, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.highlight-content {
    flex: 1;
    min-width: 320px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.highlight-features-grid {
    flex: 1.5;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    z-index: 1;
}

.pricing-card-highlight h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.highlight-ref {
    display: block;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 700;
}

.pricing-card-highlight .pricing-badge {
    top: -12px;
    right: 40px;
    z-index: 10;
}

@media (max-width: 768px) {
    .pricing-card-highlight {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }
    .highlight-main-flex {
        flex-wrap: wrap;
    }
    .pricing-card-highlight h2 {
        font-size: 2rem;
    }
}

/* Service Details Grid */
.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.detail-card {
    background: var(--light);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-base);
}

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

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.detail-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(28, 155, 212, 0.1) 0%, rgba(235, 94, 155, 0.1) 100%);
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
    border-left: 4px solid var(--primary);
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    margin-bottom: 8px;
    color: var(--gray);
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 16px;
}

.content-section>p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Stats Grid Premium */
.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.stat-card-premium {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--glass-border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-card-premium:hover::before {
    transform: scaleX(1);
}

.stat-icon-premium {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.stat-number-premium {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ============================================
   BLOG / NOTICIAS STYLES
   ============================================ */
.template-blog .page-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    align-items: center;
}

.featured-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.featured-content {
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-meta i {
    color: var(--primary);
}

.featured-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.blog-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.3;
}

.blog-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: var(--secondary);
    gap: 12px;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-img-wrapper {
        min-height: 300px;
    }
}

/* ============================================
   CAREERS / TALENTO STYLES
   ============================================ */
.template-careers .page-hero {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

.culture-benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-base);
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.benefit-item h4 {
    color: var(--dark);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

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

/* Jobs Accordion specific tweaks */
.jobs-accordion .job-item {
    border-left: 4px solid var(--accent);
}

.job-header {
    background: var(--white);
}

.job-header:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.job-details ul {
    padding-left: 20px;
    margin-top: 10px;
    color: var(--gray);
}

.job-details ul li {
    margin-bottom: 8px;
}

/* Hero Carousel Styles */
/* Hero Carousel Styles - Auto Scroll */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-slide.active .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.65) 0%, rgba(60, 20, 80, 0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
    animation: slideUp 1s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.slide-content .subtitle-line {
    background: linear-gradient(90deg, #ff69b4, #4169e1);
}

.slide-content .page-title {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 16px 0 24px;
}

.slide-content .page-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
}

.slide-content .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.slide-content .subtitle-line {
    background: linear-gradient(90deg, #ff69b4, #4169e1);
}

.slide-content .page-title {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 16px 0 24px;
}

.slide-content .page-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
}

/* Controles del Carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active,
.indicator:hover {
    background: linear-gradient(135deg, #ff69b4, #4169e1);
    border-color: transparent;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .slide-content .page-lead {
        font-size: 1rem;
    }

    .carousel-indicators {
        bottom: 30px;
    }
}

/* Directorio Hero con Background Image */
.directorio-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1);
    transition: transform 8s ease;
}

.directorio-hero:hover .hero-background-image {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.85) 0%, rgba(60, 20, 80, 0.80) 100%);
    z-index: 1;
}

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

.directorio-hero .subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.directorio-hero .subtitle-line {
    background: linear-gradient(90deg, #ff69b4, #4169e1);
}

.directorio-hero .page-title {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 16px 0 24px;
}

.directorio-hero .page-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Ajuste para que el padding se mantenga */
.directorio-hero.page-hero-small {
    padding: 120px 0 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .directorio-hero.page-hero-small {
        padding: 100px 0 80px;
        min-height: 400px;
    }

    .directorio-hero .page-lead {
        font-size: 1rem;
    }
}

/* Modern Application Form Styles */
.modern-application-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-control-modern {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
}

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

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    margin-top: 8px;
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-area {
    border: 2px dashed rgba(255, 105, 180, 0.4);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 105, 180, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(255, 105, 180, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.file-upload-area h4 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.1rem;
}

.file-upload-area p {
    margin: 8px 0;
    color: var(--muted);
}

.btn-upload-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 12px 0;
}

.btn-upload-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 12px;
}

/* File Preview */
.file-preview {
    border: 2px solid rgba(65, 105, 225, 0.3);
    border-radius: 12px;
    padding: 20px;
    background: rgba(65, 105, 225, 0.02);
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff69b4, #4169e1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 600;
    color: var(--dark);
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--muted);
}

.file-remove {
    width: 36px;
    height: 36px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.file-progress {
    margin-top: 16px;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* Checkbox Custom */
.checkbox-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-custom:hover input~.checkmark {
    border-color: var(--primary);
}

.checkbox-custom input:checked~.checkmark {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Submit Button */
.btn-submit-application {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.btn-submit-application:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.4);
}

.btn-submit-application:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-submit-application:hover .btn-icon {
    transform: translateX(5px);
}

/* Application Benefits */
.application-benefits {
    margin-top: 40px;
}

.app-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.app-benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(65, 105, 225, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.app-benefit-item h4 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 1rem;
}

.app-benefit-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-info-box {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.05), rgba(65, 105, 225, 0.05));
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 12px;
}

.contact-info-box h4 {
    margin: 0 0 12px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box p {
    margin: 0;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .application-form-wrapper {
        padding: 24px !important;
    }

    .form-control-modern {
        padding: 12px 14px;
    }

    .file-upload-area {
        padding: 30px 16px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }
}

.form-centered {
    max-width: 800px;
    /* Ancho mÃ¡ximo del formulario */
    margin: 0 auto;
    /* Centrado horizontal */
    width: 100%;
}

/* Logos de partners/seguros */
.partner-logo {
    max-height: 80px;
    /* Ajusta segÃºn el tamaÃ±o que necesites */
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.logo-item {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .partner-logo {
        max-height: 60px;
        max-width: 140px;
    }

    .logo-item {
        padding: 15px 25px;
    }
}

/* ============================================
   TOPBAR DE NAVEGACIÃ“N GLOBAL - PÃGINAS INTERNAS
   Usado por todas las pÃ¡ginas que cargan styles-pages.css.
   El color base (.topbar) viene definido en styles.css con el
   gradiente oficial: linear-gradient(135deg, #2B347C 0%, #38549C 100%).
   AquÃ­ solo se aÃ±aden los ajustes especÃ­ficos de layout con navegaciÃ³n.
   ============================================ */

/* Ajuste de padding/tamaÃ±o para la variante con nav central */
.topbar-with-nav {
    padding: 12px 0;         /* Altura uniforme en todas las pÃ¡ginas */
    font-size: 0.9rem;       /* TamaÃ±o de texto consistente */
}

/* Layout principal de la barra: izquierda - centro - derecha */
.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;         /* Permite que colapse bien en pantallas pequeÃ±as */
}

/* Bloque izquierdo: ubicaciÃ³n de la clÃ­nica */
.topbar-left {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;    /* Evita que el texto de ubicaciÃ³n se parta */
}

/* Ãcono de pin de ubicaciÃ³n en rosa institucional */
.topbar-left i {
    color: var(--accent, #F4A4CC);
}

/* NavegaciÃ³n central: se expande para ocupar el espacio disponible */
.topbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Lista de links de navegaciÃ³n horizontal */
.topbar-nav-links {
    display: flex;
    list-style: none;
    gap: 25px;               /* Espacio entre items de menÃº */
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Cada Ã­tem del menÃº necesita position:relative para el dropdown */
.topbar-nav-links li {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Links de navegaciÃ³n: blanco con transiciÃ³n suave */
.topbar-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;       /* Ãrea clickeable cÃ³moda */
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Hover: fondo semitransparente + color rosa de acento */
.topbar-nav-links a:hover {
    color: var(--accent, #F4A4CC);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Ãcono chevron del dropdown: tamaÃ±o pequeÃ±o */
.topbar-nav-links .dropdown > a i {
    font-size: 0.7rem;
    margin-left: 3px;
}

/* El li con clase .dropdown activa el comportamiento de menÃº desplegable */
.topbar-nav-links .dropdown {
    position: relative;
}

/* El enlace padre del dropdown usa flex para alinear texto + chevron */
.topbar-nav-links .dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   DROPDOWN DEL TOPBAR
   ============================================ */

/* Panel desplegable: oculto por defecto con transiciÃ³n de opacidad + desplazamiento */
.dropdown-menu-topbar {
    position: absolute;
    top: 100%;               /* Se ancla debajo del Ã­tem padre */
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Efecto de caÃ­da suave */
    transition: all 0.3s ease;
    z-index: 1000;           /* Sobre el header sticky */
    list-style: none;
}

/* Al hacer hover sobre el padre, el dropdown aparece */
.dropdown:hover .dropdown-menu-topbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Links dentro del dropdown: texto oscuro sobre fondo blanco */
.dropdown-menu-topbar li a {
    color: #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;    /* Evita que los items se partan */
}

/* Hover del dropdown: fondo gris suave + color rosa */
.dropdown-menu-topbar li a:hover {
    background: #f5f5f5;
    color: var(--secondary, #EB5E9B);
}

/* ============================================
   BLOQUE DERECHO: REDES SOCIALES
   ============================================ */

/* Contenedor de Ã­conos sociales */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ãconos sociales: tamaÃ±o y color base */
.topbar-right .social-link {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* Hover: sube ligeramente + color rosa de acento */
.topbar-right .social-link:hover {
    color: var(--accent, #F4A4CC);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   HEADER CON LOGO GRANDE Y SLOGAN
   (complementa los estilos del header sticky)
   ============================================ */

/* Variante de header con mÃ¡s padding para acomodar logo grande */
.header-with-slogan {
    padding: 20px 0;
}

/* Layout del logo con slogan en lÃ­nea */
.logo-with-slogan {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-with-slogan .logo-img-wrapper {
    flex-shrink: 0;          /* El logo no se encoge con el contenido */
}

/* TamaÃ±o del logo en pÃ¡ginas internas */
.logo-with-slogan .logo-img {
    height: 100px;
    width: auto;
    max-width: 120px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slogan tipogrÃ¡fico en estilo elegante */
.logo-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE - TOPBAR Y HEADER
   ============================================ */

/* Tablets: ocultar navegaciÃ³n central, mantener solo ubicaciÃ³n + redes */
@media (max-width: 1024px) {
    .topbar-nav {
        display: none;
    }

    .topbar-content {
        justify-content: space-between;
        padding: 5px 0;
    }
    
    .topbar-left {
        font-size: 0.8rem;
    }
}

/* MÃ³viles: ajustar logo y slogan del header */
@media (max-width: 768px) {
    .logo-with-slogan .logo-img {
        height: 70px;
        max-width: 90px;
    }

    .logo-slogan {
        font-size: 1rem;
    }

    .header-with-slogan {
        padding: 15px 0;
    }

    /* Nav links mÃ¡s compactos si se muestran en mÃ³vil */
    .topbar-nav-links {
        gap: 15px;
        font-size: 0.85rem;
    }
}


/* ============================================
   DIRECTORIO MÃ‰DICO - NEW DESIGN
   ============================================ */

.dir-hero {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.dir-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: 800;
}

.dir-hero-title .gradient-text {
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dir-hero-lead {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Filters Bar */
.dir-filters-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.dir-filters-bar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.dir-search-input {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.dir-search-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.dir-search-input input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dir-search-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 155, 212, 0.1);
    outline: none;
}

.dir-filter-select {
    min-width: 180px;
}

.dir-filter-select select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    cursor: pointer;
}

.dir-view-toggle {
    display: flex;
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid #eee;
}

.dir-view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Cards Grid */
.dir-cards-section {
    padding: 60px 0;
    background-color: #f4f7fa;
}

.dir-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.dir-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dir-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dir-card-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f4f8;
}

.dir-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dir-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.dir-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(28, 155, 212, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dir-card-sub {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.dir-card-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.dir-card-days {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.dir-days-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-right: 5px;
}

.dir-day-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: var(--gray);
}

.dir-card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.dir-card-btn:hover {
    background: var(--color-rosa-pastel);
    transform: scale(1.02);
}

.dir-card-profile {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.dir-card-profile:hover {
    text-decoration: underline;
}

.dir-no-results {
    text-align: center;
    padding: 50px 0;
    color: var(--gray);
}

.dir-no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .dir-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .dir-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dir-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .dir-view-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .dir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dir-grid {
    grid-template-columns: 1fr;
}


/* ============================================
   DIRECTORIO POR ESPECIALIDADES - PREMIUM DESIGN
   ============================================ */

.dir-premium-hero {
    background: var(--gradient-secondary);
    padding: 100px 0;
    margin-top: 0;
    text-align: center;
}

.dir-banner-content {
    max-width: 1000px;
    margin: 0 auto;
}

.dir-title-main {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    /* Azul marino sobre fondo rosa */
    margin-bottom: 20px;
    line-height: 1;
}

.dir-subtitle-main {
    font-size: 1.2rem;
    color: var(--primary-dark);
    /* Azul marino para la frase */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
}

.dir-search-container {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    max-width: 850px;
    margin: 0 auto;
}

.dir-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dir-search-col {
    flex: 1;
}

.dir-search-col.select-wrapper select,
.dir-search-col.input-wrapper input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.dir-search-col.select-wrapper select:focus,
.dir-search-col.input-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
}

.dir-search-col.input-wrapper {
    display: flex;
    position: relative;
    flex: 2;
    /* Darle mÃ¡s espacio al input de texto */
}

.btn-search-trigger {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-left: 5px;
}

.btn-search-trigger:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Specialty Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.spec-card {
    background: white;
    border-radius: 20px;
    padding: 50px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.spec-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.spec-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.spec-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.btn-spec {
    width: 100%;
    max-width: 180px;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
    border-radius: 10px;
    background: var(--secondary);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-spec:hover {
    background: var(--color-rosa-brillante);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink);
    color: white;
}

@media (max-width: 1200px) {
    .spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .dir-search-row {
        flex-direction: column;
    }

    .dir-hero-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dir-title-main {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

/* â•â• DIRECTORIO HERO â€” FONDO ROSADO + CENTRADO â•â• */

.dir-hero-wrapper {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 45%, #f9a8d4 100%);
    padding: 80px 0 64px;
    text-align: center;
}

.dir-banner-content {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.dir-title-main {
    text-align: center;
}

.dir-subtitle-main {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.dir-search-container {
    margin-left: auto;
    margin-right: auto;
    /* esto lo centra */
}