header {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 120px;
    box-shadow: 0 4px 20px var(--color-shadow);
    transition: margin-top 0.3s ease;
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-content .subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero {
    background: var(--gradient-hero), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f4f8" width="1200" height="600"/><circle fill="%23b8dae8" cx="200" cy="150" r="80" opacity="0.3"/><circle fill="%23b8dae8" cx="1000" cy="400" r="120" opacity="0.2"/><circle fill="%23b8dae8" cx="600" cy="300" r="60" opacity="0.4"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--color-text-white);
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    text-align: center;
}

.hero-text {
    text-align: left;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.services {
    padding: 4rem 0;
    background: var(--color-bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    font-weight: 700;
}

.specialties {
    padding: 4rem 0;
    background: var(--gradient-secondary);
}

.medical-term {
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.common-term {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 0.2rem;
    display: block;
}

.condition-item:hover .common-term {
    color: var(--color-text-light);
}

.stats {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    padding: 4rem 0;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-number.animate {
    animation: countUp 1s ease-out;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.about {
    padding: 4rem 0;
    background: white;
}

.about-image {
    text-align: center;
}

.about-text h3 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.credentials h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 0.3rem 0;
    color: #555;
    font-size: 0.95rem;
}

.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90c2 100%);
    color: white;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.schedule h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer {
    background: #1a365d;
    color: var(--color-text-white);
    text-align: center;
    padding: 2rem 0;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-primary-light);
}

.footer-section p, .footer-section li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--color-primary-light);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--color-text-white);
}

/* Alto contraste para enlaces de redes sociales en el footer */
.footer .social-links a {
    color: #e6f0ff; /* contraste elevado sobre #1a365d */
    font-weight: 700;
}

.footer .social-links a:hover,
.footer .social-links a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer .social-links a:visited {
    color: #e6f0ff;
}

@media (prefers-contrast: more) {
    .footer .social-links a {
        color: #ffffff;
        text-decoration: underline;
    }
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: var(--gradient-secondary);
}

.testimonials-content {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.google-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--color-bg-white);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin-bottom: 2rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    font-size: 2rem;
}

.rating-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rating-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.reviews-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
}

.count-label {
    font-size: 0.9rem;
    color: #666;
}

.google-reviews-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90c2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.google-reviews-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #b8dae8 100%);
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1.1rem;
}

.author-location {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-rating {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #888;
}

.google-badge {
    background: #4285f4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.google-badge:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.testimonials-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.testimonials-cta h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.testimonials-cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90c2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #e8f4f8 0%, #b8dae8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.blog-date, .blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #4a90c2;
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f4f8 100%);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-cta h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-cta p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.social-links-blog {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-blog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #2c5aa0;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.social-link-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.social-link-blog.instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link-blog.tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #000);
    color: white;
}

.social-link-blog.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-link-blog.facebook:hover {
    background: var(--color-facebook);
    color: white;
}

/* Blog Page Specific Styles */
.blog-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90c2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 120px;
}

.blog-header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.blog-stats .rss-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: inherit;
}

.blog-stats .rss-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-stats .rss-link span {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    font-weight: inherit;
}

.blog-main {
    padding: 4rem 0;
    background: white;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e8f4f8;
    color: #2c5aa0;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #e8f4f8;
    transform: translateY(-2px);
}

/* Fondos tenues por categoría cuando NO están seleccionados (estado base) */
.filter-btn.prevencion {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
}

.filter-btn.crianza {
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.18);
}

.filter-btn.paternidad {
    background: rgba(202, 138, 4, 0.08);
    border-color: rgba(202, 138, 4, 0.18);
}

.filter-btn.nutricion {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.18);
}

.filter-btn.neonatologia {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.filter-btn.neurodesarrollo {
    background: rgba(147, 51, 234, 0.08);
    border-color: rgba(147, 51, 234, 0.18);
}

.filter-btn.lactancia {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.18);
}

.filter-btn.temas-serios {
    background: rgba(55, 65, 81, 0.08);
    border-color: rgba(55, 65, 81, 0.18);
}

.filter-btn.consultas {
    background: rgba(107, 114, 128, 0.08);
    border-color: rgba(107, 114, 128, 0.18);
}

