/**
 * Services Section Styles
 * Diseño premium con imágenes y degradados cálidos
 */

/* ========================================
   Services Section Base
   ======================================== */
.section-services {
    background: linear-gradient(180deg, #faf8f6 0%, #f5f0eb 50%, #faf8f6 100%);
    padding: 120px 0 140px;
    position: relative;
}

.section-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 100%);
    pointer-events: none;
}

.services-wrapper {
    position: relative;
    z-index: 1;
}

/* ========================================
   Services Header
   ======================================== */
.services-header {
    max-width: 700px;
    margin: 0 auto 70px;
}

.services-label {
    display: inline-block;
    color: var(--primary-color, #AF997F);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 15px;
}

.services-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color, #AF997F);
}

.services-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 22px;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   Service Cards - Base
   ======================================== */
.service-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(175, 153, 127, 0.2);
}

/* ========================================
   Service Card Image
   ======================================== */
.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

/* Gradient Overlay - Warm tones */
.service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Warm accent on hover */
.service-card:hover .service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(175, 153, 127, 0.9) 0%,
        rgba(175, 153, 127, 0.3) 50%,
        transparent 100%
    );
}


/* ========================================
   Service Card Content
   ======================================== */
.service-card-content {
    padding: 28px 25px 32px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.service-card-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color, #AF997F);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.service-card-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 18px;
}

/* ========================================
   Service Features List
   ======================================== */
.service-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.service-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-card-features li:last-child {
    margin-bottom: 0;
}

.service-card-features li span {
    color: var(--primary-color, #AF997F);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ========================================
   Service Card Buttons & Links
   ======================================== */
.service-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--primary-color, #AF997F) 0%, #c4b097 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(175, 153, 127, 0.3);
}

.service-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(175, 153, 127, 0.4);
    color: #fff;
    text-decoration: none;
}

.service-card-btn span {
    font-size: 16px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color, #AF997F);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.service-card-link:hover {
    gap: 14px;
    color: #8a7a66;
    text-decoration: none;
}

