/*
 *    Web Oficial Librecan
 *    Archivo: style.css
 *    Autor: Lucio Albenga - https://lucio.albenga.es
 *    Copyright (c) 2025 Lucio F. Albenga liberado bajo licencia AGPL-3.0-only
 *
 *    This program is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Affero General Public License as published by
 *    the Free Software Foundation version 3 of the License.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/roboto/Roboto-Regular.woff2") format("woff2"),
         url("../webfonts/roboto/Roboto-Regular.woff") format("woff"),
	 url("../webfonts/roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/roboto/Roboto-Black.woff2") format("woff2"),
	 url("../webfonts/roboto/Roboto-Black.woff") format("woff"),
	 url("../webfonts/roboto/Roboto-Black.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/roboto/Roboto-ExtraLight.woff2") format("woff2"),
	 url("../webfonts/roboto/Roboto-ExtraLight.woff") format("woff"),
	 url("../webfonts/roboto/Roboto-ExtraLight.ttf") format("truetype");
    font-weight: 100;
}

@font-face {
    font-family: "Roboto";
    src: url("../webfonts/roboto/Roboto-SemiBold.woff2") format("woff2"),
	 url("../webfonts/roboto/Roboto-SemiBold.woff") format("woff"),
	 url("../webfonts/roboto/Roboto-SemiBold.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("../webfonts/poppins/Poppins-Regular.woff2") format("woff2"),
	 url("../webfonts/poppins/Poppins-Regular.woff") format("woff"),
	 url("../webfonts/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: nomal;
    font-style: normal;
}

@font-face {
    font-family: "Poppins";
    src: url("../webfonts/poppins/Poppins-Bold.woff2") format("woff2"),
	 url("../webfonts/poppins/Poppins-Bold.woff") format("woff"),
	 url("../webfonts/poppins/Poppins-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}


:root {
	--primary-color: #0768A9;
	--secondary-color: #F5C211;
	--body-bg: #f8f9fa;
	--section-bg: #fff;
	--shadow:  rgba(0, 0, 0, 0.1);
	--text-color: #1c1c1c;
	--head-hero: #FFD700;
	--text-hero: #fff;
	--cta-bg: #FFD633;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}


a {
    color: var(--primary-color);
    text-decoration: none;
}

p {
    font-size: 1.1em;
}
/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--body-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px var(--shadow);
    z-index: 1000;
}

.logo {
    font-family: "Poppins", sans-serif;
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: normal;
}

.logo span {
    font-weight: bold;
    color: var(--secondary-color);
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px;
    font-family: "Roboto", sans-serif;
}
.menu li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
    font-weight: 400;
}
.menu li a:hover {
    color: var(--primary-color);
}

.menu li a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.menu li a.foro {
    background: var(--cta-bg);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
    border: 2px solid #E6B800;

}

.nav-icons {
    width: 1.2em;
    height: 1.2em;
}

/* Toggle */
.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

/* Hero */
.hero {
    background: var(--primary-color);
    color: var(--text-hero);
    text-align: center;
    padding: 150px 20px;
    width: 100%;
}

.hero h2 {
    font-family: "Poppins", sans-serif;
    text-transform: lowercase;
    font-size: 3em;
    font-weight: normal;
    color: var(--head-hero);
}

.hero h2 span {
    font-weight: bold;
    color: var(--body-bg);
}

.hero p {
    font-size: 1.2em;
}
/* CTA */
.cta-button {
    display: inline-block;
    background: var(--cta-bg);
    color: var(--primary-color);
    padding: 10px 30px;
    font-size: 1em;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
    margin-top: 20px;
    border: 2px solid #E6B800;
}

.cta-button:hover,
.menu li a.foro:hover {
    background: var(--secondary-color);
}


/* Sections */
.section-textonly {
    padding: 100px 20px;
    max-width: 1024px;
    margin: 0 auto;
}

#inicio.section-textonly {
    padding: 0px;
    max-width: 100%;
}

.section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 50vh;
    background: var(--section-bg);
    gap: 20px;
    text-align: center;
}

/* Imagen */
.section img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Contenedor de texto */
.text-container {
    max-width: 600px;
    padding: 15px;
    text-align: left;
}

h2 {
    font-family: "Roboto", sans-serif;
/*    font-family: "Poppins", sans-serif;*/
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

/* TAG Cloud */
.tag-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tag {
    background: var(--cta-bg);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: normal;
    transition: transform 0.3s ease-in-out;
}

.tag:hover {
    transform: scale(1.1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
	
/* Footer */
footer {
    background: var(--body-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    box-shadow: 0 -4px 6px var(--shadow);
}



@media (max-width: 810px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--body-bg);
        width: 100%;
        padding: 10px 0 20px 0;
	box-shadow: 0 4px 6px var(--shadow);
    }
    .menu.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }

    .menu li a.foro {
	margin-left: 15px;
    }

    .tag-section {
	display: none;
    }

    .section {
        flex-direction: column-reverse;
        text-align: left;
    }

    #quees.section,
    #detalles.section {
        flex-direction: column;
        text-align: left;
    }

    .image-container {
        flex: 1;
    }

    .text-container {
        flex: 1;
    }
}
