/**
 * Estilos para páginas de clínicas
 * Microdental QH Theme
 */

/* ========================================
   HERO SECTION
   ======================================== */
.clinic-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.huercal-hero {
    background-image: url('/wp-content/uploads/2024/10/image-min.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.huercal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(184, 81, 112, 0.8); /* Color rosa al 80% */
    z-index: 1;
}

.mojacar-hero {
    background-image: url('/wp-content/uploads/2024/10/clinica-mojacar.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.mojacar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 183, 0.8); /* Color azul al 80% */
    z-index: 1;
}

.clinic-hero .hero-overlay {
    display: none; /* Ya no necesitamos este overlay adicional */
}

.clinic-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
}

.clinic-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.clinic-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ========================================
   CONTACT INFO SECTION
   ======================================== */
.clinic-contact-info {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.contact-card .icon {
    flex-shrink: 0;
}

.contact-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-card p {
    color: #666;
    margin: 0.25rem 0;
}

.contact-card a {
    color: #B85170;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #9A3E5C;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.schedule li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.95rem;
}

.schedule strong {
    color: #333;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #9A3E5C;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #B85170;
    border: 2px solid #B85170;
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.clinic-about {
    padding: 4rem 0;
}

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

.section-header h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: #B85170;
    font-size: 1.5rem;
    font-weight: 400;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

/* ========================================
   GALLERY SECTION
   ======================================== */
.clinic-gallery {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(183, 73, 110, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   TREATMENTS SECTION
   ======================================== */
.clinic-treatments {
    padding: 4rem 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.treatment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-list li {
    margin-bottom: 1rem;
}

.treatment-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.treatment-list a:hover {
    background: #f8f9fa;
    border-color: #B85170;
    transform: translateX(5px);
}

.treatment-list .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #B85170;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   DENTAL TOURISM SECTION (Mojácar)
   ======================================== */
.dental-tourism {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
}

.tourism-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tourism-content h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tourism-content > p {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.tourism-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.tourism-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tourism-item span {
    color: #333;
    font-weight: 500;
}

/* ========================================
   MAP SECTION
   ======================================== */
.clinic-map {
    padding: 4rem 0;
    background: #f8f9fa;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    display: block;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.clinic-final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #5170B8 0%, #3E5A9A 100%);
    color: white;
    text-align: center;
    position: relative;
}

.clinic-final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(81, 112, 184, 0.2);
    z-index: 1;
}

.clinic-final-cta .container {
    position: relative;
    z-index: 2;
}

.beach-cta {
    background: linear-gradient(135deg, #51A1B8 0%, #3E8DA3 100%);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #FFFFFF;
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.clinic-final-cta .btn-primary {
    background: #B85170;
    color: white;
    border: 2px solid #B85170;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(184, 81, 112, 0.4);
}

.clinic-final-cta .btn-primary:hover {
    background: #51B892;
    border-color: #51B892;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(81, 184, 146, 0.4);
}

.clinic-final-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid white;
    color: #5170B8;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.clinic-final-cta .btn-secondary:hover {
    background: white;
    border-color: white;
    color: #3E5A9A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Botones con mejor espaciado */
.clinic-final-cta .cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Botón de teléfono destacado */
.clinic-final-cta .btn-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #5170B8;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.clinic-final-cta .btn-cta-phone:hover {
    background: #51B892;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(81, 184, 146, 0.5);
}

.clinic-final-cta .btn-cta-phone svg {
    width: 28px;
    height: 28px;
}

.clinic-final-cta .btn-cta-phone .phone-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-right: 5px;
}

.clinic-final-cta .btn-cta-phone .phone-number {
    font-size: 1.4rem;
    font-weight: 800;
}

.clinic-final-cta .btn-primary,
.clinic-final-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.clinic-final-cta .btn-primary svg,
.clinic-final-cta .btn-secondary svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .clinic-hero .hero-title {
        font-size: 2rem;
    }
    
    .clinic-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .tourism-features {
        grid-template-columns: 1fr;
    }
    
    .section-title,
    .section-header h2,
    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .clinic-hero {
        min-height: 400px;
    }
    
    .clinic-hero .hero-title {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-whatsapp {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}