/* CÓDIGO DE LA PRÁCTICA Nº 4: FUENTE ------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa&family=Poppins&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
body {
    font-family: 'Poppins', sans-serif;
    color: rgb(108,108,108);
}

h1, h2, h3 {
    font-family: 'Comfortaa', sans-serif;
    letter-spacing: 2px; 
}

h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.25rem;  

}
h3 {
    font-size: 1.1rem;
}

.negro {color: rgb(0,0,0);}
.blanco {color: rgb(255,255,255);}
.verde {color: rgb(0,153,0); }


a:link, a:visited {
    color: rgb(0,153,0);
}

a:hover {
    color: rgb(255,205,0);
    text-decoration: none;    
}

.verde li span {
    color: rgb(217,217,217);
}

/* CÓDIGO DE LA PRÁCTICA Nº 5:FONDOS ------------------------------------ */
#fondo_nosotros {
    background-color: rgb(245, 245, 245);
}

footer {
    background-color: rgb(51,51,51);
    color: rgb(217,217,217);
}

#fondo_nuestros_valores {
    background-image: url(../recursos/imagenes/fondo_nuestros_valores.jpg); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
#fondo_tabla_mantenimientos {
    background-image: url(../recursos/imagenes/fondo_mantenimiento.jpg); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

        /*-- MODAL NEWSLETTER ---------------------------------------------------------------*/

        #modal_newsletter::backdrop {
            background: rgba(0, 0, 0, 0.8);
        }

/* CÓDIGO DE LA PRÁCTICA Nº 6: TEXTO Y DECORACIÓN VÍNCULOS ------------------------------------ */
.centrado {
    text-align: center;
}
.izquierda {
    text-align: left;
}

h1, h2, h3 {
    letter-spacing: 2px; 
}

a:hover {
    text-decoration: none;    
}

/* CÓDIGO DE LA PRÁCTICA Nº 7: TABLAS---------------- ------------------------------------ */

        /* TABLA DE MODELOS -------------------------------------------------------------- */
        #tabla_modelos {
            background-color: rgb(247,247,247);
            border-spacing: 0px 15px;
        }

        #tabla_modelos th, #tabla_modelos tr {
            background-color: rgb(231,231,231);
        }

        /* TABLA DE MANTENIMIENTOS -------------------------------------------------------------- */

        #tabla_mantenimientos {
            text-align: center;
        }

        #tabla_mantenimientos table {
            border-collapse: collapse;
            background-color: rgb(255,255,255);
        }

        #tabla_mantenimientos thead {
            background-color: rgb(151,181,83);
            color: rgb(255,255,255);
        }

        #tabla_mantenimientos tbody tr:first-child {
            background-color: rgb(134,163,70);
        }

        .precio {
            font-size: 2rem;
            color: rgb(255,255,255);
        }

/* CÓDIGO DE LA PRÁCTICA Nº 8: MENÚ DE NAVEGACIÓN ------------------------------------------------ */

/*-- MENÚS ---------------------------------------------------------------------------*/
/* ===== MENU ESCRITORIO ==== */  
#menu {
    min-height: 100px;
    background-color: rgb(255,255,255);
}

#menu_escritorio {
    margin: 0px auto;
}

#logo_menu {
    width: 20%;
}
#opciones_menu {
    width: 80%;
}

#seleccionado_me {
    background-color:rgb(0,153,0);
    color: rgb(255,255,255);
}

 #opciones_menu ul {
    text-align: right;
}

#opciones_menu li {
    display: inline;
}

#opciones_menu a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 20px;
}

#opciones_menu a:hover {
    background-color:rgb(0,153,0);
    color: rgb(255,255,255);
    padding: 20px;
}

/* CÓDIGO DE LA PRÁCTICA Nº 9: BLOQUES ------------------------------------------------ */

body {
    margin: 0px;
}

h1, h2, h3 {
    padding-bottom: .6rem;
    margin: 0px;
}

#menu {
    border-bottom: 1px solid rgb(0,153,0);
}

.boton {
    width: 150px;
    height: 50px;
    background-color: rgb(0,153,0);
    color: rgb(255,255,255);
    padding: 15px;
    border: none;
    text-align: center;
}

.boton:hover {
    background-color: rgb(255,205,0);
    cursor: pointer;
    color: rgb(0,0,0);
}

#fondo_nuestros_valores {
    min-height: 500px;
    padding: 50px 0px;
}

#fondo_tabla_mantenimientos {
    min-height: 500px;
    padding: 50px 0px;
}

