/* Reseteo y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navegación */
.barra-navegacion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contenedor-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titulo-nav {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.menu-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.enlace-nav {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.enlace-nav:hover,
.enlace-nav.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contenido principal */
.contenido-principal {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sección hero */
.heroe {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.heroe h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.heroe p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Cuadrícula de herramientas */
.cuadricula-herramientas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tarjeta-herramienta {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tarjeta-herramienta.coming-soon {
    opacity: 0.6;
}

.tarjeta-herramienta h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.tarjeta-herramienta p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Botones */
.boton {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-primario {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.boton-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.boton-deshabilitado {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.boton-secundario {
    background-color: #6c757d;
    color: white;
}

.boton-secundario:hover {
    background-color: #545b62;
}

/* Estilos específicos para páginas de herramientas */
.contenedor-herramienta {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.encabezado-herramienta {
    text-align: center;
    margin-bottom: 2rem;
}

.encabezado-herramienta h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.encabezado-herramienta p {
    color: #666;
}

.grupo-formulario {
    margin-bottom: 1.5rem;
}

.grupo-formulario label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.entrada-formulario {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.entrada-formulario:focus {
    outline: none;
    border-color: #667eea;
}

.resultado {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.resultado.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.resultado.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Pie de página */
.pie-pagina {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .contenedor-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-nav {
        gap: 1rem;
    }

    .heroe h1 {
        font-size: 2rem;
    }

    .cuadricula-herramientas {
        grid-template-columns: 1fr;
    }

    .contenedor {
        padding: 0 1rem;
    }
}
