/**
 * Estilos para la página de inicio
 * Microdental QH Theme
 */

/* Clínicas Grid */
.our-clinics {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #54595f;
    margin-bottom: 40px;
    font-family: 'Coolvetica', sans-serif;
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.clinic-card {
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.clinic-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.clinic-card h3 {
    font-size: 1.8rem;
    color: #54595f;
    margin: 20px 0;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background: #B85170;
    color: white;
    padding: 14px 35px;
    margin-bottom: 30px;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(183, 73, 110, 0.3);
}

.btn-primary:hover {
    background: #9A3E5C;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(183, 73, 110, 0.4);
    color: white;
    text-decoration: none;
}

/* Sección de Tecnología */
.technology-section {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.technology-section .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.technology-section .section-description {
    font-size: 1.1rem;
    color: #777;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tratamientos Grid - 4x2 */
.our-treatments {
    padding: 60px 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.treatment-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
}

a.treatment-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.treatment-card:hover,
a.treatment-card:focus,
a.treatment-card:visited {
    text-decoration: none;
    color: inherit;
}

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

.treatment-image {
    background: #B85170; /* Rosa corporativo */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.treatment-image img,
.treatment-image .treatment-svg {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Convierte SVG a blanco */
    transition: transform 0.3s ease;
}

.treatment-card:hover .treatment-image img,
.treatment-card:hover .treatment-image .treatment-svg {
    transform: scale(1.1);
}

.treatment-content {
    padding: 20px;
}

.treatment-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.treatment-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Testimonios */
.testimonials {
    padding: 60px 0;
    background: #f8f9fa;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quote-icon {
    fill: #B85170;
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #54595f;
    margin-bottom: 15px;
}

.testimonial-tag {
    color: #B85170;
    font-weight: 600;
    text-align: right;
}

/* Ventajas */
.advantages {
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.advantage-card {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.advantage-card h4 {
    font-size: 1.5rem;
    color: #54595f;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.advantage-card a {
    color: #B85170;
    text-decoration: none;
    font-weight: 500;
}

.advantage-card a:hover {
    text-decoration: underline;
}

/* Seguros */
.insurance-partners {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #54595f;
    margin-bottom: 20px;
}

.insurance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.insurance-logos img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.insurance-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Blog Grid */
.latest-blog {
    padding: 60px 0;
}

.latest-blog .section-subtitle {
    text-align: center;
    margin-bottom: 10px;
}

.latest-blog > .container > p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #B85170;
}

.blog-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #B85170;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-cta {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #B85170;
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid #B85170;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #B85170;
    color: white;
}

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

@media (max-width: 768px) {
    .clinics-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .treatments-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}