html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

header img {
    width: clamp(120px, 15vw, 180px);
    height: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    font-size: clamp(11px, 1.2vw, 13px);
    text-decoration: none;
    color: rgb(58, 58, 58);
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: rgb(46, 194, 216);
    background-color: rgba(46, 194, 216, 0.1);
}

/* Contenedor principal */
.doctor-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Imagen del doctor */
.doctor-image {
    position: relative;
    flex: 1 1 300px;
    max-width: 500px;
    border-radius: 20px;
    background-color: #e7e7e7;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.doctor-photo {
    width: 440px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* Logo (icono inferior) */
.brand-logo {
    margin-top: 10px;
    width: 60%;
    max-width: 200px;
}

/* Información del doctor */
.doctor-info {
    flex: 1 1 300px;
    max-width: 500px;
}

.doctor-info h2 {
    font-size: 28px;
    margin: 0;
}

.doctor-info .specialty {
    font-size: 16px;
    color: #4a6cf7;
    font-weight: bold;
    margin: 10px 0;
}

.doctor-info .title {
    font-size: 14px;
    font-style: italic;
    color: #666;
}

.doctor-info .description {
    font-size: 16px;
    color: #333;
    margin: 10px 0 20px;
}

/* Botones */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.actions .btn-primary {
    background: #4a6cf7;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.actions .btn-primary:hover {
    background: #3451c9;
}

.actions .btn-secondary {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 16px;
    align-self: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
        text-align: center;
    }

    .doctor-info {
        max-width: 100%;
    }

    .actions {
        justify-content: center;
    }
}



/* Footer */
footer {
    width: 100%;
    background-color: #5778FA;
    color: white;
    padding: clamp(20px, 5vw, 60px) 5%;
}

.cntfooter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.cntfooter div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cntfooter div img {
    width: 200px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.cntfooter div a {
    color: white;
    text-decoration: none;
    font-size: clamp(13px, 1.4vw, 15px);
    transition: color 0.3s ease;
}

.cntfooter div a:hover {
    color: rgb(46, 194, 216);
}

.cntfooter div .tittlefooter {
    font-weight: bold;
    font-size: clamp(16px, 1.8vw, 18px);
    margin-bottom: 10px;
}

.cntfooter2 {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.cntfooter2 p {
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: bold;
}


/* Responsive Breakpoints */

/* Extra Large Screens (4K, Large TVs) */
@media (min-width: 1920px) {

    header,
    .herosection,
    .conteinerTituloComofunciona,
    .conteinerComofunciona,
    .cntcreaperfil01,
    .ctnservicioBeneficiosCostos,
    .pre-contacto,
    .contacto,
    footer {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }

    .herosection {
        background-size: 1000px;
        padding-left: 200px;
        padding-right: 200px;
    }
}

/* Large Desktop Screens */
@media (min-width: 1200px) {
    .contacto {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contactodivform {
        justify-self: end;
        max-width: 500px;
    }

    .contactodivmail {
        justify-self: start;
        max-width: 500px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(4, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standard Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .herosection {
        background-size: 600px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .herosection {
        background-size: 400px;
        text-align: center;
        background-position: center top;
        padding-top: 300px;
    }

    .conteinerComofunciona {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctniteminfoservicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .herosection {
        background-size: 250px;
        background-position: center top;
        text-align: center;
        padding-top: 200px;
    }

    .conteinerTituloComofunciona {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px;
    }

    .herosection {
        background-image: none;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .conteinerTituloComofunciona {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .conteinerComofunciona {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ctniteminfoservicios {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contacto {
        padding: 20px;
    }

    .contactodivform,
    .contactodivmail {
        padding: 20px;
    }

    .contactodivform form input[type="submit"] {
        width: 100%;
        margin: 20px 0 0 0;
    }

    .cntfooter {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    header nav {
        display: none;
    }

    .herosection {
        background-image: none;
    }

    .btnobtenPerfil01,
    .btnobtenPerfil02 {
        border: 2px solid #000;
        background: transparent;
        color: #000;
    }
}

/* Contenedor general */
.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px auto;
    max-width: 1000px;
    font-family: Arial, sans-serif;
}

/* Tarjetas */
.info-card {
    border-radius: 15px;
    padding: 20px;
    flex: 1 1 300px;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo tarjeta blanca */
.white-card {
    background: #fff;
}

/* Estilo tarjeta azul */
.blue-card {
    background: #5778FA;
    color: #fff;
}

/* Items dentro de la tarjeta blanca */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.info-item strong {
    color: #5778FA;
}

.info-icon {
    width: 40px;
    margin-right: 10px;
}

.info-icon-placeholder {
    width: 40px;
    height: 30px;
    margin-right: 10px;
}

/* Texto dentro de la tarjeta azul */
.blue-card .title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.blue-card p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 100%;
    }
}


/* Sección principal */
.payment-section {
    text-align: center;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Título principal */
.payment-title {
    color: #5778FA;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Subtítulo */
.payment-subtitle {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Nombre de la empresa */
.payment-company {
    font-weight: bold;
    margin-bottom: 30px;
}

/* Contenedor de tarjetas */
.payment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Tarjeta individual */
.payment-card {
    background: #5778FA;
    color: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    width: 280px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.payment-card a {
    color: #fff;
    text-decoration: underline;
}

.payment-card p {
    margin: 10px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .payment-container {
        flex-direction: column;
        align-items: center;
    }

    .payment-card {
        width: 90%;
    }
}


.container {
    max-width: 900px;
    margin: auto;
    margin-bottom: 5%;
}

/* CARD */
.card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 20px;
    margin-bottom: 30px;
}

.logo img {
    max-width: 400px;
}

.info {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.info .subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.info hr {
    margin: 10px 0;
    border: none;
    height: 1px;
    background-color: #ddd;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: white;
    border: 2px solid #5778FA;
    color: #5778FA;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #5778FA;
    color: white;
}

/* NOTICE */
.notice {
    background-color: #5778FA;
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 30px;
}

/* MENSAJE */
.mensaje {
    text-align: center;
}

.mensaje h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.mensaje h2 span {
    color: #007bff;
}

.mensaje .quote {
    font-style: italic;
    color: #5778FA;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.mensaje .firma {
    font-weight: bold;
    color: #5778FA;
    font-size: 1rem;
}

.medicgo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.medicgo img {
    width: 40%;
    height: auto;
    margin-left:-5% ;
    margin-bottom: 2%;
}

.medicgo p {}

@media (max-width: 768px) {
    .medicgo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .medicgo {
        justify-content: center;
    }
}