/*
Theme Name: Desperdicio Cero
Theme URI: https://tudominio.com
Author: Tu Nombre
Author URI: https://tudominio.com
Description: Tema WordPress para empresa de cumplimiento de Ley 1/2025 de Prevención de Pérdidas y Desperdicio Alimentario
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desperdicio-cero
Tags: business, consulting, food-waste, legal-compliance
*/

/* Reset y estilos base */

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

body {
font-family: -apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Header y Navegación */
.site-header {
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}

.site-logo {
font-size: 24px;
font-weight: bold;
color: #2c5530;
}

.main-navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}

.main-navigation ul {
display: flex;
list-style: none;
gap: 30px;
}

.main-navigation a {
text-decoration: none;
color: #333;
font-weight: 500;
transition: color 0.3s;
}

.main-navigation a:hover {
color: #2c5530;
}

/* === ESTILOS AÑADIDOS PARA EL BOTÓN DEL TEST EN EL MENÚ PRINCIPAL === */
/* Asegura el color del texto y remueve el borde/fondo del menú para el botón */
.main-navigation ul a.btn-primary {
    color: white !important; /* Fuerza el texto blanco para el botón primario */
    background: #ff5722 !important; /* Fuerza el color de fondo primario */
    border: none !important;
    text-align: center;
}
/* =================================================================== */


/* Hero Section */
.hero-section {
background: linear-gradient(135deg, #1a3a1f 0%, #2c5530 100%);
color: white;
padding: 150px 20px 80px;
text-align: center;
margin-top: 70px;
}

.alert-badge {
background: #ff9800;
color: white;
padding: 10px 20px;
border-radius: 25px;
display: inline-block;
margin-bottom: 20px;
font-weight: bold;
}

.hero-section h1 {
font-size: 3rem;
margin-bottom: 20px;
line-height: 1.2;
}

.hero-section p {
font-size: 1.3rem;
margin-bottom: 30px;
opacity: 0.9;
}

/* Botones */
.btn {
display: inline-block;
padding: 15px 35px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s;
border: none;
cursor: pointer;
}

.btn-primary {
background: #ff5722;
color: white;
}

.btn-primary:hover {
background: #e64a19;
transform: translateY(-2px);
}

.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}

.btn-secondary:hover {
background: white;
color: #2c5530;
}

/* Formularios */
.contact-form {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
max-width: 600px;
margin: 40px auto;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #333;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #2c5530;
}

/* Checkbox RGPD */
.form-group-checkbox {
margin-bottom: 25px;
}

.checkbox-label {
display: flex;
align-items: center; /* Cambiado de flex-start a center para alinear verticalmente */
gap: 12px;
cursor: pointer;
font-weight: normal;
}

.checkbox-label input[type=“checkbox”] {
width: auto;
min-width: 18px;
height: 18px;
margin: 0; /* Eliminado margin-top */
cursor: pointer;
flex-shrink: 0;
}

.checkbox-text {
font-size: 14px;
line-height: 1.5;
color: #555;
margin: 0; /* Asegurar que no hay márgenes */
}

.checkbox-text a {
color: #2c5530;
text-decoration: underline;
font-weight: 600;
transition: color 0.3s;
}

.checkbox-text a:hover {
color: #1a3a1f;
}

/* Error state para checkbox */
.checkbox-label input[type=“checkbox”]:invalid {
outline: 2px solid #dc3545;
outline-offset: 2px;
}

/* Responsive para móviles - mantener en línea */
@media (max-width: 768px) {
.checkbox-label {
align-items: flex-start; /* En móvil, alinear arriba por si el texto es largo */
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px; /* Pequeño ajuste en móvil */
}

.checkbox-text {
    font-size: 13px; /* Texto ligeramente más pequeño en móvil */
}

}

/* Stats Section */
.stats-section {
background: #f8f9fa;
padding: 60px 20px;
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
text-align: center;
}

.stat-item h3 {
font-size: 3rem;
color: #2c5530;
margin-bottom: 10px;
}

.stat-item p {
font-size: 1.1rem;
color: #666;
}

/* Content Sections */
.content-section {
padding: 80px 20px;
}

.section-title {
text-align: center;
font-size: 2.5rem;
margin-bottom: 20px;
color: #2c5530;
}

.section-subtitle {
text-align: center;
font-size: 1.2rem;
color: #666;
margin-bottom: 60px;
}

/* Cards Grid */
.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}

.card {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 3px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.card-icon {
font-size: 3rem;
margin-bottom: 20px;
}

.card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: #2c5530;
}

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

.card li {
padding: 8px 0;
padding-left: 25px;
position: relative;
}

.card li:before {
content: “✓”;
position: absolute;
left: 0;
color: #4caf50;
font-weight: bold;
}

/* Methodology Steps */
.steps-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-top: 60px;
}

.step-item {
text-align: center;
position: relative;
}

.step-number {
width: 60px;
height: 60px;
background: #2c5530;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: bold;
margin: 0 auto 20px;
}

.step-item h3 {
font-size: 1.3rem;
margin-bottom: 10px;
color: #2c5530;
}

/* Footer */
.site-footer {
background: #1a3a1f;
color: white;
padding: 40px 20px;
text-align: center;
}

.footer-widgets {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
text-align: left;
}

.footer-widget-area h3 {
color: white;
margin-bottom: 20px;
}

.footer-widget-area ul {
list-style: none;
padding: 0;
}

.footer-widget-area li {
padding: 8px 0;
}

.footer-widget-area a {
color: rgba(255,255,255,0.8);
text-decoration: none;
transition: color 0.3s;
}

.footer-widget-area a:hover {
color: white;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
display: none;
background: #2c5530;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
}

@media (max-width: 768px) {
.mobile-menu-toggle {
display: block;
}

.main-navigation ul.mobile-hidden {
    display: none;
}

.main-navigation ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Manejo en móviles: el botón del menú se estira */
.main-navigation ul a.btn-primary {
    display: block; /* Se estira para ocupar todo el ancho en el menú móvil */
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

}

/* Form Error States */
.form-group input.error,
.form-group textarea.error {
border-color: #dc3545;
background: #fff5f5;
}

.success-message {
animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

/* Scroll Behavior */
html {
scroll-behavior: smooth;
}

/* Header Scrolled Effect */
.site-header.scrolled {
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Utility Classes */
.text-center {
text-align: center;
}

.mt-20 {
margin-top: 20px;
}

.mb-20 {
margin-bottom: 20px;
}

.p-20 {
padding: 20px;
}

/* Print Styles */
@media print {
.site-header,
.site-footer,
.contact-form,
.mobile-menu-toggle {
display: none;
}
}

/* Accessibility */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}

.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000;
}

/* Responsive */
@media (max-width: 768px) {
.hero-section h1 {
font-size: 2rem;
}

.main-navigation ul {
    flex-direction: column;
    gap: 15px;
}

.cards-grid,
.stats-grid {
    grid-template-columns: 1fr;
}

.section-title {
    font-size: 2rem;
}

.btn {
    display: block;
    width: 100%;
    margin: 10px 0;
}

}