
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f8fb;
    color: #253449;
    font-family: Arial, sans-serif;
}

.ci-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.ci-hero {
    padding: 55px 24px;
    background: linear-gradient(135deg, #176b87, #29a0ad);
    color: #fff;
}

.ci-hero h1 {
    margin: 0 0 14px;
    font-size: 36px;
}

.ci-hero p {
    font-size: 16px;
    line-height: 1.7;
}

.ci-main {
    padding: 35px 24px 70px;
}

.ci-narrow {
    max-width: 760px;
}

.ci-card {
    margin-bottom: 25px;
    padding: 28px;
    border: 1px solid #e2eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(35, 72, 100, 0.05);
}

.ci-card h1,
.ci-card h2 {
    color: #176b87;
}

.ci-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ci-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.ci-form select,
.ci-form input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccdce6;
    border-radius: 9px;
    font: inherit;
    background: #fff;
}

.ci-form select:focus,
.ci-form input:focus {
    outline: 2px solid #16809a;
    outline-offset: 1px;
}

.ci-muted {
    color: #68788b;
    font-size: 14px;
    line-height: 1.7;
}

.ci-doctors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ci-doctor {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5edf3;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(35, 72, 100, 0.05);
}

.ci-doctor-photo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e9f3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68788b;
    font-size: 13px;
}

.ci-doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ci-doctor-info {
    min-width: 0;
    flex: 1;
}

.ci-doctor-info small {
    color: #16809a;
    font-weight: 600;
}

.ci-doctor-info h2 {
    margin: 10px 0;
    font-size: 19px;
}

.ci-doctor-info p {
    color: #68788b;
    font-size: 14px;
    line-height: 1.6;
}

.ci-btn {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 12px;
    background: #176b87;
    color: #fff !important;
    border: none;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.ci-btn:hover {
    background: #12556c;
}

.ci-secondary {
    background: #e8f1f6;
    color: #176b87 !important;
}

.ci-secondary:hover {
    background: #d5e7ee;
}

.ci-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e5edf3;
}

.ci-detail span {
    color: #68788b;
}

.ci-detail strong {
    text-align: right;
}

.ci-reserva-form {
    margin-top: 25px;
}

.ci-field {
    margin-bottom: 12px;
}

.ci-success {
    display: inline-block;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #e9f8ef;
    color: #16744b;
    border-radius: 9px;
    font-weight: 600;
}

.ci-error {
    padding: 14px;
    margin: 15px 0;
    background: #fff0ed;
    color: #ac3020;
    border-radius: 9px;
}

.ci-empty {
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    color: #68788b;
}

.ci-bottom {
    margin-top: 30px;
    text-align: center;
}

.ci-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #176b87;
    text-decoration: none;
}

.ci-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ci-table {
    width: 100%;
    border-collapse: collapse;
}

.ci-table th,
.ci-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5edf3;
}

.ci-table th {
    color: #176b87;
    background: #f3f8fb;
}

@media (max-width: 680px) {
    .ci-hero {
        padding: 35px 18px;
    }

    .ci-hero h1 {
        font-size: 27px;
    }

    .ci-main {
        padding: 24px 16px 50px;
    }

    .ci-card {
        padding: 20px;
    }

    .ci-doctors {
        grid-template-columns: 1fr;
    }

    .ci-doctor {
        flex-direction: column;
    }

    .ci-detail {
        flex-direction: column;
        gap: 5px;
    }

    .ci-detail strong {
        text-align: left;
    }
}
