/* Formateado de la página */
html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Fuentes */
@font-face {
    font-family: "Celab";
    src: url(font/Oregon-LDO.woff2);
}

@font-face {
    font-family: "Negrita";
    src: url(font/Oregon-LDO-Bold.woff2);
}

@font-face {
    font-family: "extraNegrita";
    src: url(font/Oregon-LDO-ExtraBold.woff2);
}


/* General */
body {
    margin: 0;
    padding: 0;
    font-family: "Celab";
    background-color: #000000;
    color: white;
}


*::selection {
    background-color: #F7A800;
}


section[aria-label="proceso"],
section[aria-label="trabajos"] {
    padding: 20px 80px;
    font-size: 20px;
    letter-spacing: 1px;
    text-justify: auto;
}

/*----------------- NAVEGACIÓN ---------------------- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0px;
    background-color: #f9b014;
}

/* Logo */
nav>img {
    position: absolute;
    top: 6px;
    
    margin-left: 5px;
}


/* Lista de navegación */
nav > ul {
    margin: 0;
    padding: 0px 30px;
    padding-left: 40%;
    text-align: right;
    word-spacing: 20px;
}

/* Cada elemento de la lista */
nav ul li {
    display: inline-block;
    list-style-type: none;
}

/* Enlaces de navegación */
nav ul li a {
    display: inline-block;
    font-family: "extraNegrita";
    font-size: 18px;
    color: #4c4a44;
    letter-spacing: 3px;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline #4c4a44 6px;
    color: #4c4a44;
}

/* Enlace "sobre nosotros" */
nav ul li:nth-child(2) a {
    word-spacing: 2px;
}

/* ----------------------- BANNER ----------------------------*/

/* Logo */
section>article>img {
    display: block;
    margin: 0 auto;
}


section[aria-label="banner"] {
    margin-bottom: 300px;
    position: relative;
}

section[aria-label="banner"] h2{
font-size: 80px;
text-align: center;
letter-spacing: 5px;
padding:0px 0px 0px;
margin-top: 150px;
}

section[aria-label="banner"] p {
    font-size: 50px;
    text-align: center;
    letter-spacing: 3px;
}

section[aria-label="banner"] a {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: "Celab";
    font-weight: bolder;
    font-size: 20px;
    letter-spacing: 1px;
    background-color: #F7A800;
    color: #4c4a44;
    cursor: pointer;
    text-decoration: none;
    border: none;
}


section[aria-label="banner"] {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1.2s ease-out forwards;
    animation-delay: 0.5s; 
  }
  
  @keyframes aparecer {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  


/*----------------- SOBRE NOSOTROS ---------------------- */


article img:nth-of-type(2) {
    width: 100%;
    z-index: -1;
    margin: 0px;
    filter: grayscale(1) opacity(50%);
    position: absolute;
    top: 50px;
    left: 0;
}

/* Títulos y articulo */
#nosotros h2 {
    letter-spacing: 5px;
    color: #f9b014;
    font-size: 30px;
    text-align: center;
}

#nosotros h3 {
    letter-spacing: 2px;
    font-size: 25px;
    text-align: center;
    margin-left: 110px;
    margin-right: 105px;
    margin-top: 0;
}

#nosotros h3:nth-of-type(2) {
    text-align: left;    
}
#nosotros p {
    text-align: justify;
    margin: 0px 120px;
}


section>article {
    font-size: 20px;
    padding-bottom: 50px;
    z-index: 1;
    letter-spacing: 1px;
    text-justify: auto;
    padding-right:100px ;
    padding-left: 100px;
    padding-top:0px;
}




/* ------------------- SERVICIOS ------------------------*/

#servicios {
    position: relative;
    padding: 2rem;
    text-align: center;
}


/* Nuestros servicios */
section[aria-label="servicios"]>h2 {
    margin-bottom: 2rem;
    margin-top: 3rem;
    padding-left: 4px;
    font-size: 2rem;
    letter-spacing: 5px;
    color: #F7A800;
}

#servicios p {
    margin: 0 auto 2rem;
    max-width: 700px;
    font-size: 20px;
    color: white;
    letter-spacing: 1px;
}

/* Imagen espejo */
#servicios img {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100%;

    z-index: -1;
    filter: grayscale(1) opacity(50%);


}

