* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #ff0080;
    --color-primary-hover: #ff66a3;
    --color-dark: #8b0053;
    --color-background: #240016;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.logo {
    max-width: 200px;
    height: auto;
}

html {
    font-size: 16px;
}

.google-calendar-container {
    text-align: center;
    margin: 2rem auto;
    background-color: white;
}

.google-calendar-container iframe {
    max-width: 100%;
    border-radius: 10px;
    overflow: auto;
}

body {
    font-family: "Montserrat", sans-serif;
  font-weight: 202;
  font-style: normal;
    line-height: 1.6;
    background: linear-gradient(to bottom, #191C20, var(--color-background));
    color: #fff;
    padding: 1.25rem;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 0.9375rem;
}

.cta {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.video-section {
    margin: 1.875rem 0;
}

.video-container {
    display: flex;
    justify-content: center;
    will-change: transform; /* Optimiza la renderización */
}

video {
    width: 80%;
    max-width: 37.5rem;
    border-radius: 0.625rem;
    border: 0.25rem solid var(--color-primary);
    will-change: transform; /* Mejora el rendimiento de transformaciones */
    transform: translateZ(0); /* Fuerza la aceleración por hardware */
    backface-visibility: hidden; /* Reduce el consumo de memoria */
}

.about, .about-profession {
    margin-bottom: 1.875rem;
}

.about p, .about-profession p {
    font-size: 1.2rem;
    margin-bottom: 0.9375rem;
}

.mission {
    font-weight: bold;
    color: var(--color-primary);
}

.services h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.9375rem;
}

.services ul {
    list-style-type: none;
}

.services li {
    font-size: 1.2rem;
    margin-bottom: 0.625rem;
}

.about {
    display: flex;
    justify-content: center;
    text-align: left;
}

.about-content, .about-container {
    display: flex;
    align-items: center;
    max-width: 56.25rem;
    margin: auto;
    gap: 5rem;
}

.about-img {
    width: 25rem;
    height: auto;
    border-radius: 0.625rem;
}

.about-image {
    width: 25rem;
    height: auto;
    border-radius: 0.625rem;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.about-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 37.5rem;
    text-align: center;
}

.container, #calendar-container {
    max-width: 31.25rem;
    margin: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 1.25rem;
    border-radius: 0.625rem;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3125rem;
    margin-top: 1.25rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
}

.day {
    padding: 0.9375rem;
    background: white;
    color: black;
    border-radius: 0.3125rem;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.day:hover {
    background: var(--color-primary);
    color: white;
}

.day.selected {
    background: var(--color-dark);
    color: white;
}

.day.past {
    background: gray;
    color: white;
    cursor: not-allowed;
}

.selectors {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
}

select, input {
    padding: 0.625rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.3125rem;
    outline: none;
}

select:focus, input:focus {
    border: 0.125rem solid var(--color-primary);
}

button, .btn-agendar, #open-form-btn {
    margin-top: 1.25rem;
    padding: 0.75rem 0.9375rem;
    font-size: 1.125rem;
    font-weight: bold;
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

button:hover, .btn-agendar:hover, #open-form-btn:hover {
    background: var(--color-primary-hover);
}

button:disabled {
    background: gray;
    cursor: not-allowed;
}

.btn-reagendar {
    background: #555;
}

.btn-reagendar:hover {
    background: #777;
}

#form-container, .form-container {
    display: none;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    text-align: left;
}

label {
    font-weight: bold;
}

footer {
    text-align: center;
    font-size: 1rem;
    color: #ccc;
    margin-top: 2.5rem;
}

@media screen and (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .about-content, .about-container {
        max-width: 75rem;
        gap: 6rem;
    }

    .about-img {
        width: 30rem;
    }

    video {
        max-width: 50rem;
    }

    .container, #calendar-container {
        max-width: 37.5rem;
    }
}

@media screen and (max-width: 1919px) {
    html {
        font-size: 16px;
    }
}

@media screen and (max-width: 1199px) {
    html {
        font-size: 15px;
    }

    .logo {
        max-width: 180px;
    }

    .about-content, .about-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-img {
        width: 20rem;
    }

    .about-image {
        width: 20rem;
    }

    video {
        width: 90%;
    }

    .container, #calendar-container {
        max-width: 90%;
    }
}

@media screen and (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .logo {
        max-width: 150px;
    }

    body {
        padding: 0.625rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .about-img {
        width: 16rem;
    }

    .about-image {
        width: 15rem;
    }

    .selectors {
        flex-direction: column;
    }

    select, input {
        width: 100%;
    }

    #calendar {
        gap: 0.15rem;
    }

    .day {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .logo {
        max-width: 120px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .about-img {
        width: 20rem;
    }

    .about-image {
        width: 16rem;
    }

    video {
        width: 100%;
        border-width: 0.125rem;
    }

    .day {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    button, .btn-agendar, #open-form-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
}