/* Estilos activos para cada categoría - usar el mismo color que el hover */
.filter-btn.active.prevencion {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.filter-btn.active.crianza {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.filter-btn.active.paternidad {
    background: #ca8a04;
    color: white;
    border-color: #ca8a04;
}

.filter-btn.active.nutricion {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.filter-btn.active.neonatologia {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-btn.active.neurodesarrollo {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

.filter-btn.active.lactancia {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

.filter-btn.active.temas-serios {
    background: #374151;
    color: white;
    border-color: #374151;
}

.filter-btn.active.consultas {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Estilo por defecto para "Todos" cuando está activo */
.filter-btn.active:not([class*="prevencion"]):not([class*="crianza"]):not([class*="paternidad"]):not([class*="nutricion"]):not([class*="neonatologia"]):not([class*="neurodesarrollo"]):not([class*="lactancia"]):not([class*="temas-serios"]):not([class*="consultas"]) {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* Blog Category Colors and Styles */
.blog-category.prevencion {
    background: #dc2626;
    color: white;
}

.blog-category.crianza {
    background: #ea580c;
    color: white;
}

.blog-category.paternidad {
    background: #ca8a04;
    color: white;
}

.blog-category.nutricion {
    background: #16a34a;
    color: white;
}

.blog-category.neonatologia {
    background: #2563eb;
    color: white;
}

.blog-category.neurodesarrollo {
    background: #9333ea;
    color: white;
}

.blog-category.lactancia {
    background: #ec4899;
    color: white;
}

.blog-category.temas-serios {
    background: #374151;
    color: white;
}

.blog-category.consultas {
    background: #6b7280;
    color: white;
}

/* Blog Image Backgrounds */
.blog-image.prevencion-bg {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.blog-image.crianza-bg {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.blog-image.paternidad-bg {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
}

.blog-image.nutricion-bg {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

.blog-image.neonatologia-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

.blog-image.neurodesarrollo-bg {
    background: linear-gradient(135deg, #faf5ff 0%, #ddd6fe 100%);
}

.blog-image.lactancia-bg {
    background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%);
}

.blog-image.temas-serios-bg {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
}

.blog-image.consultas-bg {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

/* Filter Button Colors */
.filter-btn.prevencion:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.filter-btn.crianza:hover {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.filter-btn.paternidad:hover {
    background: #ca8a04;
    color: white;
    border-color: #ca8a04;
}

.filter-btn.nutricion:hover {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.filter-btn.neonatologia:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-btn.neurodesarrollo:hover {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

.filter-btn.lactancia:hover {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

.filter-btn.temas-serios:hover {
    background: #374151;
    color: white;
    border-color: #374151;
}

.filter-btn.consultas:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Alto contraste para tags en cards del blog */
.blog-tags .tag {
    background: var(--color-primary);
    color: var(--color-text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Blog CTA */
.blog-cta {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fffe;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.cta-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #4a90c2;
    transform: translateY(-1px);
}

/* Asegurar contraste en CTA dentro de cards de blog */
.blog-card .blog-cta .cta-button {
    background: var(--color-primary);
    color: var(--color-text-white) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* Responsive adjustments for blog page */
@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-stats {
        gap: 1rem;
    }
    
    .blog-stats span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .blog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .blog-tags {
        gap: 0.3rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Responsive adjustments for testimonials grid */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .testimonial-rating {
        align-self: flex-start;
    }
}

/* Testimonials Carousel Styles */
.testimonials-carousel {
    position: relative;
    margin-bottom: 3rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

.carousel-track .testimonial-card {
    width: calc(33.333% - 1.33rem); /* 3 cards per view with gap consideration */
    flex-shrink: 0;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 90, 160, 0.1);
    margin-right: 2rem;
    background: white;
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.carousel-track .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.carousel-track .testimonial-card:last-child {
    margin-right: 0;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90c2 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #4a90c2 0%, #2c5aa0 100%);
}

/* Removed disabled state for infinite loop functionality */

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: #b8dae8;
    transform: scale(1.1);
}

.carousel-dot.active {
    background: #2c5aa0;
    border-color: #4a90c2;
    transform: scale(1.2);
}

/* Auto-play indicator */
.carousel-auto-play {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-auto-play .play-icon {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    .carousel-track .testimonial-card {
        width: calc(50% - 0.75rem); /* 2 cards per view on tablets */
        margin-right: 1.5rem;
    }
    
    .carousel-controls {
        gap: 1.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .carousel-track .testimonial-card {
        width: 100%; /* 1 card per view on mobile */
        margin-right: 0;
        padding: 1.25rem;
    }
    
    .carousel-controls {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-auto-play {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ========================================
   ESTILOS EXTRADOS DE INDEX.NJK
   ======================================== */



/* Sección de estadísticas */
.stats .section-title {
    color: white;
    margin-bottom: 1rem;
}

.stats p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Sección de credenciales */
.credentials h4 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    font-size: 1.3rem;
}

.credentials-grid {
    display: grid;
    gap: 0.8rem;
}

/* CTA de la sección about */
.about-cta {
    text-align: center;
    margin-top: 2rem;
}

.about-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid de contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Contenedor del mapa */
.map-container {
    text-align: center;
    background: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.map-container h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    border: 0;
}

.map-container p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

/* Frase SEO final */
.seo-phrase {
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.85;
    margin-top: 2rem;
}

/* (Estilos del acordeón FAQ removidos; se usan solo en blog-post.css) */

/* Responsive para el grid de contacto */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-container {
        padding: 1rem;
    }
    
    .map-wrapper iframe {
        height: 200px;
    }
}