/*
Theme Name: Tema Gestoria
Author: ICOGAM
Version: 1.0
*/
* {
    font-family: "Times New Roman", Times, serif;
}

body {
    margin: 0;
}

a {
    color:#DF8C03;
    text-decoration: none;
}

section {
    padding-top: 15px;
}


.title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35vh;
    background: 
        url('./assets/images/cabecera.PNG') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    margin: 0;
}

/**
* Serccion conocenos
*/
.conocenos {
    justify-items: center;
    .block-conocenos {
		  text-align: justify;
        width: 50%;
        display: flex;
        flex-flow: row;
        .block-conocenos-img {
            img {
                width: 300px;
            }
        }
        .block-conocenos-text {
            padding-left: 25px;
            h3 {
                position: relative;
                display: inline-block;
            }
            h3::before {
                content: "";
                position: absolute;
                top: -15px;
                left: 2px;
                width: 30%;
                height: 3px;
                background-color: #DF8C03;
            }
        }
    }
}

/**
* Pagina contacto
*/
.contacto-info {
    display: flex;
    justify-content: center;
    padding: 50px 0;

    .contacto-layout {
        width: 100%;
        max-width: 1200px;

        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 70px;

        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .contacto-texto {
        flex: 0 0 420px;

        p {
            margin: 0 0 18px;
            line-height: 1.8;
            color: #444;
        }

        strong {
            color: #1F212E;
        }

        a {
            color: #DF8C03;
        }
    }

    .contacto-mapa {
        flex: 0 0 600px;

        iframe {
            width: 100%;
            height: 450px;
            border: 0;
            box-shadow: 0 5px 18px rgba(0,0,0,.08);
        }
    }
}

/**
* Servicios
*/
.services {

    .services-block {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1100px;
        margin: 40px auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .service-box {
        background-color: #1F212E;
        padding: 30px 20px;
        color: #FFFFFF;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: all 0.3s ease;
        min-height: 220px;
    }

    .service-icon img {
        width: 38px;
        height: 38px;
    }

    h3 {
        font-size: 16px;
        margin: 0;
        color: #FFFFFF;
        font-weight: bold;
    }

    p {
        font-size: 14px;
        margin: 0;
        color: #CFCFCF;
        line-height: 1.6;
    }
}
/**
* Equipo
*/
.team {
        padding-bottom: 15px;
    .team-all {
        .team-title {
            font-size: 25px;
            width: 100%;
            background-color: #1F212E;
            color: #FFFFFF;
            text-align: center;
            padding-top: 10px;
            padding-bottom: 10px;
            h2 {
                position: relative;
                display: inline-block;
            }
            h2::before {
                content: "";
                position: absolute;
                top: -15px;
                left: 2px;
                width: 15%;
                height: 3px;
                background-color: #DF8C03;
            }
        }
        .team-roster {
			text-align: justify;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15%;
            max-width: 60%;
            margin: 0 auto;
            padding-top: 15px;
            .single {
                display: flex;
                flex-flow: column;
                align-items: center;
                gap: 15px;
                img {
                    width: 170px;
                    height: 220px;
                    object-fit: cover;
                }
                h3 {
                    margin: 0;
                    font-size: 18px;
                    font-weight: bold;
                }
                p {
                    margin: 5px 0 0;
                    font-size: 16px;
                    color: #555555;
                }
            }
        }
    }
}

/**
* Nuestra mision
*/
.mision {
    display: flex;
    justify-content: center;
    padding: 50px 0;

    .mision-grid {
        width: 60%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .mision-card {
        background: #FFFFFF;
        padding: 30px;
        border: 1px solid #ececec;
        box-shadow: 0 4px 15px rgba(0,0,0,.06);
            p,
    li {
        font-size: 18px;
        line-height: 1.8;
        color: #444;
        font-weight: 400;
    }
    }

    .mision-title {
        position: relative;
        display: inline-block;
        margin: 0 0 20px;
        color: #1F212E;
    }

    .mision-title::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 2px;
        width: 30%;
        height: 3px;
        background: #DF8C03;
    }

    p {
        line-height: 1.8;
        color: #444;
        text-align: justify;
    }

.valores-list,
.porque-list {
        list-style: none;
        margin: 0;
        padding: 0;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 35px;

        li {
            position: relative;
            padding-left: 22px;
            line-height: 1.6;
        }

        li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #DF8C03;
        }

        strong {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #1F212E;
        }
    }
}
/**
* FAQ
*/
.faq {
    display: flex;
    justify-content: center;
    padding: 60px 0;

    .faq-block {
        width: 60%;
    }

    .faq-title {
        position: relative;
        display: inline-block;
        margin-bottom: 35px;
        color: #1F212E;
    }

    .faq-title::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 2px;
        width: 30%;
        height: 3px;
        background: #DF8C03;
    }

    .faq-item {
        border: 1px solid #e5e5e5;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,.05);
    }

    .faq-question {
        width: 100%;
        padding: 18px 25px;
        background: none;
        border: none;
        cursor: pointer;

        display: flex;
        justify-content: space-between;
        align-items: center;

        font-size: 18px;
        font-weight: bold;
        color: #1F212E;
        text-align: left;

        transition: .3s;
    }

    .faq-question:hover {
        color: #DF8C03;
    }

    .faq-icon {
        font-size: 24px;
        color: #DF8C03;
        transition: .3s;
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        padding: 0 25px;

        p {
            margin: 0;
            padding: 0 0 20px;
            color: #444;
            line-height: 1.8;
        }
    }

    .faq-item.active {

        .faq-answer {
            max-height: 200px;
        }

        .faq-icon {
            transform: rotate(45deg);
        }
    }
}
/**
* Testimonios
*/
.testimonios {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    background: #f8f8f8;

    .testimonios-block {
        width: 60%;
    }

    .testimonios-title {
        position: relative;
        display: inline-block;
        margin-bottom: 35px;
        color: #1F212E;
    }

    .testimonios-title::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 2px;
        width: 30%;
        height: 3px;
        background: #DF8C03;
    }

    .testimonios-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .testimonio-card {
        position: relative;
        padding: 35px 30px;
        background: #FFFFFF;
        border: 1px solid #e9e9e9;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
        transition: .3s ease;
    }

    .testimonio-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    }

    .comillas {
        font-size: 60px;
        color: #DF8C03;
        line-height: 1;
        margin-bottom: 10px;
        font-weight: bold;
    }

    h3 {
        margin: 0 0 15px;
        color: #1F212E;
        font-size: 20px;
    }

    p {
        margin: 0;
        color: #555;
        line-height: 1.8;
        font-style: italic;
    }
}

