/*Estilos generales*/
* {
    margin: 0px;
    padding: 0px;
    text-decoration: none;
    font-family: 'Open Sans', Verdana;
}

html,
body {
    overflow-x: hidden;
}

body {
    background: white;
}

.clearfix {
    clear: both;
    float: none;
}

.container {
    width: 85%;
    margin: 0px auto;
}

/*Cabecera*/
#main-header {
    background: white;
    height: 100px;
    line-height: 85px;
}

#logo {
    width: 63%;
    float: left;
}

#logo h1 {
    font-weight: bold;
    font-size: 25px;
    color: #FB314E;
}

#menu {
    width: 380px;
    float: left;
}

#menu ul li {
    list-style: none;
    float: left;
    margin-left: 15px;
    margin-right: 15px;
}

#menu ul li a {
    color: black;
}

#menu ul li a:hover {
    color: #FB314E;
}

/*Slider*/
#slider {
    height: 300px;
    background: #FB314E;
}

#slider h2 {
    font-size: 40px;
    text-align: center;
    color: white;
    padding-top: 80px;
    text-shadow: 0px 0px 6px black;
}

#slider p {
    text-align: center;
    color: white;
    margin-top: 20px;
}


/*Maquetado de servicios*/
.subheader {
    font-size: 34px;
    color: #333;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(251, 49, 78, 0.3);
}

.service,
.video {
    width: 33%;
    text-align: center;
    float: left;
    margin-top: 20px;
    margin-bottom: 20px;
}

.service img {
    width: 90%;
    height: 180px;
    margin-bottom: 20px;
}

.service h3 {
    margin-bottom: 10px;
}

.service p,
.video p {
    color: #444;
    text-align: justify;
    display: block;
    width: 85%;
    margin: 0px auto;
}

/*Sección de videos*/
#videos {
    overflow: hidden;
}

.video iframe {
    width: 90%;
    height: 200px;
}

.video h3 {
    margin: 15px;
}

.added-videos {
    clear: both;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.added-videos .video {
    width: auto;
}

.added-videos .video p {
    margin-top: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.added-videos video {
    width: 90%;
    height: 200px;
    background: #222;
}

.video-form {
    width: min(100%, 680px);
    margin: 24px auto 36px;
    color: #333;
}

.video-form h3,
.video-field {
    margin-bottom: 16px;
}

.video-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.video-field input,
.video-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #777;
    border-radius: 8px;
    font: inherit;
}

.video-field textarea {
    resize: vertical;
}

.video-field small {
    display: block;
    margin-top: 6px;
}

.video-form button {
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #fb7185;
    color: #222;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.video-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

#video-status {
    margin-top: 10px;
}

/*Pie de página*/
#footer {
    background: #333;
    color: white;
    padding: 30px;
    text-align: center;
}

#footer .subheader {
    color: white;
}

.contact-form {
    --contact-accent: #fb7185;
    width: min(100%, 680px);
    margin: 0 auto 28px;
    text-align: left;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    margin-bottom: 16px;
}

.contact-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--contact-accent);
    font-weight: bold;
}

.contact-field input,
.contact-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid #aaa;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
}

.contact-field textarea {
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid var(--contact-accent);
    outline-offset: 2px;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--contact-accent);
    color: #222;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    filter: brightness(1.1);
}

.contact-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.contact-status {
    min-height: 1.5em;
    margin-top: 10px;
    text-align: center;
}

#networks {
    list-style: none;
    margin-top: 20px;
}

#networks li {
    display: inline-block;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 300ms;
}

#networks li a {
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

#networks li img {
    display: block;
    width: 36px;
    height: 36px;
}

#networks li:hover {
    opacity: 0.8;
    transform: scale(1.1, 1.1);
}

/*Media Queries*/
/* Escritorio: 1024 px en adelante, acento rosa */
@media (min-width: 1024px) {
    .contact-form {
        --contact-accent: #fb7185;
    }
}

/* Tableta: 601 a 1023 px, acento turquesa */
@media (min-width: 601px) and (max-width: 1023px) {
    .contact-form {
        --contact-accent: #5eead4;
        max-width: 600px;
    }
}

/* Móvil: hasta 600 px, acento amarillo y campos apilados */
@media (max-width: 600px) {
    .contact-form {
        --contact-accent: #fde68a;
    }

    .contact-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 1225px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1085px) {
    #main-header {
        height: auto;
        line-height: 65px;
    }
}

@media (max-width: 999px) {
    #logo {
        width: 100%;
        float: none;
        text-align: center;
    }

    #menu {
        float: none;
        margin: 0px auto;
    }

    #slider {
        height: 250px;
    }

    #slider h2 {
        font-size: 30px;
        padding-top: 60px;
    }
}

@media (max-width: 700px) {

    .added-videos {
        grid-template-columns: 1fr;
    }

    .added-videos .video {
        width: 100%;
        margin: 20px 0;
    }

    .service,
    .video {
        width: 70%;
        float: none;
        margin: 20px auto;
    }

    .service img {
        margin-bottom: 10px;
    }

    .service p,
    .video p {
        margin-top: 20px;
    }

    .video iframe {
        width: 80%;
        height: 230px;
    }
}

@media (max-width: 460px) {
    #slider h2 {
        font-size: 25px;
        margin-top: 0px;
    }
}

@media (max-width: 377px) {
    #menu {
        width: 100%;
        text-align: center;
    }

    #menu ul li {
        margin-left: 4%;
        margin-right: 4%;
    }

    #slider h2 {
        padding-top: 50px;
    }

    .service,
    .video {
        width: 90%;
    }

    .video iframe {
        width: 80%;
        height: 150px;
    }
}

@media (max-width: 345px) {
    #main-header {
        height: auto;
    }

    #menu ul li {
        float: none;
    }
}
