﻿body {
  font-family: "Helvetica Neue", Helvetica, Arial;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #3b3b3b;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  background: #ffffff;
}

.card {
    display: none;
}

.wrapper {
  margin: 0 auto;
  padding: 40px;
  max-width: 1100px;
}

.table {
  margin: 0 0 40px 0;
  /*width: 100%;*/
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  display: table;
}
/*@media screen and (max-width: 580px) {
  .table {
    display: block;
  }
}*/

.row {
  display: table-row;
  background: #f6f6f6;
}
.row:nth-of-type(odd) {
  background: #e9e9e9;
}
.row.header {
  font-weight: 900;
  color: #ffffff;
  background: #ea6153;
  text-align:center;
  font-size:18px;
}
#cuerpoCombosTabla > .table > .row.header {
  font-weight: 900;
  color: #ffffff;
  background: #ea6153;
  text-align:center;
  font-size:18px;
}
#cuerpoCombosTabla > .table:nth-child(2n+1) > .row.header {
  background: #2980b9 !important;
}
.dia{
	font-size:12px;
	}
.row.green {
  background: #27ae60;
}
.row.blue {
  background: #2980b9;
}
.row select{   
	text-align:center;
	font-size: 14px;
   line-height: 1;
   height: 24px;}

/*@media screen and (max-width: 580px) {
  .row {
    padding: 8px 0;
    display: block;
  }
}*/

.cell {
  padding: 6px 26.4px;
  display: table-cell;
}
.cellhoy {
    padding: 6px 26.4px;
    display: table-cell;
    background-color: #EAEAEA;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.cellhoyarriba {
    padding: 6px 26.4px;
    display: table-cell;
    background-color: #2980b9;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.cellhoyarribarojo {
    padding: 6px 26.4px;
    display: table-cell;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.cellayer{
	  padding: 6px 12px;
  display: table-cell;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0);
	}
/*@media screen and (max-width: 580px) {
  .cell {
    padding: 2px 12px;
    display: block;
  }
}*/


.combowapo select { 
   width: 22%;
   padding: 5px;
   font-size: 14px;
   line-height: 1;
   height: 34px;
}

#aComboTratamiento {
    margin-bottom: 4%;
}


.deshabilitado {
    opacity: 0.5;
}
.celdaDia {
    text-align: center;
}
.vistaDiaHoy {
    display:none;
}
.vistaDiaManyana {
    display:none;
}

#dialogoInicial button {
    width: 10% !important;
}

#dialogoCitaReservada {
    width: 40%;
}