.separador50 {
    margin-bottom: 50px;
}
        /* TABLA DE MODELOS -------------------------------------------------------------- */
        #tabla_modelos {
            border: 1px solid rgb(190,190,190);
            margin: 0px auto;
            padding: 10px;            
        }

        #tabla_modelos th, #tabla_modelos tr {
            height: 50px;
        }
        
        #tabla_modelos th{
            border-bottom: 3px solid rgb(190,190,190);
        }

        #tabla_modelos td {
            width: 20%;
            border-right: 1px solid rgb(190,190,190);
        }

        /* TABLA DE MANTENIMIENTOS -------------------------------------------------------------- */

        #tabla_mantenimientos {
            margin: 0px auto;
            width: 80%;
        }

        #tabla_mantenimientos table {
            border: 1px solid rgb(225,225,225);
        }

        #tabla_mantenimientos td {
            width: 300px;
            border-bottom: 1px solid rgb(225,225,225);
        }

        #tabla_mantenimientos tr {
            height: 60px;
        }

        #tabla_mantenimientos tbody tr:first-child {
            height: 100px;
        }

footer {
    min-height: 350px;
}

.borde_pie {
    border-bottom: solid 1px rgb(0,153,0);
    width: 65%;
    margin: 5px 0px 10px 0px;
}

#barra_inferior {
    min-height: 50px;
    background-color: rgb(0,0,0);
}

/* CÓDIGO DE LA PRÁCTICA Nº 10: POSICIONAMIENTOS ----------------------------------------- */

/* ------------------------------------------------------------------------------------

PÁGINA DE INDEX

---------------------------------------------------------------------------------------- */

.cuerpo_flex {
    display: flex;
    width: 70%;
    margin: 0px auto;
    justify-content:center;
}

.sombra {
    box-shadow: 0 0 20px rgba(40, 40, 40, 0.4);
    margin-bottom: 50px;
}

    /*-- TARJETAS ------------------------------------------------------------------------*/

        .tarjeta {
            flex-basis: 33.333%;
            min-height: 435px;
            margin: 0px 20px;
        }

        .img_adaptable {
            object-fit: cover;
            width: 100%;
        }

        .texto_tarjeta{
            padding: 0px 15px;
        }

    /*-- COLUMNA CON FONDO --------------------------------------------------------------*/

        #columna_valores_imagen {
            flex-basis: 47.5%;
            min-height: 500px;
        }
        
        #columna_valores_separador {
            flex-basis: 5%;
        }
        
        #columna_valores_texto {
            flex-basis: 47.5%;
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
            color: rgb(255,255,255);
        }

        .margen_id20 {
            margin: 0px 20px 30px;
        }

        #columna_valores_texto div {
            background-color: rgb(51,51,51);
            padding: 10px;
            margin-bottom: 10px;
        }
        #columna_valores_texto img{
            float: left;
            margin-right: 10px;
            width: 100px;
        }


    /*-- PIE ----------------------------------------------------------------------------*/

        .columna_pie {
            flex-basis: 33.333333333333%;
            padding: 30px 10px 0px;
        }

/* ------------------------------------------------------------------------------------

PÁGINA DE NOSOTROS

---------------------------------------------------------------------------------------- */

    /*-- NOSOTROS (QUINES SOMOS) ------------------------------------------------------- */

    .columna_nosotros {
        padding: 30px 5px 0px 5px;
        min-height: 120px;
    }
    
    #fondo_nosotros .cuerpo_flex div:first-child {
        flex-basis: 58%;
    }
    
    #fondo_nosotros .cuerpo_flex div:last-child {
        flex-basis: 42%;
    }

/*-- CONOCE A NUESTRO EQUIPO ----------------------------------------------------------- */

    .columna_equipo {
        flex-basis: 25%;
        margin-top: 20px;
        padding: 10px 0px 0px 0px;
        min-height: 120px;
        border-radius: 20px;
    }

    #tabla_mantenimientos {
        display: flex;
        justify-content: center;
    }

/* ------------------------------------------------------------------------------------

PÁGINA DE CONTACTO

---------------------------------------------------------------------------------------- */  

.columna_contacto {
    flex-basis: 33.33333333333%;
    padding-top: 10px;
    min-height: 120px;
    background-color: rgb(0,153,0);
    border-radius: 20px;
    color: rgb(255,255,255);
    text-align: center;
}

/* ------------------------------------------------------------------------------------

POSICIONAMIENTO DEL MENÚ

---------------------------------------------------------------------------------------- */  

#menu {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 9999;
}

#menu_escritorio {
    flex-basis: 70%;
    display: flex;
    align-items: center;
}