/**
* Ultimos posts
*/ 
.last-posts {
    padding-top: 50px;
    .filtros {
        text-align:center;
        .filter-btn {
            border-radius: 2px; 
            background-color: #DF8C03; 
            color: #FFFFFF; 
            border: 0px; 
            padding-top: 3px; 
            padding-bottom: 3px; 
            padding-left: 8px; 
            padding-right: 8px; 
            margin-left: 5px; 
            margin-right: 5px;
        }
    }
    .posts-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1000px;
        margin: 40px auto;
        .post-item {
            padding-bottom: 15px;
            display: block;
            overflow-wrap: break-word;
            word-wrap: break-word;
            word-break: break-word;
            width: 300px;
            overflow-wrap: break-word;
            word-break: break-word;
            h3 {
                font-size: 18px;
                margin-bottom: 5px;
                font-weight: bold;
            }   
            p {
                font-size: 14px;
                color: #333333;
                margin-bottom: 10px;
            }
            a {
                color: #DF8C03;
                text-decoration: none;
                font-weight: bold;
            }
        }
    }
}

.site-wrapper {
    margin-left: 15px;
    margin-right: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    .menu-footer {
        margin-left: -15px;
        margin-right: -15px;
    }
    .main {
        flex: 1 0 auto;
        form {
            max-width: 600px;
            margin: 20px auto;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px 30px;   
            label {
                grid-column: span 2;
                font-weight: bold;
                margin-bottom: 5px;
                display: block;
                color: #333333;
                font-size: 14px;
            }
            input[type="text"],
            input[type="email"],
            textarea {
                width: 100%;
                padding: 8px 10px;
                border: 1px solid #cccccc;
                border-radius: 4px;
                font-size: 14px;
                box-sizing: border-box;
                font-family: inherit;
                resize: vertical;
            }
            textarea {
                grid-column: span 2;
                min-height: 100px;
            }
            button,
            input[type="submit"] {
                grid-column: span 2;
                justify-self: center;
                padding: 12px 20px;
                background-color: #DF8C03;
                color: #fff;
                font-weight: bold;
                font-size: 16px;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                width: auto;
                max-width: 200px;
            }
        }
    }
}