/* Listas de servicios */
section[aria-label="lista de servicios"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

section[aria-label="lista de servicios"]>article ul {
    padding-left: 1.2rem;
}

section[aria-label="lista de servicios"]>article li {
    margin-bottom: 0.5rem;
    color: white;
}

/* Tarjetas servicios */
section[aria-label="lista de servicios"]>article {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid #F7A800;
    background-color: #39373369;

    text-align: left;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    transition: background-color 0.3s ease;
}

/* Títulos tarjetas */
section[aria-label="lista de servicios"]>article h3 {
    margin-bottom: 0.5rem;
    text-align: center;
    color: #f9b014;
}


section[aria-label="lista de servicios"]>article:nth-of-type(2):hover {
    color: #4c4a44;
}


/* Hover */
section[aria-label="lista de servicios"]>article:hover {
    background-color: #F7A800;
}

section[aria-label="lista de servicios"]>article:hover h3,
section[aria-label="lista de servicios"]>article:hover li {
    color: #4c4a44;
}



/* ------------------- PROCESO DE TRABAJO -----------------------------*/

#proceso {
    padding: 2rem;
    text-align: center;
    background-color: #000000;
}

/* Títulos de los procesos */
#proceso h2 {
    margin-bottom: 2rem;
    margin-top: 3rem;
    font-size: 2rem;
    letter-spacing: 5px;
    color: #f9b014;
}

/* Sección tarjetas */
#proceso .proceso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* Tarjetas */
#proceso article {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #F7A800;
    background-color: #5b5b5b50;
    transition: transform 0.3s ease;
}

#proceso article:hover {
    transform: translateY(-5px);
}

/* Títulos de las tarjetas */
#proceso h3 {
    margin: 0.5rem 0;
    font-size: 23px;
    color: #f9b014;
}

/* Texto tarjetas */
#proceso p {
    font-size: 20px;
    color: white;
}


/* ----------------------- NUESTROS TRABAJOS -------------------------*/
section[aria-label="trabajos"] {
    padding-top: 100px;
}

/* Título */
section[aria-label="trabajos"] h2 {
    color: #f9b014;
    letter-spacing: 5px;
    word-spacing: 10px;
    font-size: 30px;
    text-align: center;
}

/* Centrado de la tabla y espaciado */
section[aria-label="trabajos"] table {
    margin: 2rem auto;
    border-spacing: 1rem;
}

/* Estilo de las imágenes */
section[aria-label="trabajos"] img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: grayscale(1);
    transition: all 0.5s ease;
}

section[aria-label="trabajos"] img:hover {
    filter: grayscale(0);
    width: 350px;
}


/* ------------------------- PREGUNTAS FRECUENTES -----------------------------*/

section[aria-label="faq"] {
    padding: 60px 10%;
    font-size: 15px;
    background-color:#000000;
    color: #ffffff;
}

/* Título */
section[aria-label="faq"] h2 {
    font-size: 30px;
    text-align: center;
    letter-spacing: 3px;
    color: #f9b014;
    margin-bottom: 40px;
    letter-spacing: 5px;
}

/* Preguntas desplegables */
section[aria-label="faq"] details,
section[aria-label="faq"] details p,
section[aria-label="faq"] details summary {
    letter-spacing: 1px;
}

section[aria-label="faq"] details {
    margin-bottom: 20px;
    padding: 20px;
    border-left: 6px solid #f9b014;
    border-radius: 12px;
    background-color: #3b3a36;
    transition: all 0.3s ease;
    cursor: pointer;
}

section[aria-label="faq"] details:hover {
    background-color: #5c5a53;
    border-left-color: #ffc107;
}

/* Icono + / – */
section[aria-label="faq"] summary {
    font-size: 20px;
    font-weight: bold;
    position: relative;
    padding-right: 25px;
    list-style: none;
}

section[aria-label="faq"] summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 24px;
    transition: transform 0.3s ease;
}

section[aria-label="faq"] details[open] summary::after {
    content: "–";
}

/* Respuestas (texto) */
section[aria-label="faq"] details p {
    margin-top: 15px;
    font-size: 18px;
    line-height: 1.5;
    color: #e0e0e0;
    animation: fadeIn 0.3s ease-in-out;
}