/* CÓDIGO DE LA PRÁCTICA Nº 11: POSICIONAMIENTOS ----------------------------------------- */

footer i {
    padding: 20px 10px 0px 0px;
}

.color_circulo {
    color: rgb(63,191,63);
}

#flecha_subida {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

#flecha_subida i:hover {
    color: rgb(255,205,0);
}

html {
    scroll-behavior: smooth;
} 

    /*-- BARRA SUPERIOR ------------------------------------------------------------------*/
        header {
            min-height: 50px;
            background-color: rgb(0,0,0);
        }
        
        header a:link, header a:visited {
            color: rgb(255, 255, 255);
            text-decoration: none;
        }
        
        header a:hover {
            color: rgb(0,153,0);
        }

        #barra_superior {
            display: flex;
            width: 70%;
            margin: 0 auto;
            color: rgb(255,255,255);
            align-items: center;
        }

        #barra_superior p {
            display: inline-block;
            border-right: 1px solid rgb(190,190,190);
        }

        #barra_superior_redes {
            flex-basis: 45%;
        }

        #barra_superior_opciones {
            flex-basis: 55%;
            text-align: right;
        }

        #barra_superior_redes p:first-child, #barra_superior_opciones p:first-child {
            border-left: 1px solid rgb(190,190,190);
        }

        .columna_nosotros img:hover {
            filter: grayscale(100%) opacity(50%);
        }
        
/* CÓDIGO DE LA PRÁCTICA Nº 12: MEDIA QUERYS ----------------------------------------- */     

/* ===== MENU MOVIL ==== */        
#menu_movil{
    background-color: rgb(51,51,51);
    display: flex;
    flex-direction: column;
}

#menu_movil span {
    float: right;
    padding-top: 5px;
}

#menu_movil div {
    margin-top: 10px;
    padding-bottom: 10px;
}

#menu_movil a {
    padding: 10px;
    text-decoration: none;
}

#menu_movil a:hover {
    color: rgb(255,255,255);
    background-color: rgb(0,153,0);
}
#menu_movil summary {
    /* Se cambia a block porque por defecto es un list-item. Si no se cambia no se le puede modificar el símbolo */
    display: block;
    padding: 10px 0px 10px 10px;
}

#menu_movil summary::before {
    content: "☰";
    color: rgb(255,255,255);
    font-size: 1.3rem;
}

details[open]#menu_movil summary::before {
    content: "×";    
    color: rgb(255, 205,0);
    font-size: 2.2rem;
}

#seleccionado_mm {
    color: rgb(255,255,255);
    background-color: rgb(0,153,0);
}

.limpia{
    clear: both;
}

/* ------------------------------------------------------------------------------------

MEDIA QUERIES

---------------------------------------------------------------------------------------- */

@media (min-width: 0px) and (max-width: 889px) { 
    nav#menu {
        display: none;
    }

    header {
        display: none;
    } 
}

@media (min-width: 890px) { 
    #menu_movil {
        display: none;
    }
}

    /* CONTROL DE ANCHURA DE TARJETAS  -------------------------------------------------- */
    @media (min-width: 0px) and (max-width: 1024px) {     
        .cuerpo_flex {
            display: block;
        }
        .tarjeta {
            float: left;
            margin: 25px 10px;
        }
    }
    @media (min-width: 0px) and (max-width: 889px) {   
        /* Contenido a 1 columna */   
        .cuerpo_flex {
            width: 100%;
        }
        .tarjeta {
            width: 94%;
        }
    }

    @media (min-width: 890px) and (max-width: 1024px) {  
        /* Contenido a 2 columnas */   
        .cuerpo_flex {
            width: 85%;
        }

        .tarjeta {
            width: 47%;
        }
    }

    @media (max-width: 768px) {     
        /* Columnas de tablas de mantenimiento de productos a una columna */           
        #tabla_mantenimientos {
            flex-direction: column;
        }
    }