@media screen and (max-width: 768px) {

    body {
        font-size: 28px;
        line-height: 26px;
    }

    h1 {
        font-size: 26px;
        line-height: 32px;
    }

    p {
        font-size: 20px;
        line-height: 26px;
    }

    hr {
        border: none;
        height: 1px;
        background: rgba(0, 0, 0, 0.15);
    }

    .table {
        display: none;
    }

    .wrapper {
        padding: 15px;
    }

    #divFlechas {
        display: none;
    }

    /*Nacho -> Combos*/
    .combowapo {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-right: 5%;
        margin-left: 5%;
    }

        .combowapo select {
            width: 100% !important;
            height: 52px;
            font-size: 20px;
            padding: 10px;
        }

    /*Nacho -> Tabla más grande*/
    #cuerpoCombosTabla {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        #cuerpoCombosTabla > .table {
            min-width: 980px;
        }

    .row.header {
        font-size: 18px;
    }

    .cell,
    .cellhoy,
    .cellhoyarriba,
    .cellhoyarribarojo {
        font-size: 16px;
        padding: 12px 14px;
    }

    .nombreDoctor,
    .nombreClinica {
        font-size: 20px;
    }

    .dia {
        font-size: 14px;
    }

    /*Nacho -> Selec más grande de horas */
    .SelectHoraLibre {
        min-width: 110px;
        height: 48px;
        font-size: 18px;
    }

    /*Nacho -> Botones de la semana más grandes*/

    #imgSemanaAnterior,
    #imgSemanaPosterior {
        padding: 10px;
    }

    #dialogoInicial {
        width: 80% !important;
    }

        #dialogoInicial button {
            width: 100% !important;
        }

    /*Nacho -> Cards
*/
    .card {
        display: block;
        width: 92%;
        max-width: 420px;
        margin: 30px auto;
        padding: 20px;
        background-color: whitesmoke;
        box-sizing: border-box;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        text-align: center;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

        /* Título clínica */
        .card h1.nombreClinica {
            font-size: 22px;
            line-height: 26px;
            margin-bottom: 12px;
            color: #2c3e50;
        }

        /* Doctor */
        .card .nombreDoctor {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 6px;
            color: #000;
        }

        /* Separador */
        .card hr {
            margin: 14px 0;
            height: 1px;
            border: none;
            background: rgba(0,0,0,0.15);
        }

        /* Labels */
        .card label {
            display: block;
            text-align: left;
            font-size: 16px;
            font-weight: 600;
            margin: 14px 0 6px;
            color: #555;
        }

        /* Inputs y selects */
        .card input,
        .card select {
            width: 100%;
            height: 46px;
            padding: 10px;
            font-size: 16px;
            border-radius: 10px;
            border: 1px solid #ccc;
            background-color: #ffffff;
            box-sizing: border-box;
        }

            .card input:focus,
            .card select:focus {
                outline: none;
                border-color: #2980b9;
            }

        /* Select flecha */
        .card select {
            appearance: none;
            background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
            background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
            background-size: 6px 6px;
            background-repeat: no-repeat;
        }

        /* Botones */
        .card button {
            width: 100%;
            height: 48px;
            margin-top: 16px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 12px;
            border: none;
            background-color: #ea6153;
            color: #ffffff;
        }

        .card:nth-of-type(2n+1) button {
            width: 100%;
            height: 48px;
            margin-top: 16px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 12px;
            border: none;
            background-color: #2980b9;
            color: #ffffff;
        }

        .card button:active {
            opacity: 0.85;
        }

        .card h1.nombreClinica {
            background-color: #ea6153;
            color: #ffffff;
            margin: -20px -20px 16px -20px; /* pega al borde */
            padding: 16px;
            border-radius: 20px 20px 0 0;
            text-align: center;
            font-size: 20px;
            font-weight: 700;
        }

    #dialogoReservarCita {
        left: 50%;
        width: 92% !important;
        max-width: 420px;
        padding: 20px !important;
        box-sizing: border-box;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        z-index: 9999;
    }

    .card h1.nombreClinica {
        background-color: #ea6153;
        color: #ffffff;
    }

    .card:nth-of-type(2n+1) h1.nombreClinica {
        background-color: #2980b9;
    }

    /* Texto resumen */
    #aParrafoResumenCita {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    /* Cada fila del formulario */
    #dialogoReservarCita > div {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Forzar columnas a vertical */
    #dialogoReservarCita div[style*="inline-block"] {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px;
    }

    /* Labels */
    #dialogoReservarCita label {
        display: block !important;
        width: 100% !important;
        margin-bottom: 6px;
        font-size: 16px;
        font-weight: 600;
        text-align: left !important;
    }

    /* Inputs y textarea */
    #dialogoReservarCita input,
    #dialogoReservarCita textarea {
        width: 100% !important;
        height: 46px;
        font-size: 16px;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

    #dialogoReservarCita textarea {
        height: 90px;
        resize: none;
    }

    /* Checkbox privacidad */
    #dialogoReservarCita input[type="checkbox"] {
        width: auto !important;
        height: auto;
        margin-right: 6px;
    }

    /* Privacidad */
    #dialogoReservarCita div[style*="float: left"] {
        float: none !important;
        width: 100% !important;
        margin: 12px 0;
        font-size: 14px;
    }

    /* Botones */
    #dialogoReservarCita div[style*="float: right"] {
        float: none !important;
        width: 100% !important;
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    #BtnReservarCitaAtras,
    #BtnReservarCitaReservar {
        width: 50%;
        height: 48px !important;
        font-size: 16px;
        border-radius: 12px;
        border: none;
    }

    #BtnReservarCitaReservar {
        background-color: #2980b9;
        color: white;
        font-weight: bold;
    }

    .date-wrapper {
        position: relative;
        width: 100%;
    }

        .date-wrapper input[type="date"] {
            position: relative;
            z-index: 2;
        }

    #dialogoCitaReservada {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        margin: 0 !important;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 10000;
        display: none;
        width: 90%;
        padding: 20px;
        background-color: whitesmoke;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        box-sizing: border-box;
        text-align: center;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

        #dialogoCitaReservada > div {
            margin-bottom: 10px;
            font-size: 16px;
            color: #000;
        }

        #dialogoCitaReservada #CR_Tratamiento_Doctor_Clinica {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        #dialogoCitaReservada #CR_Fecha_Hora,
        #dialogoCitaReservada #CR_Nombre_Apellidos,
        #dialogoCitaReservada #CR_Telefono_Email {
            font-size: 16px;
        }

        #dialogoCitaReservada #CR_Aviso {
            margin-top: 14px;
            font-size: 15px;
            line-height: 22px;
            font-weight: 600;
            color: #555;
        }

        #dialogoCitaReservada button {
            width: 100%;
            height: 48px;
            margin-top: 16px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 12px;
            border: none;
            background-color: #2980b9;
            color: #ffffff;
            cursor: pointer;
        }

            #dialogoCitaReservada button:active {
                opacity: 0.85;
            }
}
