/* --- Historia Clínica Page Styles --- */

/* Page Hero */
.hc-hero {
    background: linear-gradient(135deg, #005daa 0%, #003a7a 100%);
    padding: 60px 5% 80px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10M30 45v10M5 30h10M45 30h10' stroke='rgba(255,255,255,0.04)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.hc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hc-hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hc-hero-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.hc-hero .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hc-hero .hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
    fill: var(--bg-light);
}

/* Container */
.hc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 5% 80px;
}

/* Legal intro card */
.hc-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid #eef2f5;
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.hc-intro-card .material-symbols-rounded {
    color: var(--accent-color);
    font-size: 36px;
    flex-shrink: 0;
}

.hc-intro-card p {
    margin: 0;
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

/* Section titles */
.hc-section-title {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 60px 0 35px;
}

.hc-section-title::before,
.hc-section-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cbd5e1;
}

.hc-section-title h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 25px;
    background: #fff;
}

/* Steps */
.hc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hc-step {
    position: relative;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px 22px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.hc-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-step .material-symbols-rounded {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hc-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--accent-color);
}

.hc-step p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Download button */
.hc-download {
    text-align: center;
    margin-top: 35px;
}

.hc-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 47, 126, 0.25);
}

.hc-btn-download:hover {
    background: #3b236d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 47, 126, 0.35);
}

.hc-btn-download .material-symbols-rounded {
    font-size: 22px;
}

/* Form field guide */
.hc-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hc-field-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.hc-field-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--accent-color);
}

.hc-field-card h3 .material-symbols-rounded {
    color: var(--primary-color);
    font-size: 24px;
}

.hc-field-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hc-field-card li {
    position: relative;
    padding-left: 20px;
    font-size: 14.5px;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.5;
}

.hc-field-card li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1;
    top: 1px;
}

/* Requester cases (accordion) */
.hc-case {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.hc-case summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    list-style: none;
    transition: background-color 0.2s ease;
}

.hc-case summary::-webkit-details-marker {
    display: none;
}

.hc-case summary:hover {
    background-color: var(--bg-light);
}

.hc-case summary .case-icon {
    color: var(--primary-color);
    font-size: 26px;
    flex-shrink: 0;
}

.hc-case summary .case-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.hc-case[open] summary .case-arrow {
    transform: rotate(180deg);
}

.hc-case[open] summary {
    border-bottom: 1px solid #eef2f5;
}

.hc-case-body {
    padding: 20px 28px 25px;
}

.hc-case-body ol {
    margin: 0;
    padding-left: 22px;
}

.hc-case-body > ol > li {
    font-size: 14.5px;
    color: #334155;
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 5px;
}

.hc-case-body ol ol {
    list-style: upper-alpha;
    margin-top: 8px;
}

.hc-case-body ol ol li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
}

/* Send channels */
.hc-send-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hc-send-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.hc-send-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.hc-send-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-send-icon.email-icon {
    background: rgba(0, 86, 179, 0.1);
}

.hc-send-icon.email-icon .material-symbols-rounded {
    color: var(--primary-color);
    font-size: 28px;
}

.hc-send-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.12);
}

.hc-send-icon.whatsapp-icon .material-symbols-rounded {
    color: #1faa53;
    font-size: 28px;
}

.hc-send-card > span:last-child {
    min-width: 0;
}

.hc-send-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.hc-send-card p {
    margin: 0;
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legal note */
.hc-legal {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 28px;
    margin-top: 50px;
}

.hc-legal p {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}

.hc-legal p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hc-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 35px;
    }

    .hc-send-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hc-hero {
        padding: 50px 5% 60px;
    }

    .hc-hero-content h1 {
        font-size: 30px;
    }

    .hc-container {
        padding: 40px 5% 60px;
    }

    .hc-fields-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hc-steps {
        grid-template-columns: 1fr;
    }
}
