/*
Theme Name: Movilium.com
Theme URI: http://temujin.es
Author: Temujin.es - Jonatan Sandoval Alarcón
Author URI: http://temujin.es
Description: Movilium.com
Version: 1.0
License URI: http:/temujin.es
Text Domain: movilium
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    .wrapper{
        max-width: 1290px;
        margin: 0 auto
    }
}

header {
    background: #484a46;
    color: #ddd;
    padding: 40px 0 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    nav{
        width: 100%;
        background-color: #000;
        margin-top:20px;
    }
    .nav-menu{
        padding: 0;
    }
    .header-top {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 10px;
        text-decoration:none;
    }

    .logo {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
        }
    }

    h1 {
        margin: 0;
        font-size: 2.5em;
        font-weight: bold;
        color: #fef6e9;
    }

    h2 {
        margin: 0;
        font-size: 1.2em;
        font-weight: normal;
        color: #fff;
    }
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.seccion {
    background: #fef5e8;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px #ddd;
    margin: 40px auto;

    h2 {
        color: #222;
        margin-top: 0;
    }

    h3 {
        color: #555;
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 1.1em;
    }
    
        img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            max-width: 100%;

            &:hover {
                transform: scale(1.02);
            }
        }
}

.section-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;

    .section-text {
        flex: 1;
    }

    .section-image {
        flex: 0 0 400px;

    }
}

footer {
    background: #222;
    color: #ddd;
    padding: 0;
    text-align: center;
    margin-top: 40px;
    float: left;
    width: 100%;
    box-sizing: border-box;

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 30px;

        a {
            color: #ddd;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 4px;
            transition: background-color 0.3s ease;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;

            &:hover {
                background-color: #444;
                text-decoration: underline;
            }
        }
    }
}

.legal-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    &.hidden {
        display: none;
    }

    .legal-content {
        background: white;
        padding: 30px;
        border-radius: 10px;
        max-width: 600px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        color: #222;

        h3 {
            margin-top: 0;
            color: #222;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            line-height: 1;

            &:hover {
                color: #222;
            }
        }
    }
}

.nav-menu {
    li {
        list-style: none;
        display: inline-block;

        a {
            margin: 0 10px;
            color: #fff;
            text-decoration: none;
        }
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    header {
        padding: 20px 0 15px 0;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    header h1 {
        font-size: 2.2em;
        text-align: center;
    }
    
    header h2 {
        font-size: 1.1em;
        text-align: center;
        padding: 0 20px;
    }
    
    /* Container y secciones */
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .section-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .section-image {
        flex: none;
        width: 100%;
        max-width: 350px;
    }
    
    section h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    section .subtitle {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    section p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Footer responsive */
    footer {
        padding: 25px 0;
        margin-top: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .footer-links a {
        padding: 12px 20px;
        font-size: 1.1em;
        display: block;
        text-align: center;
    }
    
    /* Modal responsive */
    .legal-content {
        padding: 25px 20px;
        margin: 15px;
        max-height: 85vh;
    }
    
    .legal-content h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    /* Estilos para mÃ³viles muy pequeÃ±os */
    header {
        padding: 15px 0 10px 0;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    header h2 {
        font-size: 1em;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    section {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .section-content {
        gap: 15px;
    }
    
    section h2 {
        font-size: 1.5em;
    }
    
    section .subtitle {
        font-size: 0.9em;
    }
    
    section p {
        font-size: 0.9em;
    }
    
    .footer-links a {
        padding: 15px;
        font-size: 1em;
    }
    
    .legal-content {
        padding: 20px 15px;
        margin: 10px;
        max-height: 90vh;
    }
    
    .legal-content h3 {
        font-size: 1.3em;
    }
    
    .legal-content p {
        font-size: 0.9em;
    }
}

footer{
    .subvencionado{
        color: #555;
        padding-top: 40px;
        float: left;
        background-color: #fff;
        border-top: 1px solid #ccc;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        >div{
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            text-align: center;
            justify-content: center;
            justify-items: center;
            padding-bottom: 10px;
            max-width: 1080px;
            float: none;
            margin: 0 auto;
            img{
                height:60px;
                width:auto;
            }
        }
        p{
            margin: 0 auto;
            float:none;
            width:80%;
            text-align:center;
            font-size:12px;
            padding-bottom:20px;
            padding-top:10px;
        }
    }
}


@media (max-width: 782px) {
	.admin-bar .screen-height {
		min-height: calc(100vh - 46px);
	}
	.subvencionado{
		>div{
			grid-template-columns: 1fr !important;
			img{
				height:auto;
				width:80%;
				margin:0 auto;
				padding:6px 0;
			}
		}
	}
}


.wp-block-media-text .wp-block-media-text__content {
    align-self: flex-start !important;
}

/* FORMULARIO */
.wpcf7-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    font-weight: 500;
    color: #222;
    display: block;
    margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-top: 4px;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #333;
    outline: none;
    background: #fef6e9;
}

.wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,120,215,0.08);
}

.wpcf7-form input[type="submit"]:hover {
    background: #000;
}

.wpcf7-response-output {
    margin-top: 18px;
    font-size: 0.98rem;
    color: #d32f2f;
}

@media (max-width: 600px) {
    .wpcf7-form {
        padding: 18px 8px;
    }
}