.menu-footer {
  background-color: #000000;
  border-top: 1px solid #333333;
  padding: 20px 0;
  text-align: right;
  flex-shrink: 0; 
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-right: 15px;
    a {
        color: #aaaaaa;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    a:hover {
        color: #ffffff;
    }
  }
    span {
        color: #aaaaaa;
        font-size: 13px;
        padding-right: 15px;
    }
}

.contact-form {
	    text-align: justify;
    h3 {
        text-align: center;
    }
}
/* Contenedor del formulario */
.wpcf7 {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.cf7-honeypot{
    position:absolute;
    left:-9999px;
    opacity:0;
    pointer-events:none;
}

/* Formulario */
.wpcf7 form {
    background: #ffffff;
}

/* Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Inputs y textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fafafa;
    font-size: 15px;
    color: #333;
    transition: all .3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

/* Focus */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #1F212E;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}

/* Textarea */
.wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

/* Botón */
.wpcf7 input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #1F212E;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

/* Mensajes */
.wpcf7-response-output {
    margin-top: 20px;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Errores */
.wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7 form {
        padding: 25px;
    }
}
/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets grandes */
@media (max-width: 1024px) {

    .services .services-block {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }

    .testimonios .testimonios-block,
    .faq .faq-block {
        width: 80%;
    }

    .mision .mision-grid {
        width: 80%;
        grid-template-columns: 1fr;
    }

    .team .team-roster {
        grid-template-columns: 1fr;
        max-width: 80%;
        gap: 40px;
    }

    .last-posts .posts-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
    }

    .contacto-info .contacto-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contacto-texto,
    .contacto-mapa {
        flex: 1 1 100%;
        max-width: 90%;
    }
}


/* Tablets y móviles */
@media (max-width: 768px) {

    section {
        padding-top: 10px;
    }

    .services .services-block {
        grid-template-columns: 1fr;
        max-width: 95%;
    }

    .testimonios .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .faq .faq-block {
        width: 90%;
    }

    .mision .mision-grid {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .valores-list,
    .porque-list {
        grid-template-columns: 1fr;
    }

    .last-posts .posts-container {
        grid-template-columns: 1fr;
    }

    .team .team-roster {
        grid-template-columns: 1fr;
        max-width: 95%;
        gap: 30px;
    }

    .conocenos .block-conocenos {
        width: 90%;
        flex-direction: column;
        gap: 20px;
    }

    .conocenos .block-conocenos-img img {
        width: 100%;
        height: auto;
    }

    .contacto-info .contacto-layout {
        flex-direction: column;
        gap: 30px;
    }

    .contacto-mapa iframe {
        height: 350px;
    }
}


/* Móviles pequeños */
@media (max-width: 480px) {

    .title {
        height: 25vh;
    }

    .services .services-block {
        padding: 0 10px;
    }

    .testimonios .testimonios-block,
    .faq .faq-block {
        width: 95%;
    }

    .testimonio-card {
        padding: 25px 20px;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px 18px;
    }

    .mision .mision-grid {
        width: 95%;
    }

    .menu-footer ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}