section[aria-label="faq"] details p a{
    color: #F7A800;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* -------------------- ICONOS UBICACIÓN, DIRECCIÓN Y TELÉFONO -------------------------- */

section[aria-label="iconos"] table {
    margin: auto;
    position: relative;
    table-layout: fixed;
    border-spacing: 80px;
    text-align: center;
}

section[aria-label="iconos"] table td {
    width: 33.33%;
    padding: 15px 100px;
    font-size: 18px;
    font-weight: bolder;
    letter-spacing: 1px;
    border-radius: 20px;
    color: rgb(77,72,72);
    background-color: #f9b014;
}

section[aria-label="iconos"] table td:hover {
    background-color: #ffe7b4;
}


/* ------------------------ CONTACTA CON NOSOTROS ---------------------------- */

section[aria-label="contacto"] {
    margin-top: 30px;
    padding: 50px 80px;
    background-color: #000000;
}

/* Título */
section[aria-label="contacto"]>h2 {
    font-size: 30px;
    letter-spacing: 5px;
    color: #f9b014;
}

/* Formulario */
section form {
    display: inline-block;
    font-size: 18px;
}

/* Nombre, Teléfono, correo y mensaje */
section form input,
section form textarea {
    margin: 3px;
    padding: 10px;
    border: 2px solid #F7A800;
    border-radius: 10px;
    letter-spacing: 1px;
}
/* Nombre, teléfono y correo */
section form input {
    width: 300px;
}

section form input:hover,
section form textarea:hover {
    background-color: rgb(251,248,241);
}

/* Mensaje */
section form textarea {
    width: 630px;
}

/* Botón enviar */
section form button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-family: "Negrita";
    font-size: 18px;
    letter-spacing: 1px;
    background-color: #F7A800;
    color: #4c4a44;
    cursor: pointer;
}

/* Texto dentro */
section form ::placeholder {
    font-family: "Celab";
    font-size: 14px;
    letter-spacing: 1px;
}

/* Enlace botón */
a {
    color: #4c4a44;
    text-decoration: none;
}

/* Flechas del input number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Foto tecnologia */
.tecnologia img{
    display: none; 
}

/* contenedor formulario + imagen */
.formulario-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 30px;

}

/* Formulario en article */
.formulario-contenedor article {
    flex: 1;
    min-width: 300px;
    padding: 0;
}

/* Imagen en aside */
.formulario-contenedor aside img {
    max-width: 400px;
    height: auto;
    filter: grayscale(2) opacity(90%);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .formulario-contenedor {
        flex-direction: column;
        align-items: center;
    }

    .formulario-contenedor aside img {
        max-width: 100%;
        margin-top: 20px;
    }
}




/* -------------------- FOOTER HORARIO Y DETALLES DE CONTACTO -------------------------- */

footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 2rem;
    background-color: #f9b014;
    color: #4c4a44;
    font-size: 20px;
    gap: 4rem;
    text-align: left;
}

.columna {
    flex: 1 1 250px;
    min-width: 200px;
}

.columna.contacto ul {
    list-style:disc;
}

footer h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer img {
    max-width: 100px;
    margin-top: auto;
    margin-left: auto;
    margin-right: 0;
}

address {
    font-style: normal;
}

.columna.horario {
    margin-left: 2rem;
}



/* -------------------- ESTILOS RESPONSIVE -------------------------- */

@media (max-width: 768px) {
    section[aria-label="servicios"],
    section[aria-label="proceso"],
    section[aria-label="trabajos"],
    section[aria-label="faq"],
    section[aria-label="contacto"] {
        padding: 20px;
        font-size: 16px;
    }

    nav > ul {
        padding-left: 10%;
        word-spacing: 10px;
    }

    #nosotros h2,
    #nosotros h3,
    #nosotros p {
        padding-left: 20px;
    }

    section > article > img {
        position: static;
        display: block;
        margin: auto;
    }

    section form input,
    section form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    section form textarea {
        height: 120px;
    }

    section[aria-label="iconos"] table {
        border-spacing: 20px;
        display: block;
    }

    section[aria-label="iconos"] table td {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    footer table {
        border-spacing: 20px 0;
        display: block;
    }

    footer {
        font-size: 16px;
        padding: 20px;
    }

    footer img {
        position: static;
        margin: 20px auto 0;
    }
}


@media (max-width: 480px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    /* Títulos en secciones */
    section[aria-label="banner"] h2,
    section[aria-label="banner"] p {
        font-size: 30px;
        padding: 20px 10px 0;
        margin-top: 80px;
    }

    section[aria-label="banner"] button {
        position: static;
        display: block;
        margin: 20px auto;
    }

    nav > ul {
        padding-left: 5%;
        word-spacing: 5px;
    }

    section[aria-label="lista de servicios"] {
        grid-template-columns: 1fr;
    }

    #proceso .proceso {
        grid-template-columns: 1fr;
    }

    section[aria-label="trabajos"] img:hover {
        width: 100%;
    }

    .tecnologia img {
        position: static;
        display: block;
        width: 100%;
        margin: 20px auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    footer img {
        margin: auto;
    }
}



