﻿/* Citas Embed Styles */

.citas-hero {
    height: 38vh;
    min-height: 320px;
    background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 90px;
}

.citas-hero > .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
    z-index: 0;
}

.citas-hero h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 12px;
}

.citas-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.citas-hero .container {
    color: #fff;
    position: relative;
    z-index: 1;
}

.booking-section {
    padding: 70px 0;
    background: #f8f9fa;
}

.booking-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    padding: 36px;
}

.booking-panel h2 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 2rem;
}

.booking-intro {
    color: #5f6975;
    margin-bottom: 24px;
}

.booking-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.booking-card {
    border: 2px solid #e3e8ee;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.booking-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.booking-card.active {
    border-color: var(--accent);
    background: rgba(196, 160, 94, 0.08);
}

.booking-card.disabled {
    cursor: not-allowed;
    border-style: dashed;
    border-color: #d7dee8;
    background: #f8fafc;
}

.booking-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #d7dee8;
}

.booking-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.booking-card-photo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbe3ef;
    flex-shrink: 0;
}

.booking-card-meta h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.3;
}

.booking-card-role {
    margin: 4px 0 0;
    color: #5c6675;
    font-size: 0.9rem;
}

.booking-card-action {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.booking-card-action[disabled] {
    background: #9aa5b5;
    cursor: not-allowed;
}

.booking-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.booking-open-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.booking-loading {
    margin: 0;
    color: #4f5d6c;
    font-weight: 600;
}

.booking-loading.error {
    color: #b42318;
}

.booking-embed {
    width: 100%;
    overflow: visible;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.booking-embed iframe {
    display: block;
    width: 100%;
    height: 1080px;
    border: 0;
    overflow: visible;
}

.booking-embed iframe.hidden {
    display: none;
}

.booking-placeholder {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 30px;
    color: #4f5d6c;
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f7fa 100%);
}

.booking-placeholder.hidden {
    display: none;
}

.booking-placeholder-icon {
    width: 64px;
    height: 64px;
    fill: var(--accent);
    opacity: 0.8;
}

.booking-placeholder p {
    margin: 0;
    max-width: 420px;
    font-weight: 600;
}

.booking-fallback {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #dbe5f0;
}

.booking-fallback h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.booking-fallback p {
    margin-bottom: 8px;
    color: #4f5d6c;
}

.booking-fallback ul {
    margin: 0;
    padding-left: 18px;
    color: #4f5d6c;
}

.booking-fallback a {
    color: var(--accent);
    font-weight: 600;
}

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

    .booking-panel {
        padding: 24px;
    }

    .booking-embed iframe {
        height: 1180px;
    }
}

@media (max-width: 768px) {
    .citas-hero {
        margin-top: 75px;
        height: 34vh;
        min-height: 280px;
    }

    .citas-hero h1 {
        font-size: 2.3rem;
    }

    .booking-section {
        padding: 44px 0;
    }

    .booking-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .booking-embed iframe {
        height: 1300px;
    }
}
