body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

header {
    background: #484a46;
    color: #ddd;
    padding: 40px 0 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #fef6e9;
}

header h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: normal;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background: #fef5e8;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px #ddd;
}

.section-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.section-text {
    flex: 1;
}

.section-image {
    flex: 0 0 400px;
}

.section-image 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%;
}

.section-image img:hover {
    transform: scale(1.02);
}

section h2 {
    color: #222;
    margin-top: 0;
}

section .subtitle {
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

footer {
    background: #222;
    color: #ddd;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links 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;
}

.footer-links a: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;
}

.legal-text.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;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-btn:hover {
    color: #222;
}

.legal-content h3 {
    margin-top: 0;
    color: #222;
}

@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;
    }
}

.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;
			}
		}
	}
}