/*
INICIO DE CÓDIGO DE LA UF1304: ELABORACIÓN DE PLANTILLAS Y FORMULARIOS
*/

    /* CÓDIGO DE LA PRÁCTICA Nº 7: FORMULARIO COMPLETO ----------------------------------------- */   
    #form_contacto {
        width: 70%;
        margin: 0px auto;
    }

    .separador_campos {
        margin: 0px 10px;
    }

    input, textarea, button {
        margin-bottom: 35px;
        width: 47%;
        height: 25px;
        font-size: 1.1rem;
        padding: 8px 10px;
        border: none;
        outline: 1px solid rgb(204,204,204);
        background-color: rgb(255,255,255);
    }

    textarea {
        width: 98%;
        height: 200px;
        margin: 0px;
    }

    select, option {
        font-family: 'Poppins', sans-serif;
    }    

    input[type="checkbox"], input[type="radio"] {
        width: 30px;
        height: 15px;
        outline: none;
        margin: 0px;
    }

    input::placeholder, textarea::placeholder {
        color: rgb(217,217,217);
        font-family: 'Poppins', sans-serif;
    }    


    /* Media Queries para el formulario */
    @media (max-width: 580px) {   
        #form_contacto {
            width: 90%;
        }
        
        #form_contacto input[type="text"], #form_contacto input[type="tel"], #form_contacto input[type="email"] {
            width: 90%;
        }
    }


    /* CÓDIGO DE LA PRÁCTICA Nº 8: PÁGINA DE AGRADECIMIENTO ----------------------------------------- */   

    #agradecimiento {
        margin: 50px auto;
        padding: 30px 20px;
        width: 50%;			
        font-size: 1.5rem;
        background-color: rgb(0,153,0);
        color: rgb(255,255,255);
        border-radius: 20px 20px;
    }

    /* CÓDIGO DE LA PRÁCTICA Nº 9: SUBCABECERA Y FORMULARIO MODAL ------------------------------ */  

            /*-- SUBCABECERA --------------------------------------------------------------------*/
            .subcabecera {
                flex-basis: 25%;
                padding: 20px 0px 0px 10px;
                min-height: 140px;
                display: flex;
            }
    
            .subcabecera_texto
            {
                padding-left: 20px;
            }

    
        /* Media Queries para la subcabecera */ 
        @media (min-width: 0px) and (max-width: 580px) {     

            .subcabecera {
                float: left;
            }

            .cuerpo_flex {
                display: flex;
                flex-direction: column;
                width: 100%;
            }

            .subcabecera, .tarjeta {
                width: 90%;
                padding: 5px;
                justify-content: center;
                margin: 0px auto;
                margin-bottom: 50px;
            }        
        }    

        /* Formulario de presupuesto */

        #form_presupuesto {
            max-width: 50%;
        }
        
        #form_presupuesto::backdrop {
            background: rgba(0, 0, 0, 0.8);
        }
        
        #form_presupuesto label {
            font-weight: bold;
        } 
        
        #form_presupuesto textarea {
            height: 100px;
            width: 95%;
        }

        #form_presupuesto select {
            width: 250px;
        }
        #form_presupuesto input[type="submit"], #form_presupuesto input[type="reset"] {
            margin-bottom: 0px;
        }

        /* Media Queries para El formulario modal de presupuesto */ 
        @media (min-width: 0px) and (max-width: 580px) {     
            #form_presupuesto {
                width: 90%;
            }
            #form_presupuesto input[type="text"],  #form_presupuesto input[type="email"]  {
                width: 90%;
            }
        }
        
    header select {
        width: 150px;
    }


/* CÓDIGO DE LA PRÁCTICA Nº 10POLÍTICA DE PRIVACIDAD ------------------------------ */  

    /* BANNER POLÍTICA DE COOKIES Y PRIVACIDAD ----------------------------------------- */   

    #aviso_politica {
        width: 100%;
        max-height: 125px;
        position: fixed;
        bottom: 0px;
        left: 0px;
        background-color: #3c3c3c;
    }
    #aviso_politica p {
        padding: 0px 10px;
        color: white;
    }

/*
INICIO DE CÓDIGO DE LA UF1305: PROGRAMACIÓN CON LENGUAJES DE GUION EN PÁGINAS WEB
*/
/* CÓDIGO DE LA PRÁCTICA Nº 04  */

#frm_compra input[name="nombre"], #frm_compra input[name="email"]{
    width: 45%;
}

@media (max-width: 580px) {
    #frm_compra input[name="nombre"], #frm_compra input[name="email"]{
        width: 95%;
    }
}

.derecha {
    text-align: right;
}

.amarillo {
    background-color: rgb(255,205,0);
}

.columna_nosotros table td:nth-child(1) {
   width: 170px;
}
.columna_nosotros table td:nth-child(2), .columna_nosotros table td:nth-child(4) {
    width: 70px;
    text-align: right;
}
.columna_nosotros table td:nth-child(3) {
    width: 230px;
}

/*
INICIO DE CÓDIGO DE LA UF1306: FUNCIONALIDAD WEB
*/

#e_nom,#e_ema, #e_mot, #e_cli, #e_con, #e_pol {
    color: rgb(255,0,0);
}