.service-card-link span {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link span {
    transform: translateX(4px);
}

/* ========================================
   Services CTA Banner
   ======================================== */
.services-cta {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color, #AF997F) 0%, #c4b097 100%);
    border-radius: 24px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 50px rgba(175, 153, 127, 0.3);
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.services-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.services-cta-content {
    position: relative;
    z-index: 1;
}

.services-cta-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.services-cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.services-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: #fff;
    color: var(--primary-color, #AF997F);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.services-cta-btn:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.services-cta-btn span {
    font-size: 18px;
}

/* ========================================
   Responsive - Large Desktop
   ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        gap: 25px;
    }
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 992px) {
    .section-services {
        padding: 100px 0 120px;
    }

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

    .services-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card-image {
        height: 200px;
    }

    .services-cta {
        flex-direction: column;
        text-align: center;
        padding: 45px 40px;
    }

    .services-cta-content h3 {
        font-size: 24px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .section-services {
        padding: 80px 0 100px;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-title {
        font-size: 1.9rem;
    }

    .services-subtitle {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card-image {
        height: 220px;
    }

    .service-card-content {
        padding: 25px 22px 28px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card-description {
        font-size: 14px;
    }

    .service-card-features li {
        font-size: 13px;
    }

    .services-cta {
        margin-top: 60px;
        padding: 35px 25px;
        border-radius: 20px;
    }

    .services-cta-content h3 {
        font-size: 22px;
    }

    .services-cta-content p {
        font-size: 15px;
    }

    .services-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
}

/* ========================================
   Responsive - Small Mobile
   ======================================== */
@media (max-width: 480px) {
    .section-services {
        padding: 60px 0 80px;
    }

    .services-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .services-title {
        font-size: 1.6rem;
    }

    .service-card {
        border-radius: 20px;
    }

    .service-card-image {
        height: 180px;
    }

    .service-card-featured .service-card-image {
        height: 200px;
    }

    .service-card-badge {
        font-size: 10px;
        padding: 6px 12px;
        top: 15px;
        left: 15px;
    }

    .service-card-content {
        padding: 22px 20px 25px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card-subtitle {
        font-size: 11px;
    }

    .service-card-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .service-card-features li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .service-card-btn {
        padding: 14px 24px;
        font-size: 14px;
        border-radius: 10px;
    }

    .service-card-link {
        font-size: 14px;
    }

    .services-cta {
        margin-top: 45px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .services-cta-content h3 {
        font-size: 19px;
    }

    .services-cta-content p {
        font-size: 14px;
    }

    .services-cta-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   Section Labels (shared)
   ======================================== */
.section-label-light {
    display: inline-block;
    color: var(--primary-color, #AF997F);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-subtitle {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Contact Form - Privacy Checkbox
   ======================================== */
.block-contact-1 .form-group-privacy {
    margin-top: 30px;
    text-align: center;
}

.block-contact-1 .privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.block-contact-1 .privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #AF997F);
    cursor: pointer;
}

.block-contact-1 .privacy-label a {
    color: var(--primary-color, #AF997F);
    text-decoration: underline;
}

.block-contact-1 .privacy-label a:hover {
    opacity: 0.8;
}

/* ========================================
   Contact Map - OpenStreetMap with Leaflet
   ======================================== */
.block-contact-1 .map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

#clinic-map {
    width: 100%;
    height: 450px;
    z-index: 1;
}

/* Tarjeta de información sobre el mapa */
.map-info-card {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    overflow: hidden;
}

.map-info-content {
    padding: 20px;
}

.map-info-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.map-info-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.map-info-content p span {
    color: var(--primary-color, #AF997F);
    margin-right: 8px;
}

.map-info-content .map-phone a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-info-content .map-phone a:hover {
    color: var(--primary-color, #AF997F);
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 20px;
    background: var(--primary-color, #AF997F);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.map-directions-btn:hover {
    background: #9a8570;
    transform: translateY(-1px);
    color: #fff;
}

.map-directions-btn span {
    font-size: 16px;
}

/* Estilos del marcador del mapa */
.clinic-marker-popup {
    text-align: center;
    padding: 5px;
}

.clinic-marker-popup h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.clinic-marker-popup p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .block-contact-1 .map-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .map-info-card {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        border-radius: 0;
        margin-top: 0;
        order: 2;
    }

    #clinic-map {
        height: 300px;
        min-height: 300px;
        order: 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    #clinic-map {
        height: 250px;
        min-height: 250px;
    }

    .map-info-content {
        padding: 15px;
    }

    .map-info-content h4 {
        font-size: 16px;
    }

    .map-directions-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Marcador personalizado del mapa */
.clinic-map-marker {
    background: transparent;
    border: none;
}

.clinic-map-marker .marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-color, #AF997F);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.clinic-map-marker .marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

/* Estilos del popup de Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Contact Cards - "Llámanos" Tab
   ======================================== */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.contact-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #AF997F);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-card-icon span {
    font-size: 24px;
    color: #fff;
}

/* Colores personalizados para cada icono */
.contact-card-icon.whatsapp {
    background: #25D366;
}

.contact-card-icon.email {
    background: #EA4335;
}

.contact-card-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

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

.contact-card-content {
    flex: 1;
}

.contact-card-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.contact-card-content p {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.contact-card-action {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color, #AF997F);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.contact-card-action::after {
    content: '\e628';
    font-family: 'themify';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-action::after {
    transform: translateX(5px);
}

/* Animación de hover - barra de progreso */
.contact-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-color, #AF997F);
    transition: width 0.4s ease;
    z-index: 1;
}

.contact-card:hover .contact-card-hover {
    width: 100%;
}

/* Colores de hover para cada tarjeta */
.contact-card:has(.whatsapp) .contact-card-hover {
    background: #25D366;
}

.contact-card:has(.email) .contact-card-hover {
    background: #EA4335;
}

.contact-card:has(.instagram) .contact-card-hover {
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Fallback para navegadores sin :has() */
.contact-card-icon.whatsapp ~ .contact-card-hover,
.contact-card .contact-card-icon.whatsapp + .contact-card-content + .contact-card-hover {
    background: #25D366;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card-inner {
        padding: 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .contact-card-inner {
        padding: 20px;
        gap: 15px;
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
    }

    .contact-card-icon span {
        font-size: 20px;
    }

    .contact-card-content p {
        font-size: 16px;
    